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 | e8d0f97 | 2002-11-01 02:30:46 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.54 for Wine 20021031. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4 | # |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 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. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12 | |
| 13 | # Be Bourne compatible |
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15 | emulate sh |
| 16 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 | # is contrary to our usage. Disable this feature. |
| 19 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21 | set -o posix |
| 22 | fi |
| 23 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24 | # Support unset when possible. |
| 25 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME |
| 40 | do |
| 41 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 42 | eval $as_var=C; export $as_var |
| 43 | else |
| 44 | $as_unset $as_var |
| 45 | fi |
| 46 | done |
| 47 | |
| 48 | # Required to use basename. |
| 49 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 50 | as_expr=expr |
| 51 | else |
| 52 | as_expr=false |
| 53 | fi |
| 54 | |
| 55 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 56 | as_basename=basename |
| 57 | else |
| 58 | as_basename=false |
| 59 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 60 | |
| 61 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 62 | # Name of the executable. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 63 | as_me=`$as_basename "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 64 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 65 | X"$0" : 'X\(//\)$' \| \ |
| 66 | X"$0" : 'X\(/\)$' \| \ |
| 67 | . : '\(.\)' 2>/dev/null || |
| 68 | echo X/"$0" | |
| 69 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 70 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 71 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 72 | s/.*/./; q'` |
| 73 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 74 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 75 | # PATH needs CR, and LINENO needs CR and PATH. |
| 76 | # Avoid depending upon Character Ranges. |
| 77 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 78 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 79 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 80 | as_cr_digits='0123456789' |
| 81 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 82 | |
| 83 | # The user is always right. |
| 84 | if test "${PATH_SEPARATOR+set}" != set; then |
| 85 | echo "#! /bin/sh" >conftest.sh |
| 86 | echo "exit 0" >>conftest.sh |
| 87 | chmod +x conftest.sh |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 88 | if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 89 | PATH_SEPARATOR=';' |
| 90 | else |
| 91 | PATH_SEPARATOR=: |
| 92 | fi |
| 93 | rm -f conftest.sh |
| 94 | fi |
| 95 | |
| 96 | |
| 97 | as_lineno_1=$LINENO |
| 98 | as_lineno_2=$LINENO |
| 99 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 100 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 101 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 102 | # Find who we are. Look in the path if we contain no path at all |
| 103 | # relative or not. |
| 104 | case $0 in |
| 105 | *[\\/]* ) as_myself=$0 ;; |
| 106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 107 | for as_dir in $PATH |
| 108 | do |
| 109 | IFS=$as_save_IFS |
| 110 | test -z "$as_dir" && as_dir=. |
| 111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 112 | done |
| 113 | |
| 114 | ;; |
| 115 | esac |
| 116 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 117 | # in which case we are not to be found in the path. |
| 118 | if test "x$as_myself" = x; then |
| 119 | as_myself=$0 |
| 120 | fi |
| 121 | if test ! -f "$as_myself"; then |
| 122 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 123 | { (exit 1); exit 1; }; } |
| 124 | fi |
| 125 | case $CONFIG_SHELL in |
| 126 | '') |
| 127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 129 | do |
| 130 | IFS=$as_save_IFS |
| 131 | test -z "$as_dir" && as_dir=. |
| 132 | for as_base in sh bash ksh sh5; do |
| 133 | case $as_dir in |
| 134 | /*) |
| 135 | if ("$as_dir/$as_base" -c ' |
| 136 | as_lineno_1=$LINENO |
| 137 | as_lineno_2=$LINENO |
| 138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 139 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 141 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 142 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 143 | CONFIG_SHELL=$as_dir/$as_base |
| 144 | export CONFIG_SHELL |
| 145 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 146 | fi;; |
| 147 | esac |
| 148 | done |
| 149 | done |
| 150 | ;; |
| 151 | esac |
| 152 | |
| 153 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 154 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 155 | # line-number line before each line; the second 'sed' does the real |
| 156 | # work. The second script uses 'N' to pair each line-number line |
| 157 | # with the numbered line, and appends trailing '-' during |
| 158 | # substitution so that $LINENO is not a special case at line end. |
| 159 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 160 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 161 | sed '=' <$as_myself | |
| 162 | sed ' |
| 163 | N |
| 164 | s,$,-, |
| 165 | : loop |
| 166 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 167 | t loop |
| 168 | s,-$,, |
| 169 | s,^['$as_cr_digits']*\n,, |
| 170 | ' >$as_me.lineno && |
| 171 | chmod +x $as_me.lineno || |
| 172 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 173 | { (exit 1); exit 1; }; } |
| 174 | |
| 175 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 176 | # (the dirname of $[0] is not the place where we might find the |
| 177 | # original and so on. Autoconf is especially sensible to this). |
| 178 | . ./$as_me.lineno |
| 179 | # Exit status is that of the last command. |
| 180 | exit |
| 181 | } |
| 182 | |
| 183 | |
| 184 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 185 | *c*,-n*) ECHO_N= ECHO_C=' |
| 186 | ' ECHO_T=' ' ;; |
| 187 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 188 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 189 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 190 | |
| 191 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 192 | as_expr=expr |
| 193 | else |
| 194 | as_expr=false |
| 195 | fi |
| 196 | |
| 197 | rm -f conf$$ conf$$.exe conf$$.file |
| 198 | echo >conf$$.file |
| 199 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 200 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 201 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 202 | if test -f conf$$.exe; then |
| 203 | # Don't use ln at all; we don't have any links |
| 204 | as_ln_s='cp -p' |
| 205 | else |
| 206 | as_ln_s='ln -s' |
| 207 | fi |
| 208 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 209 | as_ln_s=ln |
| 210 | else |
| 211 | as_ln_s='cp -p' |
| 212 | fi |
| 213 | rm -f conf$$ conf$$.exe conf$$.file |
| 214 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 215 | if mkdir -p . 2>/dev/null; then |
| 216 | as_mkdir_p=: |
| 217 | else |
| 218 | as_mkdir_p=false |
| 219 | fi |
| 220 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 221 | as_executable_p="test -f" |
| 222 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 223 | # Sed expression to map a string onto a valid CPP name. |
| 224 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 225 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 226 | # Sed expression to map a string onto a valid variable name. |
| 227 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 228 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 229 | |
| 230 | # IFS |
| 231 | # We need space, tab and new line, in precisely that order. |
| 232 | as_nl=' |
| 233 | ' |
| 234 | IFS=" $as_nl" |
| 235 | |
| 236 | # CDPATH. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 237 | $as_unset CDPATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 238 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 239 | |
| 240 | # Name of the host. |
| 241 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 242 | # so uname gets run too. |
| 243 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 244 | |
| 245 | exec 6>&1 |
| 246 | |
| 247 | # |
| 248 | # Initializations. |
| 249 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 250 | ac_default_prefix=/usr/local |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 251 | ac_config_libobj_dir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 252 | cross_compiling=no |
| 253 | subdirs= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 254 | MFLAGS= |
| 255 | MAKEFLAGS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 256 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 257 | |
| 258 | # Maximum number of lines to put in a shell here document. |
| 259 | # This variable seems obsolete. It should probably be removed, and |
| 260 | # only ac_max_sed_lines should be used. |
| 261 | : ${ac_max_here_lines=38} |
| 262 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 263 | # Identity of this package. |
| 264 | PACKAGE_NAME='Wine' |
| 265 | PACKAGE_TARNAME='wine' |
Alexandre Julliard | e8d0f97 | 2002-11-01 02:30:46 +0000 | [diff] [blame] | 266 | PACKAGE_VERSION='20021031' |
| 267 | PACKAGE_STRING='Wine 20021031' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 268 | PACKAGE_BUGREPORT='' |
| 269 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 270 | ac_unique_file="server/atom.c" |
| 271 | # Factoring default headers for most tests. |
| 272 | ac_includes_default="\ |
| 273 | #include <stdio.h> |
| 274 | #if HAVE_SYS_TYPES_H |
| 275 | # include <sys/types.h> |
| 276 | #endif |
| 277 | #if HAVE_SYS_STAT_H |
| 278 | # include <sys/stat.h> |
| 279 | #endif |
| 280 | #if STDC_HEADERS |
| 281 | # include <stdlib.h> |
| 282 | # include <stddef.h> |
| 283 | #else |
| 284 | # if HAVE_STDLIB_H |
| 285 | # include <stdlib.h> |
| 286 | # endif |
| 287 | #endif |
| 288 | #if HAVE_STRING_H |
| 289 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 290 | # include <memory.h> |
| 291 | # endif |
| 292 | # include <string.h> |
| 293 | #endif |
| 294 | #if HAVE_STRINGS_H |
| 295 | # include <strings.h> |
| 296 | #endif |
| 297 | #if HAVE_INTTYPES_H |
| 298 | # include <inttypes.h> |
| 299 | #else |
| 300 | # if HAVE_STDINT_H |
| 301 | # include <stdint.h> |
| 302 | # endif |
| 303 | #endif |
| 304 | #if HAVE_UNISTD_H |
| 305 | # include <unistd.h> |
| 306 | #endif" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 307 | |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame^] | 308 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBEXT OPTIONS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S LN C2MAN LDCONFIG LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC DLLTOOL LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 309 | ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 310 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 311 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 312 | ac_init_help= |
| 313 | ac_init_version=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 314 | # The variables have the same names as the options, with |
| 315 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 316 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 317 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 318 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 319 | no_recursion= |
| 320 | prefix=NONE |
| 321 | program_prefix=NONE |
| 322 | program_suffix=NONE |
| 323 | program_transform_name=s,x,x, |
| 324 | silent= |
| 325 | site= |
| 326 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 327 | verbose= |
| 328 | x_includes=NONE |
| 329 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 330 | |
| 331 | # Installation directory options. |
| 332 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 333 | # and all the variables that are supposed to be based on exec_prefix |
| 334 | # by default will actually change. |
| 335 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 336 | bindir='${exec_prefix}/bin' |
| 337 | sbindir='${exec_prefix}/sbin' |
| 338 | libexecdir='${exec_prefix}/libexec' |
| 339 | datadir='${prefix}/share' |
| 340 | sysconfdir='${prefix}/etc' |
| 341 | sharedstatedir='${prefix}/com' |
| 342 | localstatedir='${prefix}/var' |
| 343 | libdir='${exec_prefix}/lib' |
| 344 | includedir='${prefix}/include' |
| 345 | oldincludedir='/usr/include' |
| 346 | infodir='${prefix}/info' |
| 347 | mandir='${prefix}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 348 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 349 | ac_prev= |
| 350 | for ac_option |
| 351 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 352 | # If the previous option needs an argument, assign it. |
| 353 | if test -n "$ac_prev"; then |
| 354 | eval "$ac_prev=\$ac_option" |
| 355 | ac_prev= |
| 356 | continue |
| 357 | fi |
| 358 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 359 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 360 | |
| 361 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 362 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 363 | case $ac_option in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 364 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 365 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 366 | ac_prev=bindir ;; |
| 367 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 368 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 369 | |
| 370 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 371 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 372 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 373 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 374 | |
| 375 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 376 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 377 | ac_prev=cache_file ;; |
| 378 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 379 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 380 | cache_file=$ac_optarg ;; |
| 381 | |
| 382 | --config-cache | -C) |
| 383 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 384 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 385 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 386 | ac_prev=datadir ;; |
| 387 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 388 | | --da=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 389 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 390 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 391 | -disable-* | --disable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 392 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 393 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 394 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 395 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 396 | { (exit 1); exit 1; }; } |
| 397 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 398 | eval "enable_$ac_feature=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 399 | |
| 400 | -enable-* | --enable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 401 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 402 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 403 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 404 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 405 | { (exit 1); exit 1; }; } |
| 406 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 407 | case $ac_option in |
| 408 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 409 | *) ac_optarg=yes ;; |
| 410 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 411 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 412 | |
| 413 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 414 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 415 | | --exec | --exe | --ex) |
| 416 | ac_prev=exec_prefix ;; |
| 417 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 418 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 419 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 420 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 421 | |
| 422 | -gas | --gas | --ga | --g) |
| 423 | # Obsolete; use --with-gas. |
| 424 | with_gas=yes ;; |
| 425 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 426 | -help | --help | --hel | --he | -h) |
| 427 | ac_init_help=long ;; |
| 428 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 429 | ac_init_help=recursive ;; |
| 430 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 431 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 432 | |
| 433 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 434 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 435 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 436 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 437 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 438 | -includedir | --includedir | --includedi | --included | --include \ |
| 439 | | --includ | --inclu | --incl | --inc) |
| 440 | ac_prev=includedir ;; |
| 441 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 442 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 443 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 444 | |
| 445 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 446 | ac_prev=infodir ;; |
| 447 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 448 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 449 | |
| 450 | -libdir | --libdir | --libdi | --libd) |
| 451 | ac_prev=libdir ;; |
| 452 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 453 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 454 | |
| 455 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 456 | | --libexe | --libex | --libe) |
| 457 | ac_prev=libexecdir ;; |
| 458 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 459 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 460 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 461 | |
| 462 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 463 | | --localstate | --localstat | --localsta | --localst \ |
| 464 | | --locals | --local | --loca | --loc | --lo) |
| 465 | ac_prev=localstatedir ;; |
| 466 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 467 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 468 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 469 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 470 | |
| 471 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 472 | ac_prev=mandir ;; |
| 473 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 474 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 475 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 476 | -nfp | --nfp | --nf) |
| 477 | # Obsolete; use --without-fp. |
| 478 | with_fp=no ;; |
| 479 | |
| 480 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 481 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 482 | no_create=yes ;; |
| 483 | |
| 484 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 485 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 486 | no_recursion=yes ;; |
| 487 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 488 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 489 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 490 | | --oldin | --oldi | --old | --ol | --o) |
| 491 | ac_prev=oldincludedir ;; |
| 492 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 493 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 494 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 495 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 496 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 497 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 498 | ac_prev=prefix ;; |
| 499 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 500 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 501 | |
| 502 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 503 | | --program-pre | --program-pr | --program-p) |
| 504 | ac_prev=program_prefix ;; |
| 505 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 506 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 507 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 508 | |
| 509 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 510 | | --program-suf | --program-su | --program-s) |
| 511 | ac_prev=program_suffix ;; |
| 512 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 513 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 514 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 515 | |
| 516 | -program-transform-name | --program-transform-name \ |
| 517 | | --program-transform-nam | --program-transform-na \ |
| 518 | | --program-transform-n | --program-transform- \ |
| 519 | | --program-transform | --program-transfor \ |
| 520 | | --program-transfo | --program-transf \ |
| 521 | | --program-trans | --program-tran \ |
| 522 | | --progr-tra | --program-tr | --program-t) |
| 523 | ac_prev=program_transform_name ;; |
| 524 | -program-transform-name=* | --program-transform-name=* \ |
| 525 | | --program-transform-nam=* | --program-transform-na=* \ |
| 526 | | --program-transform-n=* | --program-transform-=* \ |
| 527 | | --program-transform=* | --program-transfor=* \ |
| 528 | | --program-transfo=* | --program-transf=* \ |
| 529 | | --program-trans=* | --program-tran=* \ |
| 530 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 531 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 532 | |
| 533 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 534 | | -silent | --silent | --silen | --sile | --sil) |
| 535 | silent=yes ;; |
| 536 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 537 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 538 | ac_prev=sbindir ;; |
| 539 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 540 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 541 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 542 | |
| 543 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 544 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 545 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 546 | | --sha | --sh) |
| 547 | ac_prev=sharedstatedir ;; |
| 548 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 549 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 550 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 551 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 552 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 553 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 554 | -site | --site | --sit) |
| 555 | ac_prev=site ;; |
| 556 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 557 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 558 | |
| 559 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 560 | ac_prev=srcdir ;; |
| 561 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 562 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 563 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 564 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 565 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 566 | ac_prev=sysconfdir ;; |
| 567 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 568 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 569 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 570 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 571 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 572 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 573 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 574 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 575 | |
| 576 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 577 | verbose=yes ;; |
| 578 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 579 | -version | --version | --versio | --versi | --vers | -V) |
| 580 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 581 | |
| 582 | -with-* | --with-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 583 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 584 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 585 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 586 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 587 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 588 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 589 | case $ac_option in |
| 590 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 591 | *) ac_optarg=yes ;; |
| 592 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 593 | eval "with_$ac_package='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 594 | |
| 595 | -without-* | --without-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 596 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 597 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 598 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 599 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 600 | { (exit 1); exit 1; }; } |
| 601 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 602 | eval "with_$ac_package=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 603 | |
| 604 | --x) |
| 605 | # Obsolete; use --with-x. |
| 606 | with_x=yes ;; |
| 607 | |
| 608 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 609 | | --x-incl | --x-inc | --x-in | --x-i) |
| 610 | ac_prev=x_includes ;; |
| 611 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 612 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 613 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 614 | |
| 615 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 616 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 617 | ac_prev=x_libraries ;; |
| 618 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 619 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 620 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 621 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 622 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 623 | Try \`$0 --help' for more information." >&2 |
| 624 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 625 | ;; |
| 626 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 627 | *=*) |
| 628 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 629 | # Reject names that are not valid shell variable names. |
| 630 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 631 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 632 | { (exit 1); exit 1; }; } |
| 633 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 634 | eval "$ac_envvar='$ac_optarg'" |
| 635 | export $ac_envvar ;; |
| 636 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 637 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 638 | # FIXME: should be removed in autoconf 3.0. |
| 639 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 640 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 641 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 642 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 643 | ;; |
| 644 | |
| 645 | esac |
| 646 | done |
| 647 | |
| 648 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 649 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 650 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 651 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 652 | fi |
| 653 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 654 | # Be sure to have absolute paths. |
| 655 | for ac_var in exec_prefix prefix |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 656 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 657 | eval ac_val=$`echo $ac_var` |
| 658 | case $ac_val in |
| 659 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 660 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 661 | { (exit 1); exit 1; }; };; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 662 | esac |
| 663 | done |
| 664 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 665 | # Be sure to have absolute paths. |
| 666 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 667 | localstatedir libdir includedir oldincludedir infodir mandir |
| 668 | do |
| 669 | eval ac_val=$`echo $ac_var` |
| 670 | case $ac_val in |
| 671 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 672 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 673 | { (exit 1); exit 1; }; };; |
| 674 | esac |
| 675 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 676 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 677 | # There might be people who depend on the old broken behavior: `$host' |
| 678 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 679 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 680 | build=$build_alias |
| 681 | host=$host_alias |
| 682 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 683 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 684 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 685 | if test "x$host_alias" != x; then |
| 686 | if test "x$build_alias" = x; then |
| 687 | cross_compiling=maybe |
| 688 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 689 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 690 | elif test "x$build_alias" != "x$host_alias"; then |
| 691 | cross_compiling=yes |
| 692 | fi |
| 693 | fi |
| 694 | |
| 695 | ac_tool_prefix= |
| 696 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 697 | |
| 698 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 699 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 700 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 701 | # Find the source files, if location was not specified. |
| 702 | if test -z "$srcdir"; then |
| 703 | ac_srcdir_defaulted=yes |
| 704 | # Try the directory containing this script, then its parent. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 705 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 706 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 707 | X"$0" : 'X\(//\)[^/]' \| \ |
| 708 | X"$0" : 'X\(//\)$' \| \ |
| 709 | X"$0" : 'X\(/\)' \| \ |
| 710 | . : '\(.\)' 2>/dev/null || |
| 711 | echo X"$0" | |
| 712 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 713 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 714 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 715 | /^X\(\/\).*/{ s//\1/; q; } |
| 716 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 717 | srcdir=$ac_confdir |
| 718 | if test ! -r $srcdir/$ac_unique_file; then |
| 719 | srcdir=.. |
| 720 | fi |
| 721 | else |
| 722 | ac_srcdir_defaulted=no |
| 723 | fi |
| 724 | if test ! -r $srcdir/$ac_unique_file; then |
| 725 | if test "$ac_srcdir_defaulted" = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 726 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 727 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 728 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 729 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 730 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 731 | fi |
| 732 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 733 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 734 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 735 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 736 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 737 | ac_env_build_alias_set=${build_alias+set} |
| 738 | ac_env_build_alias_value=$build_alias |
| 739 | ac_cv_env_build_alias_set=${build_alias+set} |
| 740 | ac_cv_env_build_alias_value=$build_alias |
| 741 | ac_env_host_alias_set=${host_alias+set} |
| 742 | ac_env_host_alias_value=$host_alias |
| 743 | ac_cv_env_host_alias_set=${host_alias+set} |
| 744 | ac_cv_env_host_alias_value=$host_alias |
| 745 | ac_env_target_alias_set=${target_alias+set} |
| 746 | ac_env_target_alias_value=$target_alias |
| 747 | ac_cv_env_target_alias_set=${target_alias+set} |
| 748 | ac_cv_env_target_alias_value=$target_alias |
| 749 | ac_env_CC_set=${CC+set} |
| 750 | ac_env_CC_value=$CC |
| 751 | ac_cv_env_CC_set=${CC+set} |
| 752 | ac_cv_env_CC_value=$CC |
| 753 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 754 | ac_env_CFLAGS_value=$CFLAGS |
| 755 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 756 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 757 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 758 | ac_env_LDFLAGS_value=$LDFLAGS |
| 759 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 760 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 761 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 762 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 763 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 764 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 765 | ac_env_CPP_set=${CPP+set} |
| 766 | ac_env_CPP_value=$CPP |
| 767 | ac_cv_env_CPP_set=${CPP+set} |
| 768 | ac_cv_env_CPP_value=$CPP |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 769 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 770 | # |
| 771 | # Report the --help message. |
| 772 | # |
| 773 | if test "$ac_init_help" = "long"; then |
| 774 | # Omit some internal or obsolete options to make the list less imposing. |
| 775 | # This message is too long to be a string in the A/UX 3.1 sh. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 776 | cat <<_ACEOF |
Alexandre Julliard | e8d0f97 | 2002-11-01 02:30:46 +0000 | [diff] [blame] | 777 | \`configure' configures Wine 20021031 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 778 | |
| 779 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 780 | |
| 781 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 782 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 783 | |
| 784 | Defaults for the options are specified in brackets. |
| 785 | |
| 786 | Configuration: |
| 787 | -h, --help display this help and exit |
| 788 | --help=short display options specific to this package |
| 789 | --help=recursive display the short help of all the included packages |
| 790 | -V, --version display version information and exit |
| 791 | -q, --quiet, --silent do not print \`checking...' messages |
| 792 | --cache-file=FILE cache test results in FILE [disabled] |
| 793 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 794 | -n, --no-create do not create output files |
| 795 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 796 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 797 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 798 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 799 | cat <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 800 | Installation directories: |
| 801 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 802 | [$ac_default_prefix] |
| 803 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 804 | [PREFIX] |
| 805 | |
| 806 | By default, \`make install' will install all the files in |
| 807 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 808 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 809 | for instance \`--prefix=\$HOME'. |
| 810 | |
| 811 | For better control, use the options below. |
| 812 | |
| 813 | Fine tuning of the installation directories: |
| 814 | --bindir=DIR user executables [EPREFIX/bin] |
| 815 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 816 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 817 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 818 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 819 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 820 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 821 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 822 | --includedir=DIR C header files [PREFIX/include] |
| 823 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 824 | --infodir=DIR info documentation [PREFIX/info] |
| 825 | --mandir=DIR man documentation [PREFIX/man] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 826 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 827 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 828 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 829 | |
| 830 | X features: |
| 831 | --x-includes=DIR X include files are in DIR |
| 832 | --x-libraries=DIR X library files are in DIR |
| 833 | |
| 834 | System types: |
| 835 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 837 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 838 | fi |
| 839 | |
| 840 | if test -n "$ac_init_help"; then |
| 841 | case $ac_init_help in |
Alexandre Julliard | e8d0f97 | 2002-11-01 02:30:46 +0000 | [diff] [blame] | 842 | short | recursive ) echo "Configuration of Wine 20021031:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 843 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 844 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 845 | |
| 846 | Optional Features: |
| 847 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 848 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 849 | --disable-win16 do not include Win16 support |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 850 | --disable-debug compile out all debugging messages |
| 851 | --disable-trace compile out TRACE messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 852 | |
| 853 | Optional Packages: |
| 854 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 855 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 856 | --without-opengl do not use OpenGL |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 857 | --without-curses do not use curses |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 858 | --with-wine-tools=<dir> use Wine tools from directory <dir> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 859 | --with-x use the X Window System |
| 860 | |
| 861 | Some influential environment variables: |
| 862 | CC C compiler command |
| 863 | CFLAGS C compiler flags |
| 864 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 865 | nonstandard directory <lib dir> |
| 866 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 867 | headers in a nonstandard directory <include dir> |
| 868 | CPP C preprocessor |
| 869 | |
| 870 | Use these variables to override the choices made by `configure' or to help |
| 871 | it to find libraries and programs with nonstandard names/locations. |
| 872 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 873 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 874 | fi |
| 875 | |
| 876 | if test "$ac_init_help" = "recursive"; then |
| 877 | # If there are subdirs, report their specific --help. |
| 878 | ac_popdir=`pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 879 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 880 | test -d $ac_dir || continue |
| 881 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 882 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 883 | if test "$ac_dir" != .; then |
| 884 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 885 | # A "../" for each directory in $ac_dir_suffix. |
| 886 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 887 | else |
| 888 | ac_dir_suffix= ac_top_builddir= |
| 889 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 890 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 891 | case $srcdir in |
| 892 | .) # No --srcdir option. We are building in place. |
| 893 | ac_srcdir=. |
| 894 | if test -z "$ac_top_builddir"; then |
| 895 | ac_top_srcdir=. |
| 896 | else |
| 897 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 898 | fi ;; |
| 899 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 900 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 901 | ac_top_srcdir=$srcdir ;; |
| 902 | *) # Relative path. |
| 903 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 904 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 905 | esac |
| 906 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 907 | # absolute. |
| 908 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 909 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 910 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 911 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 912 | |
| 913 | cd $ac_dir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 914 | # Check for guested configure; otherwise get Cygnus style configure. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 915 | if test -f $ac_srcdir/configure.gnu; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 916 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 917 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 918 | elif test -f $ac_srcdir/configure; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 919 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 920 | $SHELL $ac_srcdir/configure --help=recursive |
| 921 | elif test -f $ac_srcdir/configure.ac || |
| 922 | test -f $ac_srcdir/configure.in; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 923 | echo |
| 924 | $ac_configure --help |
| 925 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 926 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 927 | fi |
| 928 | cd $ac_popdir |
| 929 | done |
| 930 | fi |
| 931 | |
| 932 | test -n "$ac_init_help" && exit 0 |
| 933 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 934 | cat <<\_ACEOF |
Alexandre Julliard | e8d0f97 | 2002-11-01 02:30:46 +0000 | [diff] [blame] | 935 | Wine configure 20021031 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 936 | generated by GNU Autoconf 2.54 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 937 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 938 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 939 | Free Software Foundation, Inc. |
| 940 | This configure script is free software; the Free Software Foundation |
| 941 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 942 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 943 | exit 0 |
| 944 | fi |
| 945 | exec 5>config.log |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 946 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 947 | This file contains any messages produced by compilers while |
| 948 | running configure, to aid debugging if configure makes a mistake. |
| 949 | |
Alexandre Julliard | e8d0f97 | 2002-11-01 02:30:46 +0000 | [diff] [blame] | 950 | It was created by Wine $as_me 20021031, which was |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 951 | generated by GNU Autoconf 2.54. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 952 | |
| 953 | $ $0 $@ |
| 954 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 955 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 956 | { |
| 957 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 958 | ## --------- ## |
| 959 | ## Platform. ## |
| 960 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 961 | |
| 962 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 963 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 964 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 965 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 966 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 967 | |
| 968 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 969 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 970 | |
| 971 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 972 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 973 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 974 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 975 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 976 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 977 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 978 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 979 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 980 | |
| 981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 982 | for as_dir in $PATH |
| 983 | do |
| 984 | IFS=$as_save_IFS |
| 985 | test -z "$as_dir" && as_dir=. |
| 986 | echo "PATH: $as_dir" |
| 987 | done |
| 988 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 989 | } >&5 |
| 990 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 991 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 992 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 993 | |
| 994 | ## ----------- ## |
| 995 | ## Core tests. ## |
| 996 | ## ----------- ## |
| 997 | |
| 998 | _ACEOF |
| 999 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1000 | |
| 1001 | # Keep a trace of the command line. |
| 1002 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1003 | # Also quote any args containing shell meta-characters. |
| 1004 | ac_configure_args= |
| 1005 | ac_sep= |
| 1006 | for ac_arg |
| 1007 | do |
| 1008 | case $ac_arg in |
| 1009 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1010 | | --no-cr | --no-c | -n ) continue ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1011 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1012 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1013 | continue ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1014 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1015 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1016 | esac |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1017 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1018 | # Get rid of the leading space. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1019 | ac_sep=" " |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1020 | done |
| 1021 | |
| 1022 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1023 | # config.log. We remove comments because anyway the quotes in there |
| 1024 | # would cause problems or look ugly. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1025 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1026 | # such as our DU 5.0 friend, will then `close' the trap. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1027 | trap 'exit_status=$? |
| 1028 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1029 | { |
| 1030 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1031 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1032 | cat <<\_ASBOX |
| 1033 | ## ---------------- ## |
| 1034 | ## Cache variables. ## |
| 1035 | ## ---------------- ## |
| 1036 | _ASBOX |
| 1037 | echo |
| 1038 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1039 | { |
| 1040 | (set) 2>&1 | |
| 1041 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1042 | *ac_space=\ *) |
| 1043 | sed -n \ |
| 1044 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1045 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1046 | ;; |
| 1047 | *) |
| 1048 | sed -n \ |
| 1049 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1050 | ;; |
| 1051 | esac; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1052 | } |
| 1053 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1054 | |
| 1055 | cat <<\_ASBOX |
| 1056 | ## ----------------- ## |
| 1057 | ## Output variables. ## |
| 1058 | ## ----------------- ## |
| 1059 | _ASBOX |
| 1060 | echo |
| 1061 | for ac_var in $ac_subst_vars |
| 1062 | do |
| 1063 | eval ac_val=$`echo $ac_var` |
| 1064 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1065 | done | sort |
| 1066 | echo |
| 1067 | |
| 1068 | if test -n "$ac_subst_files"; then |
| 1069 | cat <<\_ASBOX |
| 1070 | ## ------------- ## |
| 1071 | ## Output files. ## |
| 1072 | ## ------------- ## |
| 1073 | _ASBOX |
| 1074 | echo |
| 1075 | for ac_var in $ac_subst_files |
| 1076 | do |
| 1077 | eval ac_val=$`echo $ac_var` |
| 1078 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1079 | done | sort |
| 1080 | echo |
| 1081 | fi |
| 1082 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1083 | if test -s confdefs.h; then |
| 1084 | cat <<\_ASBOX |
| 1085 | ## ----------- ## |
| 1086 | ## confdefs.h. ## |
| 1087 | ## ----------- ## |
| 1088 | _ASBOX |
| 1089 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1090 | sed "/^$/d" confdefs.h | sort |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1091 | echo |
| 1092 | fi |
| 1093 | test "$ac_signal" != 0 && |
| 1094 | echo "$as_me: caught signal $ac_signal" |
| 1095 | echo "$as_me: exit $exit_status" |
| 1096 | } >&5 |
| 1097 | rm -f core core.* *.core && |
| 1098 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1099 | exit $exit_status |
| 1100 | ' 0 |
| 1101 | for ac_signal in 1 2 13 15; do |
| 1102 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1103 | done |
| 1104 | ac_signal=0 |
| 1105 | |
| 1106 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1107 | rm -rf conftest* confdefs.h |
| 1108 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1109 | echo >confdefs.h |
| 1110 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1111 | # Predefined preprocessor variables. |
| 1112 | |
| 1113 | cat >>confdefs.h <<_ACEOF |
| 1114 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1115 | _ACEOF |
| 1116 | |
| 1117 | |
| 1118 | cat >>confdefs.h <<_ACEOF |
| 1119 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1120 | _ACEOF |
| 1121 | |
| 1122 | |
| 1123 | cat >>confdefs.h <<_ACEOF |
| 1124 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1125 | _ACEOF |
| 1126 | |
| 1127 | |
| 1128 | cat >>confdefs.h <<_ACEOF |
| 1129 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1130 | _ACEOF |
| 1131 | |
| 1132 | |
| 1133 | cat >>confdefs.h <<_ACEOF |
| 1134 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1135 | _ACEOF |
| 1136 | |
| 1137 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1138 | # 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] | 1139 | # Prefer explicitly selected file to automatically selected ones. |
| 1140 | if test -z "$CONFIG_SITE"; then |
| 1141 | if test "x$prefix" != xNONE; then |
| 1142 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1143 | else |
| 1144 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1145 | fi |
| 1146 | fi |
| 1147 | for ac_site_file in $CONFIG_SITE; do |
| 1148 | if test -r "$ac_site_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1149 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1150 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1151 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1152 | . "$ac_site_file" |
| 1153 | fi |
| 1154 | done |
| 1155 | |
| 1156 | if test -r "$cache_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1157 | # Some versions of bash will fail to source /dev/null (special |
| 1158 | # files actually), so we avoid doing that. |
| 1159 | if test -f "$cache_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1160 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1161 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1162 | case $cache_file in |
| 1163 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1164 | *) . ./$cache_file;; |
| 1165 | esac |
| 1166 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1167 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1168 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1169 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1170 | >$cache_file |
| 1171 | fi |
| 1172 | |
| 1173 | # Check that the precious variables saved in the cache have kept the same |
| 1174 | # value. |
| 1175 | ac_cache_corrupted=false |
| 1176 | for ac_var in `(set) 2>&1 | |
| 1177 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1178 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1179 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1180 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1181 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1182 | case $ac_old_set,$ac_new_set in |
| 1183 | set,) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1184 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1185 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1186 | ac_cache_corrupted=: ;; |
| 1187 | ,set) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1188 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1189 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1190 | ac_cache_corrupted=: ;; |
| 1191 | ,);; |
| 1192 | *) |
| 1193 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1194 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1195 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1196 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1197 | echo "$as_me: former value: $ac_old_val" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1198 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1199 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1200 | ac_cache_corrupted=: |
| 1201 | fi;; |
| 1202 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1203 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1204 | if test "$ac_new_set" = set; then |
| 1205 | case $ac_new_val in |
| 1206 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1207 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1208 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1209 | esac |
| 1210 | case " $ac_configure_args " in |
| 1211 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1212 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1213 | esac |
| 1214 | fi |
| 1215 | done |
| 1216 | if $ac_cache_corrupted; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1217 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1218 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1219 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1220 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1221 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1222 | fi |
| 1223 | |
| 1224 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1225 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1229 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1230 | |
| 1231 | |
| 1232 | |
| 1233 | |
| 1234 | |
| 1235 | |
| 1236 | |
| 1237 | |
| 1238 | |
| 1239 | |
| 1240 | |
| 1241 | |
| 1242 | |
| 1243 | |
| 1244 | |
| 1245 | |
| 1246 | |
| 1247 | |
| 1248 | |
| 1249 | |
| 1250 | |
| 1251 | |
| 1252 | |
| 1253 | |
| 1254 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1255 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1256 | |
| 1257 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1258 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1259 | ac_aux_dir= |
| 1260 | for ac_dir in tools $srcdir/tools; do |
| 1261 | if test -f $ac_dir/install-sh; then |
| 1262 | ac_aux_dir=$ac_dir |
| 1263 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1264 | break |
| 1265 | elif test -f $ac_dir/install.sh; then |
| 1266 | ac_aux_dir=$ac_dir |
| 1267 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1268 | break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1269 | elif test -f $ac_dir/shtool; then |
| 1270 | ac_aux_dir=$ac_dir |
| 1271 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1272 | break |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1273 | fi |
| 1274 | done |
| 1275 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1276 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1277 | echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;} |
| 1278 | { (exit 1); exit 1; }; } |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1279 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1280 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1281 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1282 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 1283 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1284 | |
| 1285 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 1286 | LIBEXT="so" |
| 1287 | |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1288 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1289 | # Check whether --enable-win16 or --disable-win16 was given. |
| 1290 | if test "${enable_win16+set}" = set; then |
| 1291 | enableval="$enable_win16" |
| 1292 | |
| 1293 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1294 | # Check whether --enable-debug or --disable-debug was given. |
| 1295 | if test "${enable_debug+set}" = set; then |
| 1296 | enableval="$enable_debug" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1297 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1298 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1299 | # Check whether --enable-trace or --disable-trace was given. |
| 1300 | if test "${enable_trace+set}" = set; then |
| 1301 | enableval="$enable_trace" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1302 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1303 | fi; |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1304 | |
| 1305 | |
| 1306 | # Check whether --with-opengl or --without-opengl was given. |
| 1307 | if test "${with_opengl+set}" = set; then |
| 1308 | withval="$with_opengl" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1309 | |
| 1310 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1311 | |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1312 | # Check whether --with-curses or --without-curses was given. |
| 1313 | if test "${with_curses+set}" = set; then |
| 1314 | withval="$with_curses" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1315 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1316 | fi; |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1317 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1318 | # Check whether --with-wine-tools or --without-wine-tools was given. |
| 1319 | if test "${with_wine_tools+set}" = set; then |
| 1320 | withval="$with_wine_tools" |
| 1321 | |
| 1322 | fi; |
| 1323 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1324 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1325 | WIN16_FILES="\$(WIN16_FILES)" |
| 1326 | |
| 1327 | WIN16_INSTALL="\$(WIN16_INSTALL)" |
| 1328 | |
| 1329 | if test "x$enable_win16" = "xno" |
| 1330 | then |
| 1331 | WIN16_FILES="" |
| 1332 | WIN16_INSTALL="" |
| 1333 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1334 | if test "x$enable_debug" = "xno" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1335 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1336 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1337 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1338 | #define NO_DEBUG_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1339 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1340 | |
| 1341 | fi |
| 1342 | if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1343 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1344 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1345 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1346 | #define NO_TRACE_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1347 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1348 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1349 | fi |
| 1350 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1351 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1352 | # Make sure we can run config.sub. |
| 1353 | $ac_config_sub sun4 >/dev/null 2>&1 || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1354 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1355 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1356 | { (exit 1); exit 1; }; } |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1357 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1358 | echo "$as_me:$LINENO: checking build system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1359 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1360 | if test "${ac_cv_build+set}" = set; then |
| 1361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1362 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1363 | ac_cv_build_alias=$build_alias |
| 1364 | test -z "$ac_cv_build_alias" && |
| 1365 | ac_cv_build_alias=`$ac_config_guess` |
| 1366 | test -z "$ac_cv_build_alias" && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1367 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1368 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1369 | { (exit 1); exit 1; }; } |
| 1370 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1371 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1372 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1373 | { (exit 1); exit 1; }; } |
| 1374 | |
| 1375 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1376 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1377 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1378 | build=$ac_cv_build |
| 1379 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1380 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1381 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1382 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1383 | |
| 1384 | echo "$as_me:$LINENO: checking host system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1385 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1386 | if test "${ac_cv_host+set}" = set; then |
| 1387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1388 | else |
| 1389 | ac_cv_host_alias=$host_alias |
| 1390 | test -z "$ac_cv_host_alias" && |
| 1391 | ac_cv_host_alias=$ac_cv_build_alias |
| 1392 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1393 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1394 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1395 | { (exit 1); exit 1; }; } |
| 1396 | |
| 1397 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1398 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1399 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1400 | host=$ac_cv_host |
| 1401 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1402 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1403 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1404 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1405 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1406 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1407 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 1408 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1409 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1411 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1412 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1413 | all: |
| 1414 | @echo 'ac_maketemp="${MAKE}"' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1415 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1416 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1417 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1418 | if test -n "$ac_maketemp"; then |
| 1419 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1420 | else |
| 1421 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1422 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1423 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1424 | fi |
| 1425 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1426 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1427 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1428 | SET_MAKE= |
| 1429 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1430 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1431 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1432 | SET_MAKE="MAKE=${MAKE-make}" |
| 1433 | fi |
| 1434 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1435 | ac_ext=c |
| 1436 | ac_cpp='$CPP $CPPFLAGS' |
| 1437 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1438 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1439 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1440 | if test -n "$ac_tool_prefix"; then |
| 1441 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1442 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1443 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1444 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1445 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1447 | else |
| 1448 | if test -n "$CC"; then |
| 1449 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1450 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1452 | for as_dir in $PATH |
| 1453 | do |
| 1454 | IFS=$as_save_IFS |
| 1455 | test -z "$as_dir" && as_dir=. |
| 1456 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1457 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1458 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1459 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1460 | break 2 |
| 1461 | fi |
| 1462 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1463 | done |
| 1464 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1465 | fi |
| 1466 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1467 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1468 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1469 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1470 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1471 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1472 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1473 | echo "${ECHO_T}no" >&6 |
| 1474 | fi |
| 1475 | |
| 1476 | fi |
| 1477 | if test -z "$ac_cv_prog_CC"; then |
| 1478 | ac_ct_CC=$CC |
| 1479 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1480 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1483 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1485 | else |
| 1486 | if test -n "$ac_ct_CC"; then |
| 1487 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1488 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1490 | for as_dir in $PATH |
| 1491 | do |
| 1492 | IFS=$as_save_IFS |
| 1493 | test -z "$as_dir" && as_dir=. |
| 1494 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1496 | ac_cv_prog_ac_ct_CC="gcc" |
| 1497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1498 | break 2 |
| 1499 | fi |
| 1500 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1501 | done |
| 1502 | |
| 1503 | fi |
| 1504 | fi |
| 1505 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1506 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1507 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1508 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1509 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1510 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1511 | echo "${ECHO_T}no" >&6 |
| 1512 | fi |
| 1513 | |
| 1514 | CC=$ac_ct_CC |
| 1515 | else |
| 1516 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1517 | fi |
| 1518 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1519 | if test -z "$CC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1520 | if test -n "$ac_tool_prefix"; then |
| 1521 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1522 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1523 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1524 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1525 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1527 | else |
| 1528 | if test -n "$CC"; then |
| 1529 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1530 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1532 | for as_dir in $PATH |
| 1533 | do |
| 1534 | IFS=$as_save_IFS |
| 1535 | test -z "$as_dir" && as_dir=. |
| 1536 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1537 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1538 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1539 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1540 | break 2 |
| 1541 | fi |
| 1542 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1543 | done |
| 1544 | |
| 1545 | fi |
| 1546 | fi |
| 1547 | CC=$ac_cv_prog_CC |
| 1548 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1549 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1550 | echo "${ECHO_T}$CC" >&6 |
| 1551 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1552 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1553 | echo "${ECHO_T}no" >&6 |
| 1554 | fi |
| 1555 | |
| 1556 | fi |
| 1557 | if test -z "$ac_cv_prog_CC"; then |
| 1558 | ac_ct_CC=$CC |
| 1559 | # Extract the first word of "cc", so it can be a program name with args. |
| 1560 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1561 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1563 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1565 | else |
| 1566 | if test -n "$ac_ct_CC"; then |
| 1567 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1568 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1570 | for as_dir in $PATH |
| 1571 | do |
| 1572 | IFS=$as_save_IFS |
| 1573 | test -z "$as_dir" && as_dir=. |
| 1574 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1575 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1576 | ac_cv_prog_ac_ct_CC="cc" |
| 1577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1578 | break 2 |
| 1579 | fi |
| 1580 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1581 | done |
| 1582 | |
| 1583 | fi |
| 1584 | fi |
| 1585 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1586 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1587 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1588 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1589 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1590 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1591 | echo "${ECHO_T}no" >&6 |
| 1592 | fi |
| 1593 | |
| 1594 | CC=$ac_ct_CC |
| 1595 | else |
| 1596 | CC="$ac_cv_prog_CC" |
| 1597 | fi |
| 1598 | |
| 1599 | fi |
| 1600 | if test -z "$CC"; then |
| 1601 | # Extract the first word of "cc", so it can be a program name with args. |
| 1602 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1603 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1605 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1607 | else |
| 1608 | if test -n "$CC"; then |
| 1609 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1610 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1611 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1613 | for as_dir in $PATH |
| 1614 | do |
| 1615 | IFS=$as_save_IFS |
| 1616 | test -z "$as_dir" && as_dir=. |
| 1617 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1618 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1619 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1620 | ac_prog_rejected=yes |
| 1621 | continue |
| 1622 | fi |
| 1623 | ac_cv_prog_CC="cc" |
| 1624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1625 | break 2 |
| 1626 | fi |
| 1627 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1628 | done |
| 1629 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1630 | if test $ac_prog_rejected = yes; then |
| 1631 | # We found a bogon in the path, so make sure we never use it. |
| 1632 | set dummy $ac_cv_prog_CC |
| 1633 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1634 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1635 | # We chose a different compiler from the bogus one. |
| 1636 | # However, it has the same basename, so the bogon will be chosen |
| 1637 | # first if we set CC to just the basename; use the full file name. |
| 1638 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1639 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1640 | fi |
| 1641 | fi |
| 1642 | fi |
| 1643 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1644 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1645 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1646 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1647 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1648 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1649 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1650 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1651 | fi |
| 1652 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1653 | fi |
| 1654 | if test -z "$CC"; then |
| 1655 | if test -n "$ac_tool_prefix"; then |
| 1656 | for ac_prog in cl |
| 1657 | do |
| 1658 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1659 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1660 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1662 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1664 | else |
| 1665 | if test -n "$CC"; then |
| 1666 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1667 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1669 | for as_dir in $PATH |
| 1670 | do |
| 1671 | IFS=$as_save_IFS |
| 1672 | test -z "$as_dir" && as_dir=. |
| 1673 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1674 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1675 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1676 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1677 | break 2 |
| 1678 | fi |
| 1679 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1680 | done |
| 1681 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1682 | fi |
| 1683 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1684 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1685 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1686 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1687 | echo "${ECHO_T}$CC" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1688 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1689 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1690 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1691 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1692 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1693 | test -n "$CC" && break |
| 1694 | done |
| 1695 | fi |
| 1696 | if test -z "$CC"; then |
| 1697 | ac_ct_CC=$CC |
| 1698 | for ac_prog in cl |
| 1699 | do |
| 1700 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1701 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1702 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1704 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1706 | else |
| 1707 | if test -n "$ac_ct_CC"; then |
| 1708 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1709 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1711 | for as_dir in $PATH |
| 1712 | do |
| 1713 | IFS=$as_save_IFS |
| 1714 | test -z "$as_dir" && as_dir=. |
| 1715 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1716 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1717 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1719 | break 2 |
| 1720 | fi |
| 1721 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1722 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1723 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1724 | fi |
| 1725 | fi |
| 1726 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1727 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1728 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1729 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1730 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1731 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1732 | echo "${ECHO_T}no" >&6 |
| 1733 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1734 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1735 | test -n "$ac_ct_CC" && break |
| 1736 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1737 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1738 | CC=$ac_ct_CC |
| 1739 | fi |
| 1740 | |
| 1741 | fi |
| 1742 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1743 | |
| 1744 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 1745 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1746 | { (exit 1); exit 1; }; } |
| 1747 | |
| 1748 | # Provide some information about the compiler. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1749 | echo "$as_me:$LINENO:" \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1750 | "checking for C compiler version" >&5 |
| 1751 | ac_compiler=`set X $ac_compile; echo $2` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1752 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1753 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1754 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1756 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1757 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1758 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1759 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1761 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1762 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1763 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1764 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1766 | (exit $ac_status); } |
| 1767 | |
| 1768 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1769 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1770 | #include "confdefs.h" |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1771 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1772 | int |
| 1773 | main () |
| 1774 | { |
| 1775 | |
| 1776 | ; |
| 1777 | return 0; |
| 1778 | } |
| 1779 | _ACEOF |
| 1780 | ac_clean_files_save=$ac_clean_files |
| 1781 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1782 | # Try to create an executable without -o first, disregard a.out. |
| 1783 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1784 | # of exeext. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1785 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1786 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1787 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1788 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1789 | (eval $ac_link_default) 2>&5 |
| 1790 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1792 | (exit $ac_status); }; then |
| 1793 | # Find the output, starting from the most likely. This scheme is |
| 1794 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1795 | # resort. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1796 | |
| 1797 | # Be careful to initialize this variable, since it used to be cached. |
| 1798 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1799 | ac_cv_exeext= |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1800 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do |
| 1801 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1802 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1803 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1804 | a.out ) # We found the default executable, but exeext='' is most |
| 1805 | # certainly right. |
| 1806 | break;; |
| 1807 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1808 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1809 | export ac_cv_exeext |
| 1810 | break;; |
| 1811 | * ) break;; |
| 1812 | esac |
| 1813 | done |
| 1814 | else |
| 1815 | echo "$as_me: failed program was:" >&5 |
| 1816 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1817 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1818 | check \`config.log' for details." >&5 |
| 1819 | echo "$as_me: error: C compiler cannot create executables |
| 1820 | check \`config.log' for details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1821 | { (exit 77); exit 77; }; } |
| 1822 | fi |
| 1823 | |
| 1824 | ac_exeext=$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1825 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1826 | echo "${ECHO_T}$ac_file" >&6 |
| 1827 | |
| 1828 | # Check the compiler produces executables we can run. If not, either |
| 1829 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1830 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1831 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1832 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1833 | # If not cross compiling, check that we can run a simple program. |
| 1834 | if test "$cross_compiling" != yes; then |
| 1835 | if { ac_try='./$ac_file' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1837 | (eval $ac_try) 2>&5 |
| 1838 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1840 | (exit $ac_status); }; }; then |
| 1841 | cross_compiling=no |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1842 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1843 | if test "$cross_compiling" = maybe; then |
| 1844 | cross_compiling=yes |
| 1845 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1846 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1847 | If you meant to cross compile, use \`--host'." >&5 |
| 1848 | echo "$as_me: error: cannot run C compiled programs. |
| 1849 | If you meant to cross compile, use \`--host'." >&2;} |
| 1850 | { (exit 1); exit 1; }; } |
| 1851 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1852 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1853 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1854 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1855 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1856 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1857 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1858 | ac_clean_files=$ac_clean_files_save |
| 1859 | # Check the compiler produces executables we can run. If not, either |
| 1860 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1861 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1862 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1863 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1864 | echo "${ECHO_T}$cross_compiling" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1865 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1866 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1867 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1869 | (eval $ac_link) 2>&5 |
| 1870 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1872 | (exit $ac_status); }; then |
| 1873 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1874 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1875 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1876 | # `rm'. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1877 | for ac_file in conftest.exe conftest conftest.*; do |
| 1878 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1879 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1880 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1881 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1882 | export ac_cv_exeext |
| 1883 | break;; |
| 1884 | * ) break;; |
| 1885 | esac |
| 1886 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1887 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1888 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1889 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1890 | { (exit 1); exit 1; }; } |
| 1891 | fi |
| 1892 | |
| 1893 | rm -f conftest$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1894 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1895 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1896 | |
| 1897 | rm -f conftest.$ac_ext |
| 1898 | EXEEXT=$ac_cv_exeext |
| 1899 | ac_exeext=$EXEEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1900 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1901 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1902 | if test "${ac_cv_objext+set}" = set; then |
| 1903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1904 | else |
| 1905 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1906 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1907 | #include "confdefs.h" |
| 1908 | |
| 1909 | int |
| 1910 | main () |
| 1911 | { |
| 1912 | |
| 1913 | ; |
| 1914 | return 0; |
| 1915 | } |
| 1916 | _ACEOF |
| 1917 | rm -f conftest.o conftest.obj |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1919 | (eval $ac_compile) 2>&5 |
| 1920 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1922 | (exit $ac_status); }; then |
| 1923 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1924 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1925 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1926 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1927 | break;; |
| 1928 | esac |
| 1929 | done |
| 1930 | else |
| 1931 | echo "$as_me: failed program was:" >&5 |
| 1932 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1933 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 1934 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1935 | { (exit 1); exit 1; }; } |
| 1936 | fi |
| 1937 | |
| 1938 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1939 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1940 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1941 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1942 | OBJEXT=$ac_cv_objext |
| 1943 | ac_objext=$OBJEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1944 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1945 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1946 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1948 | else |
| 1949 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1950 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1951 | #include "confdefs.h" |
| 1952 | |
| 1953 | int |
| 1954 | main () |
| 1955 | { |
| 1956 | #ifndef __GNUC__ |
| 1957 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1958 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1959 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1960 | ; |
| 1961 | return 0; |
| 1962 | } |
| 1963 | _ACEOF |
| 1964 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1966 | (eval $ac_compile) 2>&5 |
| 1967 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1969 | (exit $ac_status); } && |
| 1970 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1972 | (eval $ac_try) 2>&5 |
| 1973 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1975 | (exit $ac_status); }; }; then |
| 1976 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1977 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1978 | echo "$as_me: failed program was:" >&5 |
| 1979 | cat conftest.$ac_ext >&5 |
| 1980 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1981 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1982 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 1983 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1984 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1985 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1986 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1987 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1988 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1989 | ac_test_CFLAGS=${CFLAGS+set} |
| 1990 | ac_save_CFLAGS=$CFLAGS |
| 1991 | CFLAGS="-g" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1992 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1993 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1994 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1996 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1997 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1998 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1999 | #include "confdefs.h" |
| 2000 | |
| 2001 | int |
| 2002 | main () |
| 2003 | { |
| 2004 | |
| 2005 | ; |
| 2006 | return 0; |
| 2007 | } |
| 2008 | _ACEOF |
| 2009 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2011 | (eval $ac_compile) 2>&5 |
| 2012 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2014 | (exit $ac_status); } && |
| 2015 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2017 | (eval $ac_try) 2>&5 |
| 2018 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2020 | (exit $ac_status); }; }; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2021 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2022 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2023 | echo "$as_me: failed program was:" >&5 |
| 2024 | cat conftest.$ac_ext >&5 |
| 2025 | ac_cv_prog_cc_g=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2026 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2027 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2028 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2029 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2030 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2031 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2032 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2033 | elif test $ac_cv_prog_cc_g = yes; then |
| 2034 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2035 | CFLAGS="-g -O2" |
| 2036 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2037 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2038 | fi |
| 2039 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2040 | if test "$GCC" = yes; then |
| 2041 | CFLAGS="-O2" |
| 2042 | else |
| 2043 | CFLAGS= |
| 2044 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2045 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2046 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2047 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2048 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2050 | else |
| 2051 | ac_cv_prog_cc_stdc=no |
| 2052 | ac_save_CC=$CC |
| 2053 | cat >conftest.$ac_ext <<_ACEOF |
| 2054 | #line $LINENO "configure" |
| 2055 | #include "confdefs.h" |
| 2056 | #include <stdarg.h> |
| 2057 | #include <stdio.h> |
| 2058 | #include <sys/types.h> |
| 2059 | #include <sys/stat.h> |
| 2060 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2061 | struct buf { int x; }; |
| 2062 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2063 | static char *e (p, i) |
| 2064 | char **p; |
| 2065 | int i; |
| 2066 | { |
| 2067 | return p[i]; |
| 2068 | } |
| 2069 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2070 | { |
| 2071 | char *s; |
| 2072 | va_list v; |
| 2073 | va_start (v,p); |
| 2074 | s = g (p, va_arg (v,int)); |
| 2075 | va_end (v); |
| 2076 | return s; |
| 2077 | } |
| 2078 | int test (int i, double x); |
| 2079 | struct s1 {int (*f) (int a);}; |
| 2080 | struct s2 {int (*f) (double a);}; |
| 2081 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2082 | int argc; |
| 2083 | char **argv; |
| 2084 | int |
| 2085 | main () |
| 2086 | { |
| 2087 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2088 | ; |
| 2089 | return 0; |
| 2090 | } |
| 2091 | _ACEOF |
| 2092 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2093 | # breaks some systems' header files. |
| 2094 | # AIX -qlanglvl=ansi |
| 2095 | # Ultrix and OSF/1 -std1 |
| 2096 | # HP-UX 10.20 and later -Ae |
| 2097 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2098 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2099 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2100 | do |
| 2101 | CC="$ac_save_CC $ac_arg" |
| 2102 | rm -f conftest.$ac_objext |
| 2103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2104 | (eval $ac_compile) 2>&5 |
| 2105 | ac_status=$? |
| 2106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2107 | (exit $ac_status); } && |
| 2108 | { ac_try='test -s conftest.$ac_objext' |
| 2109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2110 | (eval $ac_try) 2>&5 |
| 2111 | ac_status=$? |
| 2112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2113 | (exit $ac_status); }; }; then |
| 2114 | ac_cv_prog_cc_stdc=$ac_arg |
| 2115 | break |
| 2116 | else |
| 2117 | echo "$as_me: failed program was:" >&5 |
| 2118 | cat conftest.$ac_ext >&5 |
| 2119 | fi |
| 2120 | rm -f conftest.$ac_objext |
| 2121 | done |
| 2122 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2123 | CC=$ac_save_CC |
| 2124 | |
| 2125 | fi |
| 2126 | |
| 2127 | case "x$ac_cv_prog_cc_stdc" in |
| 2128 | x|xno) |
| 2129 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2130 | echo "${ECHO_T}none needed" >&6 ;; |
| 2131 | *) |
| 2132 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2133 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2134 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2135 | esac |
| 2136 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2137 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2138 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2139 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2140 | # the declaration of exit, since it's the most demanding environment. |
| 2141 | cat >conftest.$ac_ext <<_ACEOF |
| 2142 | #ifndef __cplusplus |
| 2143 | choke me |
| 2144 | #endif |
| 2145 | _ACEOF |
| 2146 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2148 | (eval $ac_compile) 2>&5 |
| 2149 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2151 | (exit $ac_status); } && |
| 2152 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2154 | (eval $ac_try) 2>&5 |
| 2155 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2157 | (exit $ac_status); }; }; then |
| 2158 | for ac_declaration in \ |
| 2159 | ''\ |
| 2160 | '#include <stdlib.h>' \ |
| 2161 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2162 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2163 | 'extern "C" void exit (int) throw ();' \ |
| 2164 | 'extern "C" void exit (int);' \ |
| 2165 | 'void exit (int);' |
| 2166 | do |
| 2167 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2168 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2169 | #include "confdefs.h" |
| 2170 | #include <stdlib.h> |
| 2171 | $ac_declaration |
| 2172 | int |
| 2173 | main () |
| 2174 | { |
| 2175 | exit (42); |
| 2176 | ; |
| 2177 | return 0; |
| 2178 | } |
| 2179 | _ACEOF |
| 2180 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2182 | (eval $ac_compile) 2>&5 |
| 2183 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2185 | (exit $ac_status); } && |
| 2186 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2188 | (eval $ac_try) 2>&5 |
| 2189 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2191 | (exit $ac_status); }; }; then |
| 2192 | : |
| 2193 | else |
| 2194 | echo "$as_me: failed program was:" >&5 |
| 2195 | cat conftest.$ac_ext >&5 |
| 2196 | continue |
| 2197 | fi |
| 2198 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2199 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2200 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2201 | #include "confdefs.h" |
| 2202 | $ac_declaration |
| 2203 | int |
| 2204 | main () |
| 2205 | { |
| 2206 | exit (42); |
| 2207 | ; |
| 2208 | return 0; |
| 2209 | } |
| 2210 | _ACEOF |
| 2211 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2213 | (eval $ac_compile) 2>&5 |
| 2214 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2216 | (exit $ac_status); } && |
| 2217 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2219 | (eval $ac_try) 2>&5 |
| 2220 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2222 | (exit $ac_status); }; }; then |
| 2223 | break |
| 2224 | else |
| 2225 | echo "$as_me: failed program was:" >&5 |
| 2226 | cat conftest.$ac_ext >&5 |
| 2227 | fi |
| 2228 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2229 | done |
| 2230 | rm -f conftest* |
| 2231 | if test -n "$ac_declaration"; then |
| 2232 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2233 | echo $ac_declaration >>confdefs.h |
| 2234 | echo '#endif' >>confdefs.h |
| 2235 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2236 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2237 | else |
| 2238 | echo "$as_me: failed program was:" >&5 |
| 2239 | cat conftest.$ac_ext >&5 |
| 2240 | fi |
| 2241 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2242 | ac_ext=c |
| 2243 | ac_cpp='$CPP $CPPFLAGS' |
| 2244 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2245 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2246 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2247 | |
| 2248 | ac_ext=c |
| 2249 | ac_cpp='$CPP $CPPFLAGS' |
| 2250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2253 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2254 | 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] | 2255 | # On Suns, sometimes $CPP names a directory. |
| 2256 | if test -n "$CPP" && test -d "$CPP"; then |
| 2257 | CPP= |
| 2258 | fi |
| 2259 | if test -z "$CPP"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2260 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2262 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2263 | # Double quotes because CPP needs to be expanded |
| 2264 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2265 | do |
| 2266 | ac_preproc_ok=false |
| 2267 | for ac_c_preproc_warn_flag in '' yes |
| 2268 | do |
| 2269 | # Use a header file that comes with gcc, so configuring glibc |
| 2270 | # with a fresh cross-compiler works. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2271 | # 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] | 2272 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2273 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2274 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2275 | #include "confdefs.h" |
| 2276 | #include <assert.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2277 | Syntax error |
| 2278 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2279 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2280 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2281 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2282 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2283 | rm -f conftest.er1 |
| 2284 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2286 | (exit $ac_status); } >/dev/null; then |
| 2287 | if test -s conftest.err; then |
| 2288 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2289 | else |
| 2290 | ac_cpp_err= |
| 2291 | fi |
| 2292 | else |
| 2293 | ac_cpp_err=yes |
| 2294 | fi |
| 2295 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2296 | : |
| 2297 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2298 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2299 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2300 | # Broken: fails on valid input. |
| 2301 | continue |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2302 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2303 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2304 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2305 | # OK, works on sane cases. Now check whether non-existent headers |
| 2306 | # can be detected and how. |
| 2307 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2308 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2309 | #include "confdefs.h" |
| 2310 | #include <ac_nonexistent.h> |
| 2311 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2312 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2313 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2314 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2315 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2316 | rm -f conftest.er1 |
| 2317 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2319 | (exit $ac_status); } >/dev/null; then |
| 2320 | if test -s conftest.err; then |
| 2321 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2322 | else |
| 2323 | ac_cpp_err= |
| 2324 | fi |
| 2325 | else |
| 2326 | ac_cpp_err=yes |
| 2327 | fi |
| 2328 | if test -z "$ac_cpp_err"; then |
| 2329 | # Broken: success on invalid input. |
| 2330 | continue |
| 2331 | else |
| 2332 | echo "$as_me: failed program was:" >&5 |
| 2333 | cat conftest.$ac_ext >&5 |
| 2334 | # Passes both tests. |
| 2335 | ac_preproc_ok=: |
| 2336 | break |
| 2337 | fi |
| 2338 | rm -f conftest.err conftest.$ac_ext |
| 2339 | |
| 2340 | done |
| 2341 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2342 | rm -f conftest.err conftest.$ac_ext |
| 2343 | if $ac_preproc_ok; then |
| 2344 | break |
| 2345 | fi |
| 2346 | |
| 2347 | done |
| 2348 | ac_cv_prog_CPP=$CPP |
| 2349 | |
| 2350 | fi |
| 2351 | CPP=$ac_cv_prog_CPP |
| 2352 | else |
| 2353 | ac_cv_prog_CPP=$CPP |
| 2354 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2355 | echo "$as_me:$LINENO: result: $CPP" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2356 | echo "${ECHO_T}$CPP" >&6 |
| 2357 | ac_preproc_ok=false |
| 2358 | for ac_c_preproc_warn_flag in '' yes |
| 2359 | do |
| 2360 | # Use a header file that comes with gcc, so configuring glibc |
| 2361 | # with a fresh cross-compiler works. |
| 2362 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2363 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2364 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2365 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2366 | #include "confdefs.h" |
| 2367 | #include <assert.h> |
| 2368 | Syntax error |
| 2369 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2370 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2371 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2372 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2373 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2374 | rm -f conftest.er1 |
| 2375 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2377 | (exit $ac_status); } >/dev/null; then |
| 2378 | if test -s conftest.err; then |
| 2379 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2380 | else |
| 2381 | ac_cpp_err= |
| 2382 | fi |
| 2383 | else |
| 2384 | ac_cpp_err=yes |
| 2385 | fi |
| 2386 | if test -z "$ac_cpp_err"; then |
| 2387 | : |
| 2388 | else |
| 2389 | echo "$as_me: failed program was:" >&5 |
| 2390 | cat conftest.$ac_ext >&5 |
| 2391 | # Broken: fails on valid input. |
| 2392 | continue |
| 2393 | fi |
| 2394 | rm -f conftest.err conftest.$ac_ext |
| 2395 | |
| 2396 | # OK, works on sane cases. Now check whether non-existent headers |
| 2397 | # can be detected and how. |
| 2398 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2399 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2400 | #include "confdefs.h" |
| 2401 | #include <ac_nonexistent.h> |
| 2402 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2403 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2404 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2405 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2406 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2407 | rm -f conftest.er1 |
| 2408 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2410 | (exit $ac_status); } >/dev/null; then |
| 2411 | if test -s conftest.err; then |
| 2412 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2413 | else |
| 2414 | ac_cpp_err= |
| 2415 | fi |
| 2416 | else |
| 2417 | ac_cpp_err=yes |
| 2418 | fi |
| 2419 | if test -z "$ac_cpp_err"; then |
| 2420 | # Broken: success on invalid input. |
| 2421 | continue |
| 2422 | else |
| 2423 | echo "$as_me: failed program was:" >&5 |
| 2424 | cat conftest.$ac_ext >&5 |
| 2425 | # Passes both tests. |
| 2426 | ac_preproc_ok=: |
| 2427 | break |
| 2428 | fi |
| 2429 | rm -f conftest.err conftest.$ac_ext |
| 2430 | |
| 2431 | done |
| 2432 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2433 | rm -f conftest.err conftest.$ac_ext |
| 2434 | if $ac_preproc_ok; then |
| 2435 | : |
| 2436 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2437 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2438 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2439 | { (exit 1); exit 1; }; } |
| 2440 | fi |
| 2441 | |
| 2442 | ac_ext=c |
| 2443 | ac_cpp='$CPP $CPPFLAGS' |
| 2444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2447 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2448 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2449 | echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
| 2450 | echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6 |
| 2451 | if test "${wine_cv_toolsdir+set}" = set; then |
| 2452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2453 | else |
| 2454 | if test -z "$with_wine_tools"; then |
| 2455 | if test "$cross_compiling" = "yes"; then |
| 2456 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 |
| 2457 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} |
| 2458 | { (exit 1); exit 1; }; } |
| 2459 | else |
| 2460 | wine_cv_toolsdir="\$(TOPOBJDIR)" |
| 2461 | fi |
| 2462 | elif test -d "$with_wine_tools/tools/winebuild"; then |
| 2463 | case $with_wine_tools in |
| 2464 | /*) wine_cv_toolsdir="$with_wine_tools" ;; |
| 2465 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; |
| 2466 | esac |
| 2467 | else |
| 2468 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 |
| 2469 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} |
| 2470 | { (exit 1); exit 1; }; } |
| 2471 | fi |
| 2472 | fi |
| 2473 | echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 |
| 2474 | echo "${ECHO_T}$wine_cv_toolsdir" >&6 |
| 2475 | TOOLSDIR=$wine_cv_toolsdir |
| 2476 | |
| 2477 | |
| 2478 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2479 | |
| 2480 | echo "$as_me:$LINENO: checking for X" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2481 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2482 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2483 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2484 | # Check whether --with-x or --without-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2485 | if test "${with_x+set}" = set; then |
| 2486 | withval="$with_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2487 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2488 | fi; |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2489 | # $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] | 2490 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2491 | # The user explicitly disabled X. |
| 2492 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2493 | else |
| 2494 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2495 | # Both variables are already set. |
| 2496 | have_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2497 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2498 | if test "${ac_cv_have_x+set}" = set; then |
| 2499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2500 | else |
| 2501 | # 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] | 2502 | ac_x_includes=no ac_x_libraries=no |
| 2503 | rm -fr conftest.dir |
| 2504 | if mkdir conftest.dir; then |
| 2505 | cd conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2506 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2507 | cat >Imakefile <<'_ACEOF' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2508 | acfindx: |
| 2509 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2510 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2511 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2512 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2513 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2514 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 2515 | for ac_extension in a so sl; do |
| 2516 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2517 | test -f $ac_im_libdir/libX11.$ac_extension; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2518 | ac_im_usrlibdir=$ac_im_libdir; break |
| 2519 | fi |
| 2520 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2521 | # Screen out bogus values from the imake configuration. They are |
| 2522 | # bogus both because they are the default anyway, and because |
| 2523 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2524 | case $ac_im_incroot in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2525 | /usr/include) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2526 | *) 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] | 2527 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2528 | case $ac_im_usrlibdir in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2529 | /usr/lib | /lib) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2530 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2531 | esac |
| 2532 | fi |
| 2533 | cd .. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2534 | rm -fr conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2535 | fi |
| 2536 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2537 | # Standard set of common directories for X headers. |
| 2538 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 2539 | ac_x_header_dirs=' |
| 2540 | /usr/X11/include |
| 2541 | /usr/X11R6/include |
| 2542 | /usr/X11R5/include |
| 2543 | /usr/X11R4/include |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2544 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2545 | /usr/include/X11 |
| 2546 | /usr/include/X11R6 |
| 2547 | /usr/include/X11R5 |
| 2548 | /usr/include/X11R4 |
| 2549 | |
| 2550 | /usr/local/X11/include |
| 2551 | /usr/local/X11R6/include |
| 2552 | /usr/local/X11R5/include |
| 2553 | /usr/local/X11R4/include |
| 2554 | |
| 2555 | /usr/local/include/X11 |
| 2556 | /usr/local/include/X11R6 |
| 2557 | /usr/local/include/X11R5 |
| 2558 | /usr/local/include/X11R4 |
| 2559 | |
| 2560 | /usr/X386/include |
| 2561 | /usr/x386/include |
| 2562 | /usr/XFree86/include/X11 |
| 2563 | |
| 2564 | /usr/include |
| 2565 | /usr/local/include |
| 2566 | /usr/unsupported/include |
| 2567 | /usr/athena/include |
| 2568 | /usr/local/x11r5/include |
| 2569 | /usr/lpp/Xamples/include |
| 2570 | |
| 2571 | /usr/openwin/include |
| 2572 | /usr/openwin/share/include' |
| 2573 | |
| 2574 | if test "$ac_x_includes" = no; then |
| 2575 | # Guess where to find include files, by looking for Intrinsic.h. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2576 | # First, try using that file with no special directory specified. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2577 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2578 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2579 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2580 | #include <X11/Intrinsic.h> |
| 2581 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2582 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2583 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2584 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2585 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2586 | rm -f conftest.er1 |
| 2587 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2589 | (exit $ac_status); } >/dev/null; then |
| 2590 | if test -s conftest.err; then |
| 2591 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2592 | else |
| 2593 | ac_cpp_err= |
| 2594 | fi |
| 2595 | else |
| 2596 | ac_cpp_err=yes |
| 2597 | fi |
| 2598 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2599 | # We can compile using X headers with no special include directory. |
| 2600 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2601 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2602 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2603 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2604 | for ac_dir in $ac_x_header_dirs; do |
| 2605 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 2606 | ac_x_includes=$ac_dir |
| 2607 | break |
| 2608 | fi |
| 2609 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2610 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2611 | rm -f conftest.err conftest.$ac_ext |
| 2612 | fi # $ac_x_includes = no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2613 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2614 | if test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2615 | # Check for the libraries. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2616 | # See if we find them without any special options. |
| 2617 | # Don't add to $LIBS permanently. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2618 | ac_save_LIBS=$LIBS |
| 2619 | LIBS="-lXt $LIBS" |
| 2620 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2621 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2622 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2623 | #include <X11/Intrinsic.h> |
| 2624 | int |
| 2625 | main () |
| 2626 | { |
| 2627 | XtMalloc (0) |
| 2628 | ; |
| 2629 | return 0; |
| 2630 | } |
| 2631 | _ACEOF |
| 2632 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2634 | (eval $ac_link) 2>&5 |
| 2635 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2637 | (exit $ac_status); } && |
| 2638 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2640 | (eval $ac_try) 2>&5 |
| 2641 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2643 | (exit $ac_status); }; }; then |
| 2644 | LIBS=$ac_save_LIBS |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2645 | # We can link X programs with no special library path. |
| 2646 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2647 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2648 | echo "$as_me: failed program was:" >&5 |
| 2649 | cat conftest.$ac_ext >&5 |
| 2650 | LIBS=$ac_save_LIBS |
| 2651 | 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] | 2652 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2653 | # 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] | 2654 | for ac_extension in a so sl; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2655 | if test -r $ac_dir/libXt.$ac_extension; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2656 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2657 | break 2 |
| 2658 | fi |
| 2659 | done |
| 2660 | done |
| 2661 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2662 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2663 | fi # $ac_x_libraries = no |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2664 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2665 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2666 | # Didn't find X anywhere. Cache the known absence of X. |
| 2667 | ac_cv_have_x="have_x=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2668 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2669 | # Record where we found X for the cache. |
| 2670 | ac_cv_have_x="have_x=yes \ |
| 2671 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2672 | fi |
| 2673 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2674 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2675 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2676 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2677 | fi # $with_x != no |
| 2678 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2679 | if test "$have_x" != yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2680 | echo "$as_me:$LINENO: result: $have_x" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2681 | echo "${ECHO_T}$have_x" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2682 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2683 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2684 | # 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] | 2685 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 2686 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2687 | # Update the cache value to reflect the command line values. |
| 2688 | ac_cv_have_x="have_x=yes \ |
| 2689 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2690 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2691 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2692 | fi |
| 2693 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2694 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2695 | # 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] | 2696 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2697 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2698 | #define X_DISPLAY_MISSING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2699 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2700 | |
| 2701 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2702 | else |
| 2703 | if test -n "$x_includes"; then |
| 2704 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 2705 | fi |
| 2706 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2707 | # It would also be nice to do this for all -L options, not just this one. |
| 2708 | if test -n "$x_libraries"; then |
| 2709 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2710 | # For Solaris; some versions of Sun CC require a space after -R and |
| 2711 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2712 | case `(uname -sr) 2>/dev/null` in |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2713 | "SunOS 5"*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2714 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2715 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 2716 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 2717 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2718 | #line $LINENO "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2719 | #include "confdefs.h" |
| 2720 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2721 | int |
| 2722 | main () |
| 2723 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2724 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2725 | ; |
| 2726 | return 0; |
| 2727 | } |
| 2728 | _ACEOF |
| 2729 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2731 | (eval $ac_link) 2>&5 |
| 2732 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2734 | (exit $ac_status); } && |
| 2735 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2737 | (eval $ac_try) 2>&5 |
| 2738 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2740 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2741 | ac_R_nospace=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2742 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2743 | echo "$as_me: failed program was:" >&5 |
| 2744 | cat conftest.$ac_ext >&5 |
| 2745 | ac_R_nospace=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2746 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2747 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2748 | if test $ac_R_nospace = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2749 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2750 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2751 | X_LIBS="$X_LIBS -R$x_libraries" |
| 2752 | else |
| 2753 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2754 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2755 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2756 | #include "confdefs.h" |
| 2757 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2758 | int |
| 2759 | main () |
| 2760 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2761 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2762 | ; |
| 2763 | return 0; |
| 2764 | } |
| 2765 | _ACEOF |
| 2766 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2768 | (eval $ac_link) 2>&5 |
| 2769 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2771 | (exit $ac_status); } && |
| 2772 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2774 | (eval $ac_try) 2>&5 |
| 2775 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2777 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2778 | ac_R_space=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2779 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2780 | echo "$as_me: failed program was:" >&5 |
| 2781 | cat conftest.$ac_ext >&5 |
| 2782 | ac_R_space=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2783 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2784 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2785 | if test $ac_R_space = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2786 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2787 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2788 | X_LIBS="$X_LIBS -R $x_libraries" |
| 2789 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2790 | echo "$as_me:$LINENO: result: neither works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2791 | echo "${ECHO_T}neither works" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2792 | fi |
| 2793 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2794 | LIBS=$ac_xsave_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2795 | esac |
| 2796 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2797 | |
| 2798 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2799 | # Do this before checking for the system-independent R6 libraries |
| 2800 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2801 | |
| 2802 | if test "$ISC" = yes; then |
| 2803 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 2804 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2805 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 2806 | # libraries were built with DECnet support. And Karl Berry says |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2807 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2808 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 2809 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2810 | #line $LINENO "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2811 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2812 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2813 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2814 | #ifdef __cplusplus |
| 2815 | extern "C" |
| 2816 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2817 | /* 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] | 2818 | builtin and then its argument prototype would still apply. */ |
| 2819 | char XOpenDisplay (); |
| 2820 | int |
| 2821 | main () |
| 2822 | { |
| 2823 | XOpenDisplay (); |
| 2824 | ; |
| 2825 | return 0; |
| 2826 | } |
| 2827 | _ACEOF |
| 2828 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2830 | (eval $ac_link) 2>&5 |
| 2831 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2833 | (exit $ac_status); } && |
| 2834 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2836 | (eval $ac_try) 2>&5 |
| 2837 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2839 | (exit $ac_status); }; }; then |
| 2840 | : |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2841 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2842 | echo "$as_me: failed program was:" >&5 |
| 2843 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2844 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2845 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 2846 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 2847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2848 | else |
| 2849 | ac_check_lib_save_LIBS=$LIBS |
| 2850 | LIBS="-ldnet $LIBS" |
| 2851 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2852 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2853 | #include "confdefs.h" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2854 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2855 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2856 | #ifdef __cplusplus |
| 2857 | extern "C" |
| 2858 | #endif |
| 2859 | /* We use char because int might match the return type of a gcc2 |
| 2860 | builtin and then its argument prototype would still apply. */ |
| 2861 | char dnet_ntoa (); |
| 2862 | int |
| 2863 | main () |
| 2864 | { |
| 2865 | dnet_ntoa (); |
| 2866 | ; |
| 2867 | return 0; |
| 2868 | } |
| 2869 | _ACEOF |
| 2870 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2872 | (eval $ac_link) 2>&5 |
| 2873 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2875 | (exit $ac_status); } && |
| 2876 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2878 | (eval $ac_try) 2>&5 |
| 2879 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2881 | (exit $ac_status); }; }; then |
| 2882 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 2883 | else |
| 2884 | echo "$as_me: failed program was:" >&5 |
| 2885 | cat conftest.$ac_ext >&5 |
| 2886 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2887 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2888 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2889 | LIBS=$ac_check_lib_save_LIBS |
| 2890 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2891 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2892 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 2893 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2894 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2895 | fi |
| 2896 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2897 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2898 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2899 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 2900 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 2901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2902 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2903 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2904 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2905 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2906 | #line $LINENO "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2907 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2908 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2909 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2910 | #ifdef __cplusplus |
| 2911 | extern "C" |
| 2912 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2913 | /* 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] | 2914 | builtin and then its argument prototype would still apply. */ |
| 2915 | char dnet_ntoa (); |
| 2916 | int |
| 2917 | main () |
| 2918 | { |
| 2919 | dnet_ntoa (); |
| 2920 | ; |
| 2921 | return 0; |
| 2922 | } |
| 2923 | _ACEOF |
| 2924 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2926 | (eval $ac_link) 2>&5 |
| 2927 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2929 | (exit $ac_status); } && |
| 2930 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2932 | (eval $ac_try) 2>&5 |
| 2933 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2935 | (exit $ac_status); }; }; then |
| 2936 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2937 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2938 | echo "$as_me: failed program was:" >&5 |
| 2939 | cat conftest.$ac_ext >&5 |
| 2940 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2941 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2942 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2943 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2944 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2945 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2946 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 2947 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2948 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2949 | fi |
| 2950 | |
| 2951 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2952 | fi |
| 2953 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2954 | LIBS="$ac_xsave_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2955 | |
| 2956 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 2957 | # to get the SysV transport functions. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2958 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2959 | # needs -lnsl. |
| 2960 | # The nsl library prevents programs from opening the X display |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2961 | # on Irix 5.2, according to T.E. Dickey. |
| 2962 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 2963 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2964 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2965 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 2966 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 2967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2968 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2969 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2970 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2971 | #include "confdefs.h" |
| 2972 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2973 | which can conflict with char gethostbyname (); below. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2974 | #include <assert.h> |
| 2975 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2976 | #ifdef __cplusplus |
| 2977 | extern "C" |
| 2978 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2979 | /* 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] | 2980 | builtin and then its argument prototype would still apply. */ |
| 2981 | char gethostbyname (); |
| 2982 | char (*f) (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2983 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2984 | int |
| 2985 | main () |
| 2986 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2987 | /* The GNU C library defines this for functions which it implements |
| 2988 | to always fail with ENOSYS. Some functions are actually named |
| 2989 | something starting with __ and the normal name is an alias. */ |
| 2990 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 2991 | choke me |
| 2992 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2993 | f = gethostbyname; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2994 | #endif |
| 2995 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2996 | ; |
| 2997 | return 0; |
| 2998 | } |
| 2999 | _ACEOF |
| 3000 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3002 | (eval $ac_link) 2>&5 |
| 3003 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3005 | (exit $ac_status); } && |
| 3006 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3008 | (eval $ac_try) 2>&5 |
| 3009 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3011 | (exit $ac_status); }; }; then |
| 3012 | ac_cv_func_gethostbyname=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3013 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3014 | echo "$as_me: failed program was:" >&5 |
| 3015 | cat conftest.$ac_ext >&5 |
| 3016 | ac_cv_func_gethostbyname=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3017 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3018 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3019 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3020 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3021 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3022 | |
| 3023 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3024 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3025 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 3026 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 3027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3028 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3029 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3030 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3031 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3032 | #line $LINENO "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3033 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3034 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3035 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3036 | #ifdef __cplusplus |
| 3037 | extern "C" |
| 3038 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3039 | /* 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] | 3040 | builtin and then its argument prototype would still apply. */ |
| 3041 | char gethostbyname (); |
| 3042 | int |
| 3043 | main () |
| 3044 | { |
| 3045 | gethostbyname (); |
| 3046 | ; |
| 3047 | return 0; |
| 3048 | } |
| 3049 | _ACEOF |
| 3050 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3052 | (eval $ac_link) 2>&5 |
| 3053 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3055 | (exit $ac_status); } && |
| 3056 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3058 | (eval $ac_try) 2>&5 |
| 3059 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3061 | (exit $ac_status); }; }; then |
| 3062 | ac_cv_lib_nsl_gethostbyname=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3063 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3064 | echo "$as_me: failed program was:" >&5 |
| 3065 | cat conftest.$ac_ext >&5 |
| 3066 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3067 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3068 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3069 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3070 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3071 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3072 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 3073 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3074 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3075 | fi |
| 3076 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3077 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3078 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3079 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 3080 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 3081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3082 | else |
| 3083 | ac_check_lib_save_LIBS=$LIBS |
| 3084 | LIBS="-lbsd $LIBS" |
| 3085 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3086 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3087 | #include "confdefs.h" |
| 3088 | |
| 3089 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3090 | #ifdef __cplusplus |
| 3091 | extern "C" |
| 3092 | #endif |
| 3093 | /* We use char because int might match the return type of a gcc2 |
| 3094 | builtin and then its argument prototype would still apply. */ |
| 3095 | char gethostbyname (); |
| 3096 | int |
| 3097 | main () |
| 3098 | { |
| 3099 | gethostbyname (); |
| 3100 | ; |
| 3101 | return 0; |
| 3102 | } |
| 3103 | _ACEOF |
| 3104 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3106 | (eval $ac_link) 2>&5 |
| 3107 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3109 | (exit $ac_status); } && |
| 3110 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3112 | (eval $ac_try) 2>&5 |
| 3113 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3115 | (exit $ac_status); }; }; then |
| 3116 | ac_cv_lib_bsd_gethostbyname=yes |
| 3117 | else |
| 3118 | echo "$as_me: failed program was:" >&5 |
| 3119 | cat conftest.$ac_ext >&5 |
| 3120 | ac_cv_lib_bsd_gethostbyname=no |
| 3121 | fi |
| 3122 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3123 | LIBS=$ac_check_lib_save_LIBS |
| 3124 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3125 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3126 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 3127 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 3128 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 3129 | fi |
| 3130 | |
| 3131 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3132 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3133 | |
| 3134 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3135 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 3136 | # 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] | 3137 | # on later versions), says Simon Leinen: it contains gethostby* |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3138 | # variants that don't use the name server (or something). -lsocket |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3139 | # must be given before -lnsl if both are needed. We assume that |
| 3140 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3141 | echo "$as_me:$LINENO: checking for connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3142 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 3143 | if test "${ac_cv_func_connect+set}" = set; then |
| 3144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3145 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3146 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3147 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3148 | #include "confdefs.h" |
| 3149 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3150 | which can conflict with char connect (); below. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3151 | #include <assert.h> |
| 3152 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3153 | #ifdef __cplusplus |
| 3154 | extern "C" |
| 3155 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3156 | /* 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] | 3157 | builtin and then its argument prototype would still apply. */ |
| 3158 | char connect (); |
| 3159 | char (*f) (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3160 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3161 | int |
| 3162 | main () |
| 3163 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3164 | /* The GNU C library defines this for functions which it implements |
| 3165 | to always fail with ENOSYS. Some functions are actually named |
| 3166 | something starting with __ and the normal name is an alias. */ |
| 3167 | #if defined (__stub_connect) || defined (__stub___connect) |
| 3168 | choke me |
| 3169 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3170 | f = connect; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3171 | #endif |
| 3172 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3173 | ; |
| 3174 | return 0; |
| 3175 | } |
| 3176 | _ACEOF |
| 3177 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3179 | (eval $ac_link) 2>&5 |
| 3180 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3182 | (exit $ac_status); } && |
| 3183 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3185 | (eval $ac_try) 2>&5 |
| 3186 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3188 | (exit $ac_status); }; }; then |
| 3189 | ac_cv_func_connect=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3190 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3191 | echo "$as_me: failed program was:" >&5 |
| 3192 | cat conftest.$ac_ext >&5 |
| 3193 | ac_cv_func_connect=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3194 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3195 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3196 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3197 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3198 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3199 | |
| 3200 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3201 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3202 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 3203 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 3204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3205 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3206 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3207 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3208 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3209 | #line $LINENO "configure" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3210 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3211 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3212 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3213 | #ifdef __cplusplus |
| 3214 | extern "C" |
| 3215 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3216 | /* 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] | 3217 | builtin and then its argument prototype would still apply. */ |
| 3218 | char connect (); |
| 3219 | int |
| 3220 | main () |
| 3221 | { |
| 3222 | connect (); |
| 3223 | ; |
| 3224 | return 0; |
| 3225 | } |
| 3226 | _ACEOF |
| 3227 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3229 | (eval $ac_link) 2>&5 |
| 3230 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3232 | (exit $ac_status); } && |
| 3233 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3235 | (eval $ac_try) 2>&5 |
| 3236 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3238 | (exit $ac_status); }; }; then |
| 3239 | ac_cv_lib_socket_connect=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3240 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3241 | echo "$as_me: failed program was:" >&5 |
| 3242 | cat conftest.$ac_ext >&5 |
| 3243 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3244 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3245 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3246 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3247 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3248 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3249 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 3250 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3251 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3252 | fi |
| 3253 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3254 | fi |
| 3255 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3256 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3257 | echo "$as_me:$LINENO: checking for remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3258 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 3259 | if test "${ac_cv_func_remove+set}" = set; then |
| 3260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3261 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3262 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3263 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3264 | #include "confdefs.h" |
| 3265 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3266 | which can conflict with char remove (); below. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3267 | #include <assert.h> |
| 3268 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3269 | #ifdef __cplusplus |
| 3270 | extern "C" |
| 3271 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3272 | /* 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] | 3273 | builtin and then its argument prototype would still apply. */ |
| 3274 | char remove (); |
| 3275 | char (*f) (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3276 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3277 | int |
| 3278 | main () |
| 3279 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3280 | /* The GNU C library defines this for functions which it implements |
| 3281 | to always fail with ENOSYS. Some functions are actually named |
| 3282 | something starting with __ and the normal name is an alias. */ |
| 3283 | #if defined (__stub_remove) || defined (__stub___remove) |
| 3284 | choke me |
| 3285 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3286 | f = remove; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3287 | #endif |
| 3288 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3289 | ; |
| 3290 | return 0; |
| 3291 | } |
| 3292 | _ACEOF |
| 3293 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3295 | (eval $ac_link) 2>&5 |
| 3296 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3298 | (exit $ac_status); } && |
| 3299 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3301 | (eval $ac_try) 2>&5 |
| 3302 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3304 | (exit $ac_status); }; }; then |
| 3305 | ac_cv_func_remove=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3306 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3307 | echo "$as_me: failed program was:" >&5 |
| 3308 | cat conftest.$ac_ext >&5 |
| 3309 | ac_cv_func_remove=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3310 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3311 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3312 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3313 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3314 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3315 | |
| 3316 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3317 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3318 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 3319 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 3320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3321 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3322 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3323 | LIBS="-lposix $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3324 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3325 | #line $LINENO "configure" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3326 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3327 | |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3328 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3329 | #ifdef __cplusplus |
| 3330 | extern "C" |
| 3331 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3332 | /* 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] | 3333 | builtin and then its argument prototype would still apply. */ |
| 3334 | char remove (); |
| 3335 | int |
| 3336 | main () |
| 3337 | { |
| 3338 | remove (); |
| 3339 | ; |
| 3340 | return 0; |
| 3341 | } |
| 3342 | _ACEOF |
| 3343 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3345 | (eval $ac_link) 2>&5 |
| 3346 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3348 | (exit $ac_status); } && |
| 3349 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3351 | (eval $ac_try) 2>&5 |
| 3352 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3354 | (exit $ac_status); }; }; then |
| 3355 | ac_cv_lib_posix_remove=yes |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3356 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3357 | echo "$as_me: failed program was:" >&5 |
| 3358 | cat conftest.$ac_ext >&5 |
| 3359 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3360 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3361 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3362 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3363 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3364 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3365 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 3366 | if test $ac_cv_lib_posix_remove = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3367 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3368 | fi |
| 3369 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3370 | fi |
| 3371 | |
| 3372 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3373 | echo "$as_me:$LINENO: checking for shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3374 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 3375 | if test "${ac_cv_func_shmat+set}" = set; then |
| 3376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3377 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3378 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3379 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3380 | #include "confdefs.h" |
| 3381 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3382 | which can conflict with char shmat (); below. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3383 | #include <assert.h> |
| 3384 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3385 | #ifdef __cplusplus |
| 3386 | extern "C" |
| 3387 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3388 | /* 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] | 3389 | builtin and then its argument prototype would still apply. */ |
| 3390 | char shmat (); |
| 3391 | char (*f) (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3392 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3393 | int |
| 3394 | main () |
| 3395 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3396 | /* The GNU C library defines this for functions which it implements |
| 3397 | to always fail with ENOSYS. Some functions are actually named |
| 3398 | something starting with __ and the normal name is an alias. */ |
| 3399 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 3400 | choke me |
| 3401 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3402 | f = shmat; |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3403 | #endif |
| 3404 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3405 | ; |
| 3406 | return 0; |
| 3407 | } |
| 3408 | _ACEOF |
| 3409 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3411 | (eval $ac_link) 2>&5 |
| 3412 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3414 | (exit $ac_status); } && |
| 3415 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3417 | (eval $ac_try) 2>&5 |
| 3418 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3420 | (exit $ac_status); }; }; then |
| 3421 | ac_cv_func_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3422 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3423 | echo "$as_me: failed program was:" >&5 |
| 3424 | cat conftest.$ac_ext >&5 |
| 3425 | ac_cv_func_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3426 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3427 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3428 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3429 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3430 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3431 | |
| 3432 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3433 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3434 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 3435 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 3436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3437 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3438 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3439 | LIBS="-lipc $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3440 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3441 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3442 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3443 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3444 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3445 | #ifdef __cplusplus |
| 3446 | extern "C" |
| 3447 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3448 | /* 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] | 3449 | builtin and then its argument prototype would still apply. */ |
| 3450 | char shmat (); |
| 3451 | int |
| 3452 | main () |
| 3453 | { |
| 3454 | shmat (); |
| 3455 | ; |
| 3456 | return 0; |
| 3457 | } |
| 3458 | _ACEOF |
| 3459 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3461 | (eval $ac_link) 2>&5 |
| 3462 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3464 | (exit $ac_status); } && |
| 3465 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3467 | (eval $ac_try) 2>&5 |
| 3468 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3470 | (exit $ac_status); }; }; then |
| 3471 | ac_cv_lib_ipc_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3472 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3473 | echo "$as_me: failed program was:" >&5 |
| 3474 | cat conftest.$ac_ext >&5 |
| 3475 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3476 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3477 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3478 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3479 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3480 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3481 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 3482 | if test $ac_cv_lib_ipc_shmat = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3483 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3484 | fi |
| 3485 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3486 | fi |
| 3487 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3488 | |
| 3489 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3490 | ac_save_LDFLAGS=$LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3491 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 3492 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 3493 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 3494 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 3495 | # These have to be linked with before -lX11, unlike the other |
| 3496 | # libraries we check for below, so use a different variable. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3497 | # John Interrante, Karl Berry |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3498 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3499 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 3500 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 3501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3502 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3503 | ac_check_lib_save_LIBS=$LIBS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3504 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3505 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3506 | #line $LINENO "configure" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3507 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3508 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3509 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3510 | #ifdef __cplusplus |
| 3511 | extern "C" |
| 3512 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3513 | /* 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] | 3514 | builtin and then its argument prototype would still apply. */ |
| 3515 | char IceConnectionNumber (); |
| 3516 | int |
| 3517 | main () |
| 3518 | { |
| 3519 | IceConnectionNumber (); |
| 3520 | ; |
| 3521 | return 0; |
| 3522 | } |
| 3523 | _ACEOF |
| 3524 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3526 | (eval $ac_link) 2>&5 |
| 3527 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3529 | (exit $ac_status); } && |
| 3530 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3532 | (eval $ac_try) 2>&5 |
| 3533 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3535 | (exit $ac_status); }; }; then |
| 3536 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3537 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3538 | echo "$as_me: failed program was:" >&5 |
| 3539 | cat conftest.$ac_ext >&5 |
| 3540 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3541 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3542 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3543 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3544 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3545 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3546 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 3547 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3548 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3549 | fi |
| 3550 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3551 | LDFLAGS=$ac_save_LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3552 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3553 | fi |
| 3554 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3555 | for ac_prog in 'bison -y' byacc |
| 3556 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3557 | # 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] | 3558 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3559 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3561 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 3562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3563 | else |
| 3564 | if test -n "$YACC"; then |
| 3565 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 3566 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3568 | for as_dir in $PATH |
| 3569 | do |
| 3570 | IFS=$as_save_IFS |
| 3571 | test -z "$as_dir" && as_dir=. |
| 3572 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3573 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3574 | ac_cv_prog_YACC="$ac_prog" |
| 3575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3576 | break 2 |
| 3577 | fi |
| 3578 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3579 | done |
| 3580 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3581 | fi |
| 3582 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3583 | YACC=$ac_cv_prog_YACC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3584 | if test -n "$YACC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3585 | echo "$as_me:$LINENO: result: $YACC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3586 | echo "${ECHO_T}$YACC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3587 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3588 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3589 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3590 | fi |
| 3591 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3592 | test -n "$YACC" && break |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3593 | done |
| 3594 | test -n "$YACC" || YACC="yacc" |
| 3595 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3596 | for ac_prog in flex lex |
| 3597 | do |
| 3598 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3599 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3600 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3602 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 3603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3604 | else |
| 3605 | if test -n "$LEX"; then |
| 3606 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 3607 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3609 | for as_dir in $PATH |
| 3610 | do |
| 3611 | IFS=$as_save_IFS |
| 3612 | test -z "$as_dir" && as_dir=. |
| 3613 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3614 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3615 | ac_cv_prog_LEX="$ac_prog" |
| 3616 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3617 | break 2 |
| 3618 | fi |
| 3619 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3620 | done |
| 3621 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3622 | fi |
| 3623 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3624 | LEX=$ac_cv_prog_LEX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3625 | if test -n "$LEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3626 | echo "$as_me:$LINENO: result: $LEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3627 | echo "${ECHO_T}$LEX" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3628 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3629 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3630 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3631 | fi |
| 3632 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3633 | test -n "$LEX" && break |
| 3634 | done |
| 3635 | test -n "$LEX" || LEX=":" |
| 3636 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3637 | if test -z "$LEXLIB" |
| 3638 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3639 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3640 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 3641 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 3642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3643 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3644 | ac_check_lib_save_LIBS=$LIBS |
| 3645 | LIBS="-lfl $LIBS" |
| 3646 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3647 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3648 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3649 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3650 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3651 | #ifdef __cplusplus |
| 3652 | extern "C" |
| 3653 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3654 | /* 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] | 3655 | builtin and then its argument prototype would still apply. */ |
| 3656 | char yywrap (); |
| 3657 | int |
| 3658 | main () |
| 3659 | { |
| 3660 | yywrap (); |
| 3661 | ; |
| 3662 | return 0; |
| 3663 | } |
| 3664 | _ACEOF |
| 3665 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3667 | (eval $ac_link) 2>&5 |
| 3668 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3670 | (exit $ac_status); } && |
| 3671 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3673 | (eval $ac_try) 2>&5 |
| 3674 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3676 | (exit $ac_status); }; }; then |
| 3677 | ac_cv_lib_fl_yywrap=yes |
| 3678 | else |
| 3679 | echo "$as_me: failed program was:" >&5 |
| 3680 | cat conftest.$ac_ext >&5 |
| 3681 | ac_cv_lib_fl_yywrap=no |
| 3682 | fi |
| 3683 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3684 | LIBS=$ac_check_lib_save_LIBS |
| 3685 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3686 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3687 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 3688 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 3689 | LEXLIB="-lfl" |
| 3690 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3691 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3692 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 3693 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 3694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3695 | else |
| 3696 | ac_check_lib_save_LIBS=$LIBS |
| 3697 | LIBS="-ll $LIBS" |
| 3698 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3699 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3700 | #include "confdefs.h" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3701 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3702 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3703 | #ifdef __cplusplus |
| 3704 | extern "C" |
| 3705 | #endif |
| 3706 | /* We use char because int might match the return type of a gcc2 |
| 3707 | builtin and then its argument prototype would still apply. */ |
| 3708 | char yywrap (); |
| 3709 | int |
| 3710 | main () |
| 3711 | { |
| 3712 | yywrap (); |
| 3713 | ; |
| 3714 | return 0; |
| 3715 | } |
| 3716 | _ACEOF |
| 3717 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3719 | (eval $ac_link) 2>&5 |
| 3720 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3722 | (exit $ac_status); } && |
| 3723 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3725 | (eval $ac_try) 2>&5 |
| 3726 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3728 | (exit $ac_status); }; }; then |
| 3729 | ac_cv_lib_l_yywrap=yes |
| 3730 | else |
| 3731 | echo "$as_me: failed program was:" >&5 |
| 3732 | cat conftest.$ac_ext >&5 |
| 3733 | ac_cv_lib_l_yywrap=no |
| 3734 | fi |
| 3735 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3736 | LIBS=$ac_check_lib_save_LIBS |
| 3737 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3738 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3739 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 3740 | if test $ac_cv_lib_l_yywrap = yes; then |
| 3741 | LEXLIB="-ll" |
| 3742 | fi |
| 3743 | |
| 3744 | fi |
| 3745 | |
| 3746 | fi |
| 3747 | |
| 3748 | if test "x$LEX" != "x:"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3749 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3750 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 3751 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 3752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3753 | else |
| 3754 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 3755 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3756 | cat >conftest.l <<_ACEOF |
| 3757 | %% |
| 3758 | %% |
| 3759 | _ACEOF |
| 3760 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 3761 | (eval $LEX conftest.l) 2>&5 |
| 3762 | ac_status=$? |
| 3763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3764 | (exit $ac_status); } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3765 | if test -f lex.yy.c; then |
| 3766 | ac_cv_prog_lex_root=lex.yy |
| 3767 | elif test -f lexyy.c; then |
| 3768 | ac_cv_prog_lex_root=lexyy |
| 3769 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3770 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3771 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 3772 | { (exit 1); exit 1; }; } |
| 3773 | fi |
| 3774 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3775 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3776 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3777 | rm -f conftest.l |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3778 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 3779 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3780 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3781 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 3782 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 3783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3784 | else |
| 3785 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 3786 | # default is implementation-dependent. Figure out which it is, since |
| 3787 | # not all implementations provide the %pointer and %array declarations. |
| 3788 | ac_cv_prog_lex_yytext_pointer=no |
| 3789 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 3790 | ac_save_LIBS=$LIBS |
| 3791 | LIBS="$LIBS $LEXLIB" |
| 3792 | cat >conftest.$ac_ext <<_ACEOF |
| 3793 | `cat $LEX_OUTPUT_ROOT.c` |
| 3794 | _ACEOF |
| 3795 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3797 | (eval $ac_link) 2>&5 |
| 3798 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3800 | (exit $ac_status); } && |
| 3801 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3803 | (eval $ac_try) 2>&5 |
| 3804 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3806 | (exit $ac_status); }; }; then |
| 3807 | ac_cv_prog_lex_yytext_pointer=yes |
| 3808 | else |
| 3809 | echo "$as_me: failed program was:" >&5 |
| 3810 | cat conftest.$ac_ext >&5 |
| 3811 | fi |
| 3812 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3813 | LIBS=$ac_save_LIBS |
| 3814 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 3815 | |
| 3816 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3817 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3818 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 3819 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 3820 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3821 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3822 | #define YYTEXT_POINTER 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3823 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3824 | |
| 3825 | fi |
| 3826 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3827 | fi |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3828 | |
| 3829 | for ac_prog in $YACC bison yacc |
| 3830 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3831 | # 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] | 3832 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3833 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3834 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3835 | if test "${ac_cv_prog_XYACC+set}" = set; then |
| 3836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3837 | else |
| 3838 | if test -n "$XYACC"; then |
| 3839 | ac_cv_prog_XYACC="$XYACC" # Let the user override the test. |
| 3840 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3842 | for as_dir in $PATH |
| 3843 | do |
| 3844 | IFS=$as_save_IFS |
| 3845 | test -z "$as_dir" && as_dir=. |
| 3846 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3847 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3848 | ac_cv_prog_XYACC="$ac_prog" |
| 3849 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3850 | break 2 |
| 3851 | fi |
| 3852 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3853 | done |
| 3854 | |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3855 | fi |
| 3856 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3857 | XYACC=$ac_cv_prog_XYACC |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3858 | if test -n "$XYACC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3859 | echo "$as_me:$LINENO: result: $XYACC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3860 | echo "${ECHO_T}$XYACC" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3861 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3862 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3863 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3864 | fi |
| 3865 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3866 | test -n "$XYACC" && break |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3867 | done |
| 3868 | test -n "$XYACC" || XYACC="none" |
| 3869 | |
| 3870 | if test "$XYACC" = "none" |
| 3871 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3872 | { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3873 | echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;} |
| 3874 | { (exit 1); exit 1; }; } |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 3875 | fi |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3876 | for ac_prog in $LEX flex lex |
| 3877 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3878 | # 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] | 3879 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3880 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3882 | if test "${ac_cv_prog_XLEX+set}" = set; then |
| 3883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3884 | else |
| 3885 | if test -n "$XLEX"; then |
| 3886 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 3887 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3889 | for as_dir in $PATH |
| 3890 | do |
| 3891 | IFS=$as_save_IFS |
| 3892 | test -z "$as_dir" && as_dir=. |
| 3893 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3894 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3895 | ac_cv_prog_XLEX="$ac_prog" |
| 3896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3897 | break 2 |
| 3898 | fi |
| 3899 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3900 | done |
| 3901 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3902 | fi |
| 3903 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3904 | XLEX=$ac_cv_prog_XLEX |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3905 | if test -n "$XLEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3906 | echo "$as_me:$LINENO: result: $XLEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3907 | echo "${ECHO_T}$XLEX" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3908 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3909 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3910 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3911 | fi |
| 3912 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3913 | test -n "$XLEX" && break |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3914 | done |
| 3915 | test -n "$XLEX" || XLEX="none" |
| 3916 | |
| 3917 | if test "$XLEX" = "none" |
| 3918 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3919 | { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3920 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
| 3921 | { (exit 1); exit 1; }; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 3922 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 3923 | |
| 3924 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 3925 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. |
| 3926 | set dummy ${ac_tool_prefix}ld; ac_word=$2 |
| 3927 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3928 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3929 | if test "${ac_cv_prog_LD+set}" = set; then |
| 3930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3931 | else |
| 3932 | if test -n "$LD"; then |
| 3933 | ac_cv_prog_LD="$LD" # Let the user override the test. |
| 3934 | else |
| 3935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3936 | for as_dir in $PATH |
| 3937 | do |
| 3938 | IFS=$as_save_IFS |
| 3939 | test -z "$as_dir" && as_dir=. |
| 3940 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3941 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3942 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
| 3943 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3944 | break 2 |
| 3945 | fi |
| 3946 | done |
| 3947 | done |
| 3948 | |
| 3949 | fi |
| 3950 | fi |
| 3951 | LD=$ac_cv_prog_LD |
| 3952 | if test -n "$LD"; then |
| 3953 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 3954 | echo "${ECHO_T}$LD" >&6 |
| 3955 | else |
| 3956 | echo "$as_me:$LINENO: result: no" >&5 |
| 3957 | echo "${ECHO_T}no" >&6 |
| 3958 | fi |
| 3959 | |
| 3960 | fi |
| 3961 | if test -z "$ac_cv_prog_LD"; then |
| 3962 | ac_ct_LD=$LD |
| 3963 | # Extract the first word of "ld", so it can be a program name with args. |
| 3964 | set dummy ld; ac_word=$2 |
| 3965 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3967 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
| 3968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3969 | else |
| 3970 | if test -n "$ac_ct_LD"; then |
| 3971 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. |
| 3972 | else |
| 3973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3974 | for as_dir in $PATH |
| 3975 | do |
| 3976 | IFS=$as_save_IFS |
| 3977 | test -z "$as_dir" && as_dir=. |
| 3978 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3980 | ac_cv_prog_ac_ct_LD="ld" |
| 3981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3982 | break 2 |
| 3983 | fi |
| 3984 | done |
| 3985 | done |
| 3986 | |
| 3987 | test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld" |
| 3988 | fi |
| 3989 | fi |
| 3990 | ac_ct_LD=$ac_cv_prog_ac_ct_LD |
| 3991 | if test -n "$ac_ct_LD"; then |
| 3992 | echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
| 3993 | echo "${ECHO_T}$ac_ct_LD" >&6 |
| 3994 | else |
| 3995 | echo "$as_me:$LINENO: result: no" >&5 |
| 3996 | echo "${ECHO_T}no" >&6 |
| 3997 | fi |
| 3998 | |
| 3999 | LD=$ac_ct_LD |
| 4000 | else |
| 4001 | LD="$ac_cv_prog_LD" |
| 4002 | fi |
| 4003 | |
| 4004 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4005 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 4006 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 4007 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4009 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4011 | else |
| 4012 | if test -n "$AR"; then |
| 4013 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4014 | else |
| 4015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4016 | for as_dir in $PATH |
| 4017 | do |
| 4018 | IFS=$as_save_IFS |
| 4019 | test -z "$as_dir" && as_dir=. |
| 4020 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4021 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4022 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 4023 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4024 | break 2 |
| 4025 | fi |
| 4026 | done |
| 4027 | done |
| 4028 | |
| 4029 | fi |
| 4030 | fi |
| 4031 | AR=$ac_cv_prog_AR |
| 4032 | if test -n "$AR"; then |
| 4033 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 4034 | echo "${ECHO_T}$AR" >&6 |
| 4035 | else |
| 4036 | echo "$as_me:$LINENO: result: no" >&5 |
| 4037 | echo "${ECHO_T}no" >&6 |
| 4038 | fi |
| 4039 | |
| 4040 | fi |
| 4041 | if test -z "$ac_cv_prog_AR"; then |
| 4042 | ac_ct_AR=$AR |
| 4043 | # Extract the first word of "ar", so it can be a program name with args. |
| 4044 | set dummy ar; ac_word=$2 |
| 4045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4047 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 4048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4049 | else |
| 4050 | if test -n "$ac_ct_AR"; then |
| 4051 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4052 | else |
| 4053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4054 | for as_dir in $PATH |
| 4055 | do |
| 4056 | IFS=$as_save_IFS |
| 4057 | test -z "$as_dir" && as_dir=. |
| 4058 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4059 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4060 | ac_cv_prog_ac_ct_AR="ar" |
| 4061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4062 | break 2 |
| 4063 | fi |
| 4064 | done |
| 4065 | done |
| 4066 | |
| 4067 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" |
| 4068 | fi |
| 4069 | fi |
| 4070 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4071 | if test -n "$ac_ct_AR"; then |
| 4072 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 4073 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 4074 | else |
| 4075 | echo "$as_me:$LINENO: result: no" >&5 |
| 4076 | echo "${ECHO_T}no" >&6 |
| 4077 | fi |
| 4078 | |
| 4079 | AR=$ac_ct_AR |
| 4080 | else |
| 4081 | AR="$ac_cv_prog_AR" |
| 4082 | fi |
| 4083 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4084 | if test -n "$ac_tool_prefix"; then |
| 4085 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4086 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4087 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4088 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4089 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4091 | else |
| 4092 | if test -n "$RANLIB"; then |
| 4093 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4094 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4096 | for as_dir in $PATH |
| 4097 | do |
| 4098 | IFS=$as_save_IFS |
| 4099 | test -z "$as_dir" && as_dir=. |
| 4100 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4101 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4102 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4103 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4104 | break 2 |
| 4105 | fi |
| 4106 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4107 | done |
| 4108 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4109 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4110 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4111 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4112 | if test -n "$RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4113 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4114 | echo "${ECHO_T}$RANLIB" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4115 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4116 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4117 | echo "${ECHO_T}no" >&6 |
| 4118 | fi |
| 4119 | |
| 4120 | fi |
| 4121 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4122 | ac_ct_RANLIB=$RANLIB |
| 4123 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4124 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4125 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4127 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4129 | else |
| 4130 | if test -n "$ac_ct_RANLIB"; then |
| 4131 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4132 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4134 | for as_dir in $PATH |
| 4135 | do |
| 4136 | IFS=$as_save_IFS |
| 4137 | test -z "$as_dir" && as_dir=. |
| 4138 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4139 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4140 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4141 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4142 | break 2 |
| 4143 | fi |
| 4144 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4145 | done |
| 4146 | |
| 4147 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4148 | fi |
| 4149 | fi |
| 4150 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4151 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4152 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4153 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4154 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4155 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4156 | echo "${ECHO_T}no" >&6 |
| 4157 | fi |
| 4158 | |
| 4159 | RANLIB=$ac_ct_RANLIB |
| 4160 | else |
| 4161 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4162 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4163 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4164 | if test -n "$ac_tool_prefix"; then |
| 4165 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4166 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4167 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4169 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 4170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4171 | else |
| 4172 | if test -n "$STRIP"; then |
| 4173 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4174 | else |
| 4175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4176 | for as_dir in $PATH |
| 4177 | do |
| 4178 | IFS=$as_save_IFS |
| 4179 | test -z "$as_dir" && as_dir=. |
| 4180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4181 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4182 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4184 | break 2 |
| 4185 | fi |
| 4186 | done |
| 4187 | done |
| 4188 | |
| 4189 | fi |
| 4190 | fi |
| 4191 | STRIP=$ac_cv_prog_STRIP |
| 4192 | if test -n "$STRIP"; then |
| 4193 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 4194 | echo "${ECHO_T}$STRIP" >&6 |
| 4195 | else |
| 4196 | echo "$as_me:$LINENO: result: no" >&5 |
| 4197 | echo "${ECHO_T}no" >&6 |
| 4198 | fi |
| 4199 | |
| 4200 | fi |
| 4201 | if test -z "$ac_cv_prog_STRIP"; then |
| 4202 | ac_ct_STRIP=$STRIP |
| 4203 | # Extract the first word of "strip", so it can be a program name with args. |
| 4204 | set dummy strip; ac_word=$2 |
| 4205 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4206 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4207 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 4208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4209 | else |
| 4210 | if test -n "$ac_ct_STRIP"; then |
| 4211 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4212 | else |
| 4213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4214 | for as_dir in $PATH |
| 4215 | do |
| 4216 | IFS=$as_save_IFS |
| 4217 | test -z "$as_dir" && as_dir=. |
| 4218 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4219 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4220 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4221 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4222 | break 2 |
| 4223 | fi |
| 4224 | done |
| 4225 | done |
| 4226 | |
| 4227 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip" |
| 4228 | fi |
| 4229 | fi |
| 4230 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4231 | if test -n "$ac_ct_STRIP"; then |
| 4232 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4233 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4234 | else |
| 4235 | echo "$as_me:$LINENO: result: no" >&5 |
| 4236 | echo "${ECHO_T}no" >&6 |
| 4237 | fi |
| 4238 | |
| 4239 | STRIP=$ac_ct_STRIP |
| 4240 | else |
| 4241 | STRIP="$ac_cv_prog_STRIP" |
| 4242 | fi |
| 4243 | |
| 4244 | if test -n "$ac_tool_prefix"; then |
| 4245 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 4246 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 4247 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4248 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4249 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 4250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4251 | else |
| 4252 | if test -n "$WINDRES"; then |
| 4253 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 4254 | else |
| 4255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4256 | for as_dir in $PATH |
| 4257 | do |
| 4258 | IFS=$as_save_IFS |
| 4259 | test -z "$as_dir" && as_dir=. |
| 4260 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4261 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4262 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 4263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4264 | break 2 |
| 4265 | fi |
| 4266 | done |
| 4267 | done |
| 4268 | |
| 4269 | fi |
| 4270 | fi |
| 4271 | WINDRES=$ac_cv_prog_WINDRES |
| 4272 | if test -n "$WINDRES"; then |
| 4273 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 4274 | echo "${ECHO_T}$WINDRES" >&6 |
| 4275 | else |
| 4276 | echo "$as_me:$LINENO: result: no" >&5 |
| 4277 | echo "${ECHO_T}no" >&6 |
| 4278 | fi |
| 4279 | |
| 4280 | fi |
| 4281 | if test -z "$ac_cv_prog_WINDRES"; then |
| 4282 | ac_ct_WINDRES=$WINDRES |
| 4283 | # Extract the first word of "windres", so it can be a program name with args. |
| 4284 | set dummy windres; ac_word=$2 |
| 4285 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4286 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4287 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 4288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4289 | else |
| 4290 | if test -n "$ac_ct_WINDRES"; then |
| 4291 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 4292 | else |
| 4293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4294 | for as_dir in $PATH |
| 4295 | do |
| 4296 | IFS=$as_save_IFS |
| 4297 | test -z "$as_dir" && as_dir=. |
| 4298 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4299 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4300 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 4301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4302 | break 2 |
| 4303 | fi |
| 4304 | done |
| 4305 | done |
| 4306 | |
| 4307 | test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false" |
| 4308 | fi |
| 4309 | fi |
| 4310 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 4311 | if test -n "$ac_ct_WINDRES"; then |
| 4312 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 4313 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 |
| 4314 | else |
| 4315 | echo "$as_me:$LINENO: result: no" >&5 |
| 4316 | echo "${ECHO_T}no" >&6 |
| 4317 | fi |
| 4318 | |
| 4319 | WINDRES=$ac_ct_WINDRES |
| 4320 | else |
| 4321 | WINDRES="$ac_cv_prog_WINDRES" |
| 4322 | fi |
| 4323 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4324 | # Find a good install program. We prefer a C program (faster), |
| 4325 | # so one script is as good as another. But avoid the broken or |
| 4326 | # incompatible versions: |
| 4327 | # SysV /etc/install, /usr/sbin/install |
| 4328 | # SunOS /usr/etc/install |
| 4329 | # IRIX /sbin/install |
| 4330 | # AIX /bin/install |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4331 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 4332 | # 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] | 4333 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4334 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4335 | # ./install, which can be erroneously created by make from ./install.sh. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4336 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4337 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4338 | if test -z "$INSTALL"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4339 | if test "${ac_cv_path_install+set}" = set; then |
| 4340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4341 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4343 | for as_dir in $PATH |
| 4344 | do |
| 4345 | IFS=$as_save_IFS |
| 4346 | test -z "$as_dir" && as_dir=. |
| 4347 | # Account for people who put trailing slashes in PATH elements. |
| 4348 | case $as_dir/ in |
| 4349 | ./ | .// | /cC/* | \ |
| 4350 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4351 | /usr/ucb/* ) ;; |
| 4352 | *) |
| 4353 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4354 | # Don't use installbsd from OSF since it installs stuff as root |
| 4355 | # by default. |
| 4356 | for ac_prog in ginstall scoinst install; do |
| 4357 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4358 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 4359 | if test $ac_prog = install && |
| 4360 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4361 | # AIX install. It has an incompatible calling convention. |
| 4362 | : |
| 4363 | elif test $ac_prog = install && |
| 4364 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4365 | # program-specific install script used by HP pwplus--don't use. |
| 4366 | : |
| 4367 | else |
| 4368 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4369 | break 3 |
| 4370 | fi |
| 4371 | fi |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4372 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4373 | done |
| 4374 | ;; |
| 4375 | esac |
| 4376 | done |
| 4377 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4378 | |
| 4379 | fi |
| 4380 | if test "${ac_cv_path_install+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4381 | INSTALL=$ac_cv_path_install |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4382 | else |
| 4383 | # As a last resort, use the slow shell script. We don't cache a |
| 4384 | # path for INSTALL within a source directory, because that will |
| 4385 | # break other packages using the cache if that directory is |
| 4386 | # removed, or if the path is relative. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4387 | INSTALL=$ac_install_sh |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4388 | fi |
| 4389 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4390 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4391 | echo "${ECHO_T}$INSTALL" >&6 |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4392 | |
| 4393 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4394 | # It thinks the first close brace ends the variable substitution. |
| 4395 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4396 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4397 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 4398 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 4399 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4400 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4401 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4402 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4403 | LN_S=$as_ln_s |
| 4404 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4405 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4406 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4407 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4408 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4409 | echo "${ECHO_T}no, using $LN_S" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4410 | fi |
| 4411 | |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 4412 | echo "$as_me:$LINENO: checking whether ln works" >&5 |
| 4413 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 |
| 4414 | rm -f conf$$ conf$$.file |
| 4415 | echo >conf$$.file |
| 4416 | if ln conf$$.file conf$$ 2>/dev/null; then |
| 4417 | LN=ln |
| 4418 | |
| 4419 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4420 | echo "${ECHO_T}yes" >&6 |
| 4421 | else |
| 4422 | LN="cp -p" |
| 4423 | |
| 4424 | echo "$as_me:$LINENO: result: no, using $LN" >&5 |
| 4425 | echo "${ECHO_T}no, using $LN" >&6 |
| 4426 | fi |
| 4427 | rm -f conf$$ conf$$.file |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4428 | # Extract the first word of "c2man", so it can be a program name with args. |
| 4429 | set dummy c2man; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4430 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4432 | if test "${ac_cv_prog_C2MAN+set}" = set; then |
| 4433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4434 | else |
| 4435 | if test -n "$C2MAN"; then |
| 4436 | ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test. |
| 4437 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4439 | for as_dir in $PATH |
| 4440 | do |
| 4441 | IFS=$as_save_IFS |
| 4442 | test -z "$as_dir" && as_dir=. |
| 4443 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4444 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4445 | ac_cv_prog_C2MAN="c2man" |
| 4446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4447 | break 2 |
| 4448 | fi |
| 4449 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4450 | done |
| 4451 | |
Mike McCormack | e0df32f | 2000-08-11 21:15:21 +0000 | [diff] [blame] | 4452 | 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] | 4453 | fi |
| 4454 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4455 | C2MAN=$ac_cv_prog_C2MAN |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4456 | if test -n "$C2MAN"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4457 | echo "$as_me:$LINENO: result: $C2MAN" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4458 | echo "${ECHO_T}$C2MAN" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4459 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4460 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4461 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4462 | fi |
| 4463 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4464 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4465 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4466 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4468 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 4469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4470 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4471 | case $LDCONFIG in |
| 4472 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4473 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4474 | ;; |
| 4475 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 4477 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4478 | do |
| 4479 | IFS=$as_save_IFS |
| 4480 | test -z "$as_dir" && as_dir=. |
| 4481 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4482 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4483 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4485 | break 2 |
| 4486 | fi |
| 4487 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4488 | done |
| 4489 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 4490 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4491 | ;; |
| 4492 | esac |
| 4493 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4494 | LDCONFIG=$ac_cv_path_LDCONFIG |
| 4495 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4496 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4497 | echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4498 | echo "${ECHO_T}$LDCONFIG" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4499 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4500 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4501 | echo "${ECHO_T}no" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4502 | fi |
| 4503 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4504 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4505 | for ac_prog in lclint lint |
| 4506 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4507 | # 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] | 4508 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4509 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4510 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4511 | if test "${ac_cv_prog_LINT+set}" = set; then |
| 4512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4513 | else |
| 4514 | if test -n "$LINT"; then |
| 4515 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 4516 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4518 | for as_dir in $PATH |
| 4519 | do |
| 4520 | IFS=$as_save_IFS |
| 4521 | test -z "$as_dir" && as_dir=. |
| 4522 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4523 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4524 | ac_cv_prog_LINT="$ac_prog" |
| 4525 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4526 | break 2 |
| 4527 | fi |
| 4528 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4529 | done |
| 4530 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4531 | fi |
| 4532 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4533 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4534 | if test -n "$LINT"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4535 | echo "$as_me:$LINENO: result: $LINT" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4536 | echo "${ECHO_T}$LINT" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4537 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4538 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4539 | echo "${ECHO_T}no" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4540 | fi |
| 4541 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4542 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4543 | done |
| 4544 | |
| 4545 | if test "$LINT" = "lint" |
| 4546 | then |
| 4547 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 4548 | fi |
| 4549 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4550 | |
| 4551 | |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame^] | 4552 | for ac_prog in docbook2html db2html |
| 4553 | do |
| 4554 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4555 | set dummy $ac_prog; ac_word=$2 |
| 4556 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4558 | if test "${ac_cv_prog_DB2HTML+set}" = set; then |
| 4559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4560 | else |
| 4561 | if test -n "$DB2HTML"; then |
| 4562 | ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test. |
| 4563 | else |
| 4564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4565 | for as_dir in $PATH |
| 4566 | do |
| 4567 | IFS=$as_save_IFS |
| 4568 | test -z "$as_dir" && as_dir=. |
| 4569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4570 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4571 | ac_cv_prog_DB2HTML="$ac_prog" |
| 4572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4573 | break 2 |
| 4574 | fi |
| 4575 | done |
| 4576 | done |
| 4577 | |
| 4578 | fi |
| 4579 | fi |
| 4580 | DB2HTML=$ac_cv_prog_DB2HTML |
| 4581 | if test -n "$DB2HTML"; then |
| 4582 | echo "$as_me:$LINENO: result: $DB2HTML" >&5 |
| 4583 | echo "${ECHO_T}$DB2HTML" >&6 |
| 4584 | else |
| 4585 | echo "$as_me:$LINENO: result: no" >&5 |
| 4586 | echo "${ECHO_T}no" >&6 |
| 4587 | fi |
| 4588 | |
| 4589 | test -n "$DB2HTML" && break |
| 4590 | done |
| 4591 | test -n "$DB2HTML" || DB2HTML="false" |
| 4592 | |
| 4593 | |
| 4594 | |
| 4595 | for ac_prog in docbook2pdf db2pdf |
| 4596 | do |
| 4597 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4598 | set dummy $ac_prog; ac_word=$2 |
| 4599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4601 | if test "${ac_cv_prog_DB2PDF+set}" = set; then |
| 4602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4603 | else |
| 4604 | if test -n "$DB2PDF"; then |
| 4605 | ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test. |
| 4606 | else |
| 4607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4608 | for as_dir in $PATH |
| 4609 | do |
| 4610 | IFS=$as_save_IFS |
| 4611 | test -z "$as_dir" && as_dir=. |
| 4612 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4613 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4614 | ac_cv_prog_DB2PDF="$ac_prog" |
| 4615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4616 | break 2 |
| 4617 | fi |
| 4618 | done |
| 4619 | done |
| 4620 | |
| 4621 | fi |
| 4622 | fi |
| 4623 | DB2PDF=$ac_cv_prog_DB2PDF |
| 4624 | if test -n "$DB2PDF"; then |
| 4625 | echo "$as_me:$LINENO: result: $DB2PDF" >&5 |
| 4626 | echo "${ECHO_T}$DB2PDF" >&6 |
| 4627 | else |
| 4628 | echo "$as_me:$LINENO: result: no" >&5 |
| 4629 | echo "${ECHO_T}no" >&6 |
| 4630 | fi |
| 4631 | |
| 4632 | test -n "$DB2PDF" && break |
| 4633 | done |
| 4634 | test -n "$DB2PDF" || DB2PDF="false" |
| 4635 | |
| 4636 | |
| 4637 | |
| 4638 | for ac_prog in docbook2ps db2ps |
| 4639 | do |
| 4640 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4641 | set dummy $ac_prog; ac_word=$2 |
| 4642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4644 | if test "${ac_cv_prog_DB2PS+set}" = set; then |
| 4645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4646 | else |
| 4647 | if test -n "$DB2PS"; then |
| 4648 | ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test. |
| 4649 | else |
| 4650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4651 | for as_dir in $PATH |
| 4652 | do |
| 4653 | IFS=$as_save_IFS |
| 4654 | test -z "$as_dir" && as_dir=. |
| 4655 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4657 | ac_cv_prog_DB2PS="$ac_prog" |
| 4658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4659 | break 2 |
| 4660 | fi |
| 4661 | done |
| 4662 | done |
| 4663 | |
| 4664 | fi |
| 4665 | fi |
| 4666 | DB2PS=$ac_cv_prog_DB2PS |
| 4667 | if test -n "$DB2PS"; then |
| 4668 | echo "$as_me:$LINENO: result: $DB2PS" >&5 |
| 4669 | echo "${ECHO_T}$DB2PS" >&6 |
| 4670 | else |
| 4671 | echo "$as_me:$LINENO: result: no" >&5 |
| 4672 | echo "${ECHO_T}no" >&6 |
| 4673 | fi |
| 4674 | |
| 4675 | test -n "$DB2PS" && break |
| 4676 | done |
| 4677 | test -n "$DB2PS" || DB2PS="false" |
| 4678 | |
| 4679 | |
| 4680 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4681 | |
| 4682 | |
| 4683 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4684 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
| 4685 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
| 4686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | 79e44ab | 2000-12-05 04:13:36 +0000 | [diff] [blame] | 4687 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4688 | ac_check_lib_save_LIBS=$LIBS |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4689 | LIBS="-lm $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4690 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4691 | #line $LINENO "configure" |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4692 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4693 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4694 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4695 | #ifdef __cplusplus |
| 4696 | extern "C" |
| 4697 | #endif |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4698 | /* 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] | 4699 | builtin and then its argument prototype would still apply. */ |
| 4700 | char sqrt (); |
| 4701 | int |
| 4702 | main () |
| 4703 | { |
| 4704 | sqrt (); |
| 4705 | ; |
| 4706 | return 0; |
| 4707 | } |
| 4708 | _ACEOF |
| 4709 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4711 | (eval $ac_link) 2>&5 |
| 4712 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4714 | (exit $ac_status); } && |
| 4715 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4717 | (eval $ac_try) 2>&5 |
| 4718 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4720 | (exit $ac_status); }; }; then |
| 4721 | ac_cv_lib_m_sqrt=yes |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4722 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4723 | echo "$as_me: failed program was:" >&5 |
| 4724 | cat conftest.$ac_ext >&5 |
| 4725 | ac_cv_lib_m_sqrt=no |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4726 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4727 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4728 | LIBS=$ac_check_lib_save_LIBS |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4729 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4730 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4731 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
| 4732 | if test $ac_cv_lib_m_sqrt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4733 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4734 | #define HAVE_LIBM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4735 | _ACEOF |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4736 | |
| 4737 | LIBS="-lm $LIBS" |
| 4738 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4739 | fi |
| 4740 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4741 | |
| 4742 | echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4743 | echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6 |
| 4744 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
| 4745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 4746 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4747 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 4748 | LIBS="-li386 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4749 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4750 | #line $LINENO "configure" |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 4751 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4752 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 4753 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4754 | #ifdef __cplusplus |
| 4755 | extern "C" |
| 4756 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4757 | /* 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] | 4758 | builtin and then its argument prototype would still apply. */ |
| 4759 | char i386_set_ldt (); |
| 4760 | int |
| 4761 | main () |
| 4762 | { |
| 4763 | i386_set_ldt (); |
| 4764 | ; |
| 4765 | return 0; |
| 4766 | } |
| 4767 | _ACEOF |
| 4768 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4770 | (eval $ac_link) 2>&5 |
| 4771 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4773 | (exit $ac_status); } && |
| 4774 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4776 | (eval $ac_try) 2>&5 |
| 4777 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4779 | (exit $ac_status); }; }; then |
| 4780 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 4781 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4782 | echo "$as_me: failed program was:" >&5 |
| 4783 | cat conftest.$ac_ext >&5 |
| 4784 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 4785 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4786 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4787 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 4788 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4789 | echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4790 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6 |
| 4791 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4792 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4793 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4794 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 4795 | |
| 4796 | LIBS="-li386 $LIBS" |
| 4797 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 4798 | fi |
| 4799 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4800 | |
| 4801 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4802 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
| 4803 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 4804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4805 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4806 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4807 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4808 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4809 | #line $LINENO "configure" |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4810 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4811 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4812 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4813 | #ifdef __cplusplus |
| 4814 | extern "C" |
| 4815 | #endif |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4816 | /* 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] | 4817 | builtin and then its argument prototype would still apply. */ |
| 4818 | char _oss_ioctl (); |
| 4819 | int |
| 4820 | main () |
| 4821 | { |
| 4822 | _oss_ioctl (); |
| 4823 | ; |
| 4824 | return 0; |
| 4825 | } |
| 4826 | _ACEOF |
| 4827 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4829 | (eval $ac_link) 2>&5 |
| 4830 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4832 | (exit $ac_status); } && |
| 4833 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4835 | (eval $ac_try) 2>&5 |
| 4836 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4838 | (exit $ac_status); }; }; then |
| 4839 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4840 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4841 | echo "$as_me: failed program was:" >&5 |
| 4842 | cat conftest.$ac_ext >&5 |
| 4843 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4844 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4845 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4846 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4847 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4848 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4849 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
| 4850 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4851 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4852 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4853 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4854 | |
| 4855 | LIBS="-lossaudio $LIBS" |
| 4856 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 4857 | fi |
| 4858 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4859 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4860 | for ac_func in iswalnum |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4861 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4862 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4863 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4864 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4865 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4867 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4868 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4869 | #line $LINENO "configure" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4870 | #include "confdefs.h" |
| 4871 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4872 | which can conflict with char $ac_func (); below. */ |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4873 | #include <assert.h> |
| 4874 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4875 | #ifdef __cplusplus |
| 4876 | extern "C" |
| 4877 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4878 | /* 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] | 4879 | builtin and then its argument prototype would still apply. */ |
| 4880 | char $ac_func (); |
| 4881 | char (*f) (); |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4882 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4883 | int |
| 4884 | main () |
| 4885 | { |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4886 | /* The GNU C library defines this for functions which it implements |
| 4887 | to always fail with ENOSYS. Some functions are actually named |
| 4888 | something starting with __ and the normal name is an alias. */ |
| 4889 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4890 | choke me |
| 4891 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4892 | f = $ac_func; |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 4893 | #endif |
| 4894 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4895 | ; |
| 4896 | return 0; |
| 4897 | } |
| 4898 | _ACEOF |
| 4899 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4901 | (eval $ac_link) 2>&5 |
| 4902 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4904 | (exit $ac_status); } && |
| 4905 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4907 | (eval $ac_try) 2>&5 |
| 4908 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4910 | (exit $ac_status); }; }; then |
| 4911 | eval "$as_ac_var=yes" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4912 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4913 | echo "$as_me: failed program was:" >&5 |
| 4914 | cat conftest.$ac_ext >&5 |
| 4915 | eval "$as_ac_var=no" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4916 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4917 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4918 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4919 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4920 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4921 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4922 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4923 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4924 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4925 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4926 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4927 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4928 | echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4929 | echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6 |
| 4930 | if test "${ac_cv_lib_w_iswalnum+set}" = set; then |
| 4931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4932 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4933 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4934 | LIBS="-lw $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4935 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4936 | #line $LINENO "configure" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4937 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4938 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4939 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4940 | #ifdef __cplusplus |
| 4941 | extern "C" |
| 4942 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4943 | /* 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] | 4944 | builtin and then its argument prototype would still apply. */ |
| 4945 | char iswalnum (); |
| 4946 | int |
| 4947 | main () |
| 4948 | { |
| 4949 | iswalnum (); |
| 4950 | ; |
| 4951 | return 0; |
| 4952 | } |
| 4953 | _ACEOF |
| 4954 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4956 | (eval $ac_link) 2>&5 |
| 4957 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4959 | (exit $ac_status); } && |
| 4960 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4962 | (eval $ac_try) 2>&5 |
| 4963 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4965 | (exit $ac_status); }; }; then |
| 4966 | ac_cv_lib_w_iswalnum=yes |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4967 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4968 | echo "$as_me: failed program was:" >&5 |
| 4969 | cat conftest.$ac_ext >&5 |
| 4970 | ac_cv_lib_w_iswalnum=no |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4971 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4972 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4973 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4974 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4975 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4976 | echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6 |
| 4977 | if test $ac_cv_lib_w_iswalnum = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4978 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4979 | #define HAVE_LIBW 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4980 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4981 | |
| 4982 | LIBS="-lw $LIBS" |
| 4983 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4984 | fi |
| 4985 | |
| 4986 | fi |
| 4987 | done |
| 4988 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4989 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4990 | for ac_func in gethostbyname |
| 4991 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4992 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4993 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4994 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4995 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 4997 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4998 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4999 | #line $LINENO "configure" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5000 | #include "confdefs.h" |
| 5001 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5002 | which can conflict with char $ac_func (); below. */ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5003 | #include <assert.h> |
| 5004 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5005 | #ifdef __cplusplus |
| 5006 | extern "C" |
| 5007 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5008 | /* 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] | 5009 | builtin and then its argument prototype would still apply. */ |
| 5010 | char $ac_func (); |
| 5011 | char (*f) (); |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5012 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5013 | int |
| 5014 | main () |
| 5015 | { |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5016 | /* The GNU C library defines this for functions which it implements |
| 5017 | to always fail with ENOSYS. Some functions are actually named |
| 5018 | something starting with __ and the normal name is an alias. */ |
| 5019 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5020 | choke me |
| 5021 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5022 | f = $ac_func; |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5023 | #endif |
| 5024 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5025 | ; |
| 5026 | return 0; |
| 5027 | } |
| 5028 | _ACEOF |
| 5029 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5031 | (eval $ac_link) 2>&5 |
| 5032 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5034 | (exit $ac_status); } && |
| 5035 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5037 | (eval $ac_try) 2>&5 |
| 5038 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5040 | (exit $ac_status); }; }; then |
| 5041 | eval "$as_ac_var=yes" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5042 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5043 | echo "$as_me: failed program was:" >&5 |
| 5044 | cat conftest.$ac_ext >&5 |
| 5045 | eval "$as_ac_var=no" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5046 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5047 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5048 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5049 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5050 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5051 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5052 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5053 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5054 | _ACEOF |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5055 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5056 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5057 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5058 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5059 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 5060 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 5061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5062 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5063 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5064 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5065 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5066 | #line $LINENO "configure" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5067 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5068 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5069 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5070 | #ifdef __cplusplus |
| 5071 | extern "C" |
| 5072 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5073 | /* 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] | 5074 | builtin and then its argument prototype would still apply. */ |
| 5075 | char gethostbyname (); |
| 5076 | int |
| 5077 | main () |
| 5078 | { |
| 5079 | gethostbyname (); |
| 5080 | ; |
| 5081 | return 0; |
| 5082 | } |
| 5083 | _ACEOF |
| 5084 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5086 | (eval $ac_link) 2>&5 |
| 5087 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5089 | (exit $ac_status); } && |
| 5090 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5092 | (eval $ac_try) 2>&5 |
| 5093 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5095 | (exit $ac_status); }; }; then |
| 5096 | ac_cv_lib_nsl_gethostbyname=yes |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5097 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5098 | echo "$as_me: failed program was:" >&5 |
| 5099 | cat conftest.$ac_ext >&5 |
| 5100 | ac_cv_lib_nsl_gethostbyname=no |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5101 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5102 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5103 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5104 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5105 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5106 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 5107 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5108 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5109 | #define HAVE_LIBNSL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5110 | _ACEOF |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5111 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5112 | LIBS="-lnsl $LIBS" |
| 5113 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5114 | fi |
| 5115 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5116 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 5117 | done |
| 5118 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5119 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5120 | for ac_func in connect |
| 5121 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5122 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5123 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5124 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5125 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5127 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5128 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5129 | #line $LINENO "configure" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5130 | #include "confdefs.h" |
| 5131 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5132 | which can conflict with char $ac_func (); below. */ |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5133 | #include <assert.h> |
| 5134 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5135 | #ifdef __cplusplus |
| 5136 | extern "C" |
| 5137 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5138 | /* 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] | 5139 | builtin and then its argument prototype would still apply. */ |
| 5140 | char $ac_func (); |
| 5141 | char (*f) (); |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5142 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5143 | int |
| 5144 | main () |
| 5145 | { |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5146 | /* The GNU C library defines this for functions which it implements |
| 5147 | to always fail with ENOSYS. Some functions are actually named |
| 5148 | something starting with __ and the normal name is an alias. */ |
| 5149 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5150 | choke me |
| 5151 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5152 | f = $ac_func; |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5153 | #endif |
| 5154 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5155 | ; |
| 5156 | return 0; |
| 5157 | } |
| 5158 | _ACEOF |
| 5159 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5161 | (eval $ac_link) 2>&5 |
| 5162 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5164 | (exit $ac_status); } && |
| 5165 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5167 | (eval $ac_try) 2>&5 |
| 5168 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5170 | (exit $ac_status); }; }; then |
| 5171 | eval "$as_ac_var=yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5172 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5173 | echo "$as_me: failed program was:" >&5 |
| 5174 | cat conftest.$ac_ext >&5 |
| 5175 | eval "$as_ac_var=no" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5176 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5177 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5178 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5179 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5180 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5181 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5182 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5183 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5184 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5185 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5186 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5187 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5188 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5189 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 5190 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 5191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5192 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5193 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5194 | LIBS="-lsocket $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5195 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5196 | #line $LINENO "configure" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5197 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5198 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5199 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5200 | #ifdef __cplusplus |
| 5201 | extern "C" |
| 5202 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5203 | /* 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] | 5204 | builtin and then its argument prototype would still apply. */ |
| 5205 | char connect (); |
| 5206 | int |
| 5207 | main () |
| 5208 | { |
| 5209 | connect (); |
| 5210 | ; |
| 5211 | return 0; |
| 5212 | } |
| 5213 | _ACEOF |
| 5214 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5216 | (eval $ac_link) 2>&5 |
| 5217 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5219 | (exit $ac_status); } && |
| 5220 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5222 | (eval $ac_try) 2>&5 |
| 5223 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5225 | (exit $ac_status); }; }; then |
| 5226 | ac_cv_lib_socket_connect=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5227 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5228 | echo "$as_me: failed program was:" >&5 |
| 5229 | cat conftest.$ac_ext >&5 |
| 5230 | ac_cv_lib_socket_connect=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5231 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5232 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5233 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5234 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5235 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5236 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 5237 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5238 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5239 | #define HAVE_LIBSOCKET 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5240 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5241 | |
| 5242 | LIBS="-lsocket $LIBS" |
| 5243 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5244 | fi |
| 5245 | |
| 5246 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 5247 | done |
| 5248 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5249 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5250 | for ac_func in inet_aton |
| 5251 | do |
| 5252 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5253 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5254 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5255 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5257 | else |
| 5258 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5259 | #line $LINENO "configure" |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5260 | #include "confdefs.h" |
| 5261 | /* System header to define __stub macros and hopefully few prototypes, |
| 5262 | which can conflict with char $ac_func (); below. */ |
| 5263 | #include <assert.h> |
| 5264 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5265 | #ifdef __cplusplus |
| 5266 | extern "C" |
| 5267 | #endif |
| 5268 | /* We use char because int might match the return type of a gcc2 |
| 5269 | builtin and then its argument prototype would still apply. */ |
| 5270 | char $ac_func (); |
| 5271 | char (*f) (); |
| 5272 | |
| 5273 | int |
| 5274 | main () |
| 5275 | { |
| 5276 | /* The GNU C library defines this for functions which it implements |
| 5277 | to always fail with ENOSYS. Some functions are actually named |
| 5278 | something starting with __ and the normal name is an alias. */ |
| 5279 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5280 | choke me |
| 5281 | #else |
| 5282 | f = $ac_func; |
| 5283 | #endif |
| 5284 | |
| 5285 | ; |
| 5286 | return 0; |
| 5287 | } |
| 5288 | _ACEOF |
| 5289 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5291 | (eval $ac_link) 2>&5 |
| 5292 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5294 | (exit $ac_status); } && |
| 5295 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5297 | (eval $ac_try) 2>&5 |
| 5298 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5300 | (exit $ac_status); }; }; then |
| 5301 | eval "$as_ac_var=yes" |
| 5302 | else |
| 5303 | echo "$as_me: failed program was:" >&5 |
| 5304 | cat conftest.$ac_ext >&5 |
| 5305 | eval "$as_ac_var=no" |
| 5306 | fi |
| 5307 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5308 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5310 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5311 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5312 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5313 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5314 | _ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5315 | |
| 5316 | else |
| 5317 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5318 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5319 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 5320 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 5321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5322 | else |
| 5323 | ac_check_lib_save_LIBS=$LIBS |
| 5324 | LIBS="-lresolv $LIBS" |
| 5325 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5326 | #line $LINENO "configure" |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5327 | #include "confdefs.h" |
| 5328 | |
| 5329 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5330 | #ifdef __cplusplus |
| 5331 | extern "C" |
| 5332 | #endif |
| 5333 | /* We use char because int might match the return type of a gcc2 |
| 5334 | builtin and then its argument prototype would still apply. */ |
| 5335 | char inet_aton (); |
| 5336 | int |
| 5337 | main () |
| 5338 | { |
| 5339 | inet_aton (); |
| 5340 | ; |
| 5341 | return 0; |
| 5342 | } |
| 5343 | _ACEOF |
| 5344 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5346 | (eval $ac_link) 2>&5 |
| 5347 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5349 | (exit $ac_status); } && |
| 5350 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5352 | (eval $ac_try) 2>&5 |
| 5353 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5355 | (exit $ac_status); }; }; then |
| 5356 | ac_cv_lib_resolv_inet_aton=yes |
| 5357 | else |
| 5358 | echo "$as_me: failed program was:" >&5 |
| 5359 | cat conftest.$ac_ext >&5 |
| 5360 | ac_cv_lib_resolv_inet_aton=no |
| 5361 | fi |
| 5362 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5363 | LIBS=$ac_check_lib_save_LIBS |
| 5364 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5365 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5366 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 5367 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5368 | cat >>confdefs.h <<_ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5369 | #define HAVE_LIBRESOLV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5370 | _ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5371 | |
| 5372 | LIBS="-lresolv $LIBS" |
| 5373 | |
| 5374 | fi |
| 5375 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5376 | fi |
| 5377 | done |
| 5378 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5379 | |
| 5380 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5381 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 5382 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 5383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5384 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5385 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5386 | LIBS="-lxpg4 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5387 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5388 | #line $LINENO "configure" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5389 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5390 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5391 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5392 | #ifdef __cplusplus |
| 5393 | extern "C" |
| 5394 | #endif |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5395 | /* 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] | 5396 | builtin and then its argument prototype would still apply. */ |
| 5397 | char _xpg4_setrunelocale (); |
| 5398 | int |
| 5399 | main () |
| 5400 | { |
| 5401 | _xpg4_setrunelocale (); |
| 5402 | ; |
| 5403 | return 0; |
| 5404 | } |
| 5405 | _ACEOF |
| 5406 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5408 | (eval $ac_link) 2>&5 |
| 5409 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5411 | (exit $ac_status); } && |
| 5412 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5414 | (eval $ac_try) 2>&5 |
| 5415 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5417 | (exit $ac_status); }; }; then |
| 5418 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5419 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5420 | echo "$as_me: failed program was:" >&5 |
| 5421 | cat conftest.$ac_ext >&5 |
| 5422 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5423 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5424 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5425 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5426 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5427 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5428 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 5429 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5430 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5431 | #define HAVE_LIBXPG4 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5432 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5433 | |
| 5434 | LIBS="-lxpg4 $LIBS" |
| 5435 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5436 | fi |
| 5437 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5438 | |
| 5439 | echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5440 | echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6 |
| 5441 | if test "${ac_cv_lib_mmap_mmap+set}" = set; then |
| 5442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5443 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5444 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5445 | LIBS="-lmmap $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5446 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5447 | #line $LINENO "configure" |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5448 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5449 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5450 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5451 | #ifdef __cplusplus |
| 5452 | extern "C" |
| 5453 | #endif |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5454 | /* 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] | 5455 | builtin and then its argument prototype would still apply. */ |
| 5456 | char mmap (); |
| 5457 | int |
| 5458 | main () |
| 5459 | { |
| 5460 | mmap (); |
| 5461 | ; |
| 5462 | return 0; |
| 5463 | } |
| 5464 | _ACEOF |
| 5465 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5467 | (eval $ac_link) 2>&5 |
| 5468 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5470 | (exit $ac_status); } && |
| 5471 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5473 | (eval $ac_try) 2>&5 |
| 5474 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5476 | (exit $ac_status); }; }; then |
| 5477 | ac_cv_lib_mmap_mmap=yes |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5478 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5479 | echo "$as_me: failed program was:" >&5 |
| 5480 | cat conftest.$ac_ext >&5 |
| 5481 | ac_cv_lib_mmap_mmap=no |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5482 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5483 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5484 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5485 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5486 | echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5487 | echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6 |
| 5488 | if test $ac_cv_lib_mmap_mmap = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5489 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5490 | #define HAVE_LIBMMAP 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5491 | _ACEOF |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5492 | |
| 5493 | LIBS="-lmmap $LIBS" |
| 5494 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5495 | fi |
| 5496 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5497 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 5498 | JPEGLIB="" |
Alexandre Julliard | 562089b | 2001-12-31 22:28:35 +0000 | [diff] [blame] | 5499 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 5500 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 5501 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 5502 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 5503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5504 | else |
| 5505 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 5506 | then ac_cv_prog_egrep='grep -E' |
| 5507 | else ac_cv_prog_egrep='egrep' |
| 5508 | fi |
| 5509 | fi |
| 5510 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 5511 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 5512 | EGREP=$ac_cv_prog_egrep |
| 5513 | |
| 5514 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5515 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5516 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5517 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5519 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5520 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5521 | #line $LINENO "configure" |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5522 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5523 | #include <stdlib.h> |
| 5524 | #include <stdarg.h> |
| 5525 | #include <string.h> |
| 5526 | #include <float.h> |
| 5527 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5528 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5529 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5530 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5531 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 5532 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5533 | rm -f conftest.er1 |
| 5534 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5536 | (exit $ac_status); } >/dev/null; then |
| 5537 | if test -s conftest.err; then |
| 5538 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5539 | else |
| 5540 | ac_cpp_err= |
| 5541 | fi |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5542 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5543 | ac_cpp_err=yes |
| 5544 | fi |
| 5545 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5546 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5547 | else |
| 5548 | echo "$as_me: failed program was:" >&5 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5549 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5550 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5551 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5552 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5553 | |
| 5554 | if test $ac_cv_header_stdc = yes; then |
| 5555 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5556 | cat >conftest.$ac_ext <<_ACEOF |
| 5557 | #line $LINENO "configure" |
| 5558 | #include "confdefs.h" |
| 5559 | #include <string.h> |
| 5560 | |
| 5561 | _ACEOF |
| 5562 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 5563 | $EGREP "memchr" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5564 | : |
| 5565 | else |
| 5566 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5567 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5568 | rm -f conftest* |
| 5569 | |
| 5570 | fi |
| 5571 | |
| 5572 | if test $ac_cv_header_stdc = yes; then |
| 5573 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5574 | cat >conftest.$ac_ext <<_ACEOF |
| 5575 | #line $LINENO "configure" |
| 5576 | #include "confdefs.h" |
| 5577 | #include <stdlib.h> |
| 5578 | |
| 5579 | _ACEOF |
| 5580 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 5581 | $EGREP "free" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5582 | : |
| 5583 | else |
| 5584 | ac_cv_header_stdc=no |
| 5585 | fi |
| 5586 | rm -f conftest* |
| 5587 | |
| 5588 | fi |
| 5589 | |
| 5590 | if test $ac_cv_header_stdc = yes; then |
| 5591 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5592 | if test "$cross_compiling" = yes; then |
| 5593 | : |
| 5594 | else |
| 5595 | cat >conftest.$ac_ext <<_ACEOF |
| 5596 | #line $LINENO "configure" |
| 5597 | #include "confdefs.h" |
| 5598 | #include <ctype.h> |
| 5599 | #if ((' ' & 0x0FF) == 0x020) |
| 5600 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5601 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5602 | #else |
| 5603 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 5604 | || ('j' <= (c) && (c) <= 'r') \ |
| 5605 | || ('s' <= (c) && (c) <= 'z')) |
| 5606 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5607 | #endif |
| 5608 | |
| 5609 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5610 | int |
| 5611 | main () |
| 5612 | { |
| 5613 | int i; |
| 5614 | for (i = 0; i < 256; i++) |
| 5615 | if (XOR (islower (i), ISLOWER (i)) |
| 5616 | || toupper (i) != TOUPPER (i)) |
| 5617 | exit(2); |
| 5618 | exit (0); |
| 5619 | } |
| 5620 | _ACEOF |
| 5621 | rm -f conftest$ac_exeext |
| 5622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5623 | (eval $ac_link) 2>&5 |
| 5624 | ac_status=$? |
| 5625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5626 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5628 | (eval $ac_try) 2>&5 |
| 5629 | ac_status=$? |
| 5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5631 | (exit $ac_status); }; }; then |
| 5632 | : |
| 5633 | else |
| 5634 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5635 | echo "$as_me: failed program was:" >&5 |
| 5636 | cat conftest.$ac_ext >&5 |
| 5637 | ( exit $ac_status ) |
| 5638 | ac_cv_header_stdc=no |
| 5639 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 5640 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5641 | fi |
| 5642 | fi |
| 5643 | fi |
| 5644 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5645 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 5646 | if test $ac_cv_header_stdc = yes; then |
| 5647 | |
| 5648 | cat >>confdefs.h <<\_ACEOF |
| 5649 | #define STDC_HEADERS 1 |
| 5650 | _ACEOF |
| 5651 | |
| 5652 | fi |
| 5653 | |
| 5654 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5655 | |
| 5656 | |
| 5657 | |
| 5658 | |
| 5659 | |
| 5660 | |
| 5661 | |
| 5662 | |
| 5663 | |
| 5664 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5665 | inttypes.h stdint.h unistd.h |
| 5666 | do |
| 5667 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5668 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5669 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5670 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5672 | else |
| 5673 | cat >conftest.$ac_ext <<_ACEOF |
| 5674 | #line $LINENO "configure" |
| 5675 | #include "confdefs.h" |
| 5676 | $ac_includes_default |
| 5677 | |
| 5678 | #include <$ac_header> |
| 5679 | _ACEOF |
| 5680 | rm -f conftest.$ac_objext |
| 5681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5682 | (eval $ac_compile) 2>&5 |
| 5683 | ac_status=$? |
| 5684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5685 | (exit $ac_status); } && |
| 5686 | { ac_try='test -s conftest.$ac_objext' |
| 5687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5688 | (eval $ac_try) 2>&5 |
| 5689 | ac_status=$? |
| 5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5691 | (exit $ac_status); }; }; then |
| 5692 | eval "$as_ac_Header=yes" |
| 5693 | else |
| 5694 | echo "$as_me: failed program was:" >&5 |
| 5695 | cat conftest.$ac_ext >&5 |
| 5696 | eval "$as_ac_Header=no" |
| 5697 | fi |
| 5698 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5699 | fi |
| 5700 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5701 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5702 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5703 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5704 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5705 | _ACEOF |
| 5706 | |
| 5707 | fi |
| 5708 | |
| 5709 | done |
| 5710 | |
| 5711 | |
| 5712 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5713 | for ac_header in jpeglib.h |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5714 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5715 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5716 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5717 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5721 | fi |
| 5722 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5723 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5724 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5725 | # Is the header compilable? |
| 5726 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5727 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5728 | cat >conftest.$ac_ext <<_ACEOF |
| 5729 | #line $LINENO "configure" |
| 5730 | #include "confdefs.h" |
| 5731 | $ac_includes_default |
| 5732 | #include <$ac_header> |
| 5733 | _ACEOF |
| 5734 | rm -f conftest.$ac_objext |
| 5735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5736 | (eval $ac_compile) 2>&5 |
| 5737 | ac_status=$? |
| 5738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5739 | (exit $ac_status); } && |
| 5740 | { ac_try='test -s conftest.$ac_objext' |
| 5741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5742 | (eval $ac_try) 2>&5 |
| 5743 | ac_status=$? |
| 5744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5745 | (exit $ac_status); }; }; then |
| 5746 | ac_header_compiler=yes |
| 5747 | else |
| 5748 | echo "$as_me: failed program was:" >&5 |
| 5749 | cat conftest.$ac_ext >&5 |
| 5750 | ac_header_compiler=no |
| 5751 | fi |
| 5752 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5753 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5754 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5755 | |
| 5756 | # Is the header present? |
| 5757 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5758 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5759 | cat >conftest.$ac_ext <<_ACEOF |
| 5760 | #line $LINENO "configure" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5761 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5762 | #include <$ac_header> |
| 5763 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5764 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5765 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5766 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 5767 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5768 | rm -f conftest.er1 |
| 5769 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5771 | (exit $ac_status); } >/dev/null; then |
| 5772 | if test -s conftest.err; then |
| 5773 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5774 | else |
| 5775 | ac_cpp_err= |
| 5776 | fi |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5777 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5778 | ac_cpp_err=yes |
| 5779 | fi |
| 5780 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5781 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5782 | else |
| 5783 | echo "$as_me: failed program was:" >&5 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5784 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5785 | ac_header_preproc=no |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5786 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5787 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5788 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5789 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5790 | |
| 5791 | # So? What about this header? |
| 5792 | case $ac_header_compiler:$ac_header_preproc in |
| 5793 | yes:no ) |
| 5794 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5795 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5796 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5797 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 5798 | no:yes ) |
| 5799 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5800 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5801 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5802 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5803 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5804 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 5805 | esac |
| 5806 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5807 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5808 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5810 | else |
| 5811 | eval "$as_ac_Header=$ac_header_preproc" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5812 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5813 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5814 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5815 | |
| 5816 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5817 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5818 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5819 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5820 | _ACEOF |
| 5821 | echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5822 | echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6 |
| 5823 | if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then |
| 5824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5825 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5826 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5827 | LIBS="-ljpeg $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5828 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5829 | #line $LINENO "configure" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5830 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5831 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5832 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5833 | #ifdef __cplusplus |
| 5834 | extern "C" |
| 5835 | #endif |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5836 | /* 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] | 5837 | builtin and then its argument prototype would still apply. */ |
| 5838 | char jpeg_start_decompress (); |
| 5839 | int |
| 5840 | main () |
| 5841 | { |
| 5842 | jpeg_start_decompress (); |
| 5843 | ; |
| 5844 | return 0; |
| 5845 | } |
| 5846 | _ACEOF |
| 5847 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5849 | (eval $ac_link) 2>&5 |
| 5850 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5852 | (exit $ac_status); } && |
| 5853 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5855 | (eval $ac_try) 2>&5 |
| 5856 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5858 | (exit $ac_status); }; }; then |
| 5859 | ac_cv_lib_jpeg_jpeg_start_decompress=yes |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5860 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5861 | echo "$as_me: failed program was:" >&5 |
| 5862 | cat conftest.$ac_ext >&5 |
| 5863 | ac_cv_lib_jpeg_jpeg_start_decompress=no |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5864 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5865 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5866 | LIBS=$ac_check_lib_save_LIBS |
| 5867 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5868 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5869 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6 |
| 5870 | if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5871 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5872 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5873 | #define HAVE_LIBJPEG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5874 | _ACEOF |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5875 | |
| 5876 | JPEGLIB="-ljpeg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5877 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5878 | fi |
| 5879 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5880 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5881 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5882 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 5883 | done |
| 5884 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5885 | |
| 5886 | |
| 5887 | |
| 5888 | |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 5889 | XFILES="" |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 5890 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 5891 | OPENGLFILES="" |
| 5892 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 5893 | GLU32FILES="" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 5894 | |
| 5895 | OPENGL_LIBS="" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5896 | if test "$have_x" = "yes" |
| 5897 | then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 5898 | XLIB="-lXext -lX11" |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 5899 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 5900 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5901 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5902 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5903 | for ac_header in X11/Xlib.h |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 5904 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5905 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5907 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5908 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5909 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5911 | fi |
| 5912 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5913 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 5914 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5915 | # Is the header compilable? |
| 5916 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5917 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5918 | cat >conftest.$ac_ext <<_ACEOF |
| 5919 | #line $LINENO "configure" |
| 5920 | #include "confdefs.h" |
| 5921 | $ac_includes_default |
| 5922 | #include <$ac_header> |
| 5923 | _ACEOF |
| 5924 | rm -f conftest.$ac_objext |
| 5925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5926 | (eval $ac_compile) 2>&5 |
| 5927 | ac_status=$? |
| 5928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5929 | (exit $ac_status); } && |
| 5930 | { ac_try='test -s conftest.$ac_objext' |
| 5931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5932 | (eval $ac_try) 2>&5 |
| 5933 | ac_status=$? |
| 5934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5935 | (exit $ac_status); }; }; then |
| 5936 | ac_header_compiler=yes |
| 5937 | else |
| 5938 | echo "$as_me: failed program was:" >&5 |
| 5939 | cat conftest.$ac_ext >&5 |
| 5940 | ac_header_compiler=no |
| 5941 | fi |
| 5942 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5943 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5944 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5945 | |
| 5946 | # Is the header present? |
| 5947 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5948 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5949 | cat >conftest.$ac_ext <<_ACEOF |
| 5950 | #line $LINENO "configure" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 5951 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5952 | #include <$ac_header> |
| 5953 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5954 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5955 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5956 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 5957 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5958 | rm -f conftest.er1 |
| 5959 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5961 | (exit $ac_status); } >/dev/null; then |
| 5962 | if test -s conftest.err; then |
| 5963 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5964 | else |
| 5965 | ac_cpp_err= |
| 5966 | fi |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 5967 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5968 | ac_cpp_err=yes |
| 5969 | fi |
| 5970 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5971 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5972 | else |
| 5973 | echo "$as_me: failed program was:" >&5 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 5974 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5975 | ac_header_preproc=no |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 5976 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5977 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5978 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5979 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5980 | |
| 5981 | # So? What about this header? |
| 5982 | case $ac_header_compiler:$ac_header_preproc in |
| 5983 | yes:no ) |
| 5984 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5985 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5986 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5987 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 5988 | no:yes ) |
| 5989 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5990 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5991 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5992 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5993 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5994 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 5995 | esac |
| 5996 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5997 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6000 | else |
| 6001 | eval "$as_ac_Header=$ac_header_preproc" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6002 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6003 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6004 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6005 | |
| 6006 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6007 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6008 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6009 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6010 | _ACEOF |
| 6011 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6012 | |
| 6013 | for ac_header in X11/XKBlib.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6014 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6015 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6016 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6018 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6020 | else |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6021 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6022 | #line $LINENO "configure" |
| 6023 | #include "confdefs.h" |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6024 | #include <X11/Xlib.h> |
| 6025 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6026 | #include <$ac_header> |
| 6027 | _ACEOF |
| 6028 | rm -f conftest.$ac_objext |
| 6029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6030 | (eval $ac_compile) 2>&5 |
| 6031 | ac_status=$? |
| 6032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6033 | (exit $ac_status); } && |
| 6034 | { ac_try='test -s conftest.$ac_objext' |
| 6035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6036 | (eval $ac_try) 2>&5 |
| 6037 | ac_status=$? |
| 6038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6039 | (exit $ac_status); }; }; then |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6040 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6041 | else |
| 6042 | echo "$as_me: failed program was:" >&5 |
| 6043 | cat conftest.$ac_ext >&5 |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6044 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6045 | fi |
| 6046 | rm -f conftest.$ac_objext conftest.$ac_ext |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6047 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6048 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6049 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6050 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6051 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6052 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6053 | _ACEOF |
| 6054 | echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6055 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6 |
| 6056 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
| 6057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6058 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6059 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6060 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6061 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6062 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6063 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6064 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6065 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6066 | #ifdef __cplusplus |
| 6067 | extern "C" |
| 6068 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6069 | /* 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] | 6070 | builtin and then its argument prototype would still apply. */ |
| 6071 | char XkbQueryExtension (); |
| 6072 | int |
| 6073 | main () |
| 6074 | { |
| 6075 | XkbQueryExtension (); |
| 6076 | ; |
| 6077 | return 0; |
| 6078 | } |
| 6079 | _ACEOF |
| 6080 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6082 | (eval $ac_link) 2>&5 |
| 6083 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6085 | (exit $ac_status); } && |
| 6086 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6088 | (eval $ac_try) 2>&5 |
| 6089 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6091 | (exit $ac_status); }; }; then |
| 6092 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6093 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6094 | echo "$as_me: failed program was:" >&5 |
| 6095 | cat conftest.$ac_ext >&5 |
| 6096 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6097 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6098 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6099 | LIBS=$ac_check_lib_save_LIBS |
| 6100 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6101 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6102 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6 |
| 6103 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6104 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6105 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6106 | #define HAVE_XKB 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6107 | _ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6108 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6109 | fi |
| 6110 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6111 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6112 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6113 | { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6114 | echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;} |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6115 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6116 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6117 | done |
| 6118 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6119 | |
| 6120 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6121 | for ac_header in X11/extensions/XShm.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6122 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6123 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6124 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6125 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6126 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6128 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6129 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6130 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6131 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6132 | #include <X11/Xlib.h> |
| 6133 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6134 | #include <$ac_header> |
| 6135 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6136 | rm -f conftest.$ac_objext |
| 6137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6138 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6139 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6141 | (exit $ac_status); } && |
| 6142 | { ac_try='test -s conftest.$ac_objext' |
| 6143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6144 | (eval $ac_try) 2>&5 |
| 6145 | ac_status=$? |
| 6146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6147 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6148 | eval "$as_ac_Header=yes" |
| 6149 | else |
| 6150 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6151 | cat conftest.$ac_ext >&5 |
| 6152 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6153 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6154 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6155 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6156 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6157 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6158 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6159 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6160 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6161 | _ACEOF |
| 6162 | echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6163 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6 |
| 6164 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
| 6165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6166 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6167 | ac_check_lib_save_LIBS=$LIBS |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6168 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6169 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6170 | #line $LINENO "configure" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6171 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6172 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6173 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6174 | #ifdef __cplusplus |
| 6175 | extern "C" |
| 6176 | #endif |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6177 | /* 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] | 6178 | builtin and then its argument prototype would still apply. */ |
| 6179 | char XShmQueryExtension (); |
| 6180 | int |
| 6181 | main () |
| 6182 | { |
| 6183 | XShmQueryExtension (); |
| 6184 | ; |
| 6185 | return 0; |
| 6186 | } |
| 6187 | _ACEOF |
| 6188 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6189 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6190 | (eval $ac_link) 2>&5 |
| 6191 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6193 | (exit $ac_status); } && |
| 6194 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6196 | (eval $ac_try) 2>&5 |
| 6197 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6199 | (exit $ac_status); }; }; then |
| 6200 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6201 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6202 | echo "$as_me: failed program was:" >&5 |
| 6203 | cat conftest.$ac_ext >&5 |
| 6204 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6205 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6206 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6207 | LIBS=$ac_check_lib_save_LIBS |
| 6208 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6209 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6210 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6 |
| 6211 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6212 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6213 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6214 | #define HAVE_LIBXXSHM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6215 | _ACEOF |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6216 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6217 | fi |
| 6218 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6219 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6220 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6221 | { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6222 | echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;} |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6223 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6224 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6225 | done |
| 6226 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6227 | |
| 6228 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6229 | for ac_header in X11/Xutil.h |
| 6230 | do |
| 6231 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6232 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6233 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6234 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6236 | else |
| 6237 | cat >conftest.$ac_ext <<_ACEOF |
| 6238 | #line $LINENO "configure" |
| 6239 | #include "confdefs.h" |
| 6240 | #include <X11/Xlib.h> |
| 6241 | |
| 6242 | #include <$ac_header> |
| 6243 | _ACEOF |
| 6244 | rm -f conftest.$ac_objext |
| 6245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6246 | (eval $ac_compile) 2>&5 |
| 6247 | ac_status=$? |
| 6248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6249 | (exit $ac_status); } && |
| 6250 | { ac_try='test -s conftest.$ac_objext' |
| 6251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6252 | (eval $ac_try) 2>&5 |
| 6253 | ac_status=$? |
| 6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6255 | (exit $ac_status); }; }; then |
| 6256 | eval "$as_ac_Header=yes" |
| 6257 | else |
| 6258 | echo "$as_me: failed program was:" >&5 |
| 6259 | cat conftest.$ac_ext >&5 |
| 6260 | eval "$as_ac_Header=no" |
| 6261 | fi |
| 6262 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6263 | fi |
| 6264 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6265 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6266 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6267 | cat >>confdefs.h <<_ACEOF |
| 6268 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6269 | _ACEOF |
| 6270 | |
| 6271 | fi |
| 6272 | |
| 6273 | done |
| 6274 | |
| 6275 | |
| 6276 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6277 | for ac_header in X11/extensions/shape.h |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6278 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6279 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6280 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6281 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6284 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6285 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6286 | #line $LINENO "configure" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6287 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6288 | #include <X11/Xlib.h> |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6289 | #ifdef HAVE_X11_XUTIL_H |
| 6290 | # include <X11/Xutil.h> |
| 6291 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6292 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6293 | #include <$ac_header> |
| 6294 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6295 | rm -f conftest.$ac_objext |
| 6296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6297 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6298 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6300 | (exit $ac_status); } && |
| 6301 | { ac_try='test -s conftest.$ac_objext' |
| 6302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6303 | (eval $ac_try) 2>&5 |
| 6304 | ac_status=$? |
| 6305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6306 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6307 | eval "$as_ac_Header=yes" |
| 6308 | else |
| 6309 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6310 | cat conftest.$ac_ext >&5 |
| 6311 | eval "$as_ac_Header=no" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6312 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6313 | rm -f conftest.$ac_objext conftest.$ac_ext |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6314 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6315 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6316 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6317 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6318 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6319 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6320 | _ACEOF |
| 6321 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6322 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 6323 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 6324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6325 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6326 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6327 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6328 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6329 | #line $LINENO "configure" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6330 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6331 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6332 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6333 | #ifdef __cplusplus |
| 6334 | extern "C" |
| 6335 | #endif |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6336 | /* 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] | 6337 | builtin and then its argument prototype would still apply. */ |
| 6338 | char XShapeQueryExtension (); |
| 6339 | int |
| 6340 | main () |
| 6341 | { |
| 6342 | XShapeQueryExtension (); |
| 6343 | ; |
| 6344 | return 0; |
| 6345 | } |
| 6346 | _ACEOF |
| 6347 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6349 | (eval $ac_link) 2>&5 |
| 6350 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6352 | (exit $ac_status); } && |
| 6353 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6355 | (eval $ac_try) 2>&5 |
| 6356 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6358 | (exit $ac_status); }; }; then |
| 6359 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6360 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6361 | echo "$as_me: failed program was:" >&5 |
| 6362 | cat conftest.$ac_ext >&5 |
| 6363 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6364 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6365 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6366 | LIBS=$ac_check_lib_save_LIBS |
| 6367 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6368 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6369 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 6370 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6371 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6372 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6373 | #define HAVE_LIBXSHAPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6374 | _ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6375 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6376 | fi |
| 6377 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6378 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6379 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6380 | { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6381 | echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;} |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6382 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6383 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6384 | done |
| 6385 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6386 | |
| 6387 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6388 | for ac_header in X11/extensions/xf86dga.h |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6389 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6390 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6391 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6392 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6395 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6396 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6397 | #line $LINENO "configure" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6398 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6399 | #include <X11/Xlib.h> |
| 6400 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6401 | #include <$ac_header> |
| 6402 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6403 | rm -f conftest.$ac_objext |
| 6404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6405 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6406 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6408 | (exit $ac_status); } && |
| 6409 | { ac_try='test -s conftest.$ac_objext' |
| 6410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6411 | (eval $ac_try) 2>&5 |
| 6412 | ac_status=$? |
| 6413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6414 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6415 | eval "$as_ac_Header=yes" |
| 6416 | else |
| 6417 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6418 | cat conftest.$ac_ext >&5 |
| 6419 | eval "$as_ac_Header=no" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6420 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6421 | rm -f conftest.$ac_objext conftest.$ac_ext |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6422 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6423 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6424 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6425 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6426 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6427 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6428 | _ACEOF |
| 6429 | echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6430 | echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 6431 | if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then |
| 6432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6433 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6434 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 6435 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6436 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6437 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6438 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6439 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6440 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6441 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6442 | #ifdef __cplusplus |
| 6443 | extern "C" |
| 6444 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6445 | /* 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] | 6446 | builtin and then its argument prototype would still apply. */ |
| 6447 | char XDGAQueryExtension (); |
| 6448 | int |
| 6449 | main () |
| 6450 | { |
| 6451 | XDGAQueryExtension (); |
| 6452 | ; |
| 6453 | return 0; |
| 6454 | } |
| 6455 | _ACEOF |
| 6456 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6458 | (eval $ac_link) 2>&5 |
| 6459 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6461 | (exit $ac_status); } && |
| 6462 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6464 | (eval $ac_try) 2>&5 |
| 6465 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6467 | (exit $ac_status); }; }; then |
| 6468 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6469 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6470 | echo "$as_me: failed program was:" >&5 |
| 6471 | cat conftest.$ac_ext >&5 |
| 6472 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=no |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6473 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6474 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6475 | LIBS=$ac_check_lib_save_LIBS |
| 6476 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6477 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6478 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6 |
| 6479 | if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6480 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6481 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6482 | #define HAVE_LIBXXF86DGA2 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6483 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 6484 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6485 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6486 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6487 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6488 | echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6489 | echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 6490 | if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then |
| 6491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6492 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6493 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6494 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 6495 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6496 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6497 | #line $LINENO "configure" |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6498 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6499 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6500 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6501 | #ifdef __cplusplus |
| 6502 | extern "C" |
| 6503 | #endif |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6504 | /* 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] | 6505 | builtin and then its argument prototype would still apply. */ |
| 6506 | char XF86DGAQueryExtension (); |
| 6507 | int |
| 6508 | main () |
| 6509 | { |
| 6510 | XF86DGAQueryExtension (); |
| 6511 | ; |
| 6512 | return 0; |
| 6513 | } |
| 6514 | _ACEOF |
| 6515 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6517 | (eval $ac_link) 2>&5 |
| 6518 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6520 | (exit $ac_status); } && |
| 6521 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6523 | (eval $ac_try) 2>&5 |
| 6524 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6526 | (exit $ac_status); }; }; then |
| 6527 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6528 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6529 | echo "$as_me: failed program was:" >&5 |
| 6530 | cat conftest.$ac_ext >&5 |
| 6531 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6532 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6533 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6534 | LIBS=$ac_check_lib_save_LIBS |
| 6535 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6536 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6537 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6 |
| 6538 | if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6539 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6540 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6541 | #define HAVE_LIBXXF86DGA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6542 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 6543 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6544 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6545 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6546 | fi |
| 6547 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6548 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6549 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6550 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6551 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6552 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6553 | { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6554 | echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;} |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6555 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6556 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6557 | done |
| 6558 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6559 | |
| 6560 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6561 | for ac_header in X11/extensions/xf86vmode.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6562 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6563 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6564 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6565 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6566 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6568 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6569 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6570 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6571 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6572 | #include <X11/Xlib.h> |
| 6573 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6574 | #include <$ac_header> |
| 6575 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6576 | rm -f conftest.$ac_objext |
| 6577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6578 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6579 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6581 | (exit $ac_status); } && |
| 6582 | { ac_try='test -s conftest.$ac_objext' |
| 6583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6584 | (eval $ac_try) 2>&5 |
| 6585 | ac_status=$? |
| 6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6587 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6588 | eval "$as_ac_Header=yes" |
| 6589 | else |
| 6590 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6591 | cat conftest.$ac_ext >&5 |
| 6592 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6593 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6594 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6595 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6596 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6597 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6598 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6599 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6600 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6601 | _ACEOF |
| 6602 | echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6603 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6 |
| 6604 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
| 6605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6606 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6607 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6608 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 6609 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6610 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6611 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6612 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6613 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6614 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6615 | #ifdef __cplusplus |
| 6616 | extern "C" |
| 6617 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6618 | /* 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] | 6619 | builtin and then its argument prototype would still apply. */ |
| 6620 | char XF86VidModeQueryExtension (); |
| 6621 | int |
| 6622 | main () |
| 6623 | { |
| 6624 | XF86VidModeQueryExtension (); |
| 6625 | ; |
| 6626 | return 0; |
| 6627 | } |
| 6628 | _ACEOF |
| 6629 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6631 | (eval $ac_link) 2>&5 |
| 6632 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6634 | (exit $ac_status); } && |
| 6635 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6637 | (eval $ac_try) 2>&5 |
| 6638 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6640 | (exit $ac_status); }; }; then |
| 6641 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6642 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6643 | echo "$as_me: failed program was:" >&5 |
| 6644 | cat conftest.$ac_ext >&5 |
| 6645 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6646 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6647 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6648 | LIBS=$ac_check_lib_save_LIBS |
| 6649 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6650 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6651 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6 |
| 6652 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6653 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6654 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6655 | #define HAVE_LIBXXF86VM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6656 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6657 | |
| 6658 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6659 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6660 | fi |
| 6661 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6662 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6663 | else |
| 6664 | { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5 |
| 6665 | echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;} |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6666 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6667 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6668 | done |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 6669 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6670 | |
| 6671 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6672 | for ac_header in X11/extensions/Xvlib.h |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6673 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6674 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6675 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6676 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6677 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6679 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6680 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6681 | #line $LINENO "configure" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6682 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6683 | #include <X11/Xlib.h> |
| 6684 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6685 | #include <$ac_header> |
| 6686 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6687 | rm -f conftest.$ac_objext |
| 6688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6689 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6690 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6692 | (exit $ac_status); } && |
| 6693 | { ac_try='test -s conftest.$ac_objext' |
| 6694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6695 | (eval $ac_try) 2>&5 |
| 6696 | ac_status=$? |
| 6697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6698 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6699 | eval "$as_ac_Header=yes" |
| 6700 | else |
| 6701 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6702 | cat conftest.$ac_ext >&5 |
| 6703 | eval "$as_ac_Header=no" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6704 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6705 | rm -f conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6706 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6707 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6708 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6709 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6710 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6711 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6712 | _ACEOF |
| 6713 | echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6714 | echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6 |
| 6715 | if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then |
| 6716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6717 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6718 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6719 | LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 6720 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6721 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6722 | #line $LINENO "configure" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6723 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6724 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6725 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6726 | #ifdef __cplusplus |
| 6727 | extern "C" |
| 6728 | #endif |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6729 | /* 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] | 6730 | builtin and then its argument prototype would still apply. */ |
| 6731 | char XvShmCreateImage (); |
| 6732 | int |
| 6733 | main () |
| 6734 | { |
| 6735 | XvShmCreateImage (); |
| 6736 | ; |
| 6737 | return 0; |
| 6738 | } |
| 6739 | _ACEOF |
| 6740 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6742 | (eval $ac_link) 2>&5 |
| 6743 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6745 | (exit $ac_status); } && |
| 6746 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6748 | (eval $ac_try) 2>&5 |
| 6749 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6751 | (exit $ac_status); }; }; then |
| 6752 | ac_cv_lib_Xv_XvShmCreateImage=yes |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6753 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6754 | echo "$as_me: failed program was:" >&5 |
| 6755 | cat conftest.$ac_ext >&5 |
| 6756 | ac_cv_lib_Xv_XvShmCreateImage=no |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6757 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6758 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6759 | LIBS=$ac_check_lib_save_LIBS |
| 6760 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6761 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6762 | echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6 |
| 6763 | if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6764 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6765 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6766 | #define HAVE_XVIDEO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6767 | _ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6768 | |
| 6769 | X_PRE_LIBS="$X_PRE_LIBS -lXv" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6770 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6771 | fi |
| 6772 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6773 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6774 | else |
| 6775 | { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5 |
| 6776 | echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;} |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6777 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6778 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 6779 | done |
| 6780 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6781 | |
| 6782 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6783 | for ac_header in X11/extensions/Xrender.h |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6784 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6785 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6786 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6787 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6788 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6790 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6791 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6792 | #line $LINENO "configure" |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6793 | #include "confdefs.h" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6794 | #include <X11/Xlib.h> |
| 6795 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6796 | #include <$ac_header> |
| 6797 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6798 | rm -f conftest.$ac_objext |
| 6799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6800 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6801 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6803 | (exit $ac_status); } && |
| 6804 | { ac_try='test -s conftest.$ac_objext' |
| 6805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6806 | (eval $ac_try) 2>&5 |
| 6807 | ac_status=$? |
| 6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6809 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6810 | eval "$as_ac_Header=yes" |
| 6811 | else |
| 6812 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6813 | cat conftest.$ac_ext >&5 |
| 6814 | eval "$as_ac_Header=no" |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6815 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6816 | rm -f conftest.$ac_objext conftest.$ac_ext |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6817 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6818 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6819 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6820 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6821 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6822 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6823 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6824 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6825 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6826 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 6827 | done |
| 6828 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6829 | |
| 6830 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6831 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6832 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6833 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6834 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 6835 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 6836 | then |
Francois Gouget | 42dcd97 | 2002-01-29 17:52:28 +0000 | [diff] [blame] | 6837 | 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] | 6838 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6839 | { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6840 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
| 6841 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 6842 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} |
| 6843 | { (exit 1); exit 1; }; } |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 6844 | fi |
| 6845 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6846 | |
| 6847 | |
| 6848 | for ac_header in GL/gl.h GL/glx.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6849 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6850 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6851 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6852 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6853 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6854 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6856 | fi |
| 6857 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6858 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6859 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6860 | # Is the header compilable? |
| 6861 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6862 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6863 | cat >conftest.$ac_ext <<_ACEOF |
| 6864 | #line $LINENO "configure" |
| 6865 | #include "confdefs.h" |
| 6866 | $ac_includes_default |
| 6867 | #include <$ac_header> |
| 6868 | _ACEOF |
| 6869 | rm -f conftest.$ac_objext |
| 6870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6871 | (eval $ac_compile) 2>&5 |
| 6872 | ac_status=$? |
| 6873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6874 | (exit $ac_status); } && |
| 6875 | { ac_try='test -s conftest.$ac_objext' |
| 6876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6877 | (eval $ac_try) 2>&5 |
| 6878 | ac_status=$? |
| 6879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6880 | (exit $ac_status); }; }; then |
| 6881 | ac_header_compiler=yes |
| 6882 | else |
| 6883 | echo "$as_me: failed program was:" >&5 |
| 6884 | cat conftest.$ac_ext >&5 |
| 6885 | ac_header_compiler=no |
| 6886 | fi |
| 6887 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6888 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6889 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6890 | |
| 6891 | # Is the header present? |
| 6892 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6893 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6894 | cat >conftest.$ac_ext <<_ACEOF |
| 6895 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6896 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6897 | #include <$ac_header> |
| 6898 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6899 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6900 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6901 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6902 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6903 | rm -f conftest.er1 |
| 6904 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6906 | (exit $ac_status); } >/dev/null; then |
| 6907 | if test -s conftest.err; then |
| 6908 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6909 | else |
| 6910 | ac_cpp_err= |
| 6911 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6912 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6913 | ac_cpp_err=yes |
| 6914 | fi |
| 6915 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6916 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6917 | else |
| 6918 | echo "$as_me: failed program was:" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6919 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6920 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6921 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6922 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6923 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6924 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6925 | |
| 6926 | # So? What about this header? |
| 6927 | case $ac_header_compiler:$ac_header_preproc in |
| 6928 | yes:no ) |
| 6929 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6930 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6931 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6932 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 6933 | no:yes ) |
| 6934 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6935 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6936 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6937 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6938 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6939 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 6940 | esac |
| 6941 | echo "$as_me:$LINENO: 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 |
| 6945 | else |
| 6946 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6947 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6949 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6950 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6951 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6952 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6953 | cat >>confdefs.h <<_ACEOF |
| 6954 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6955 | _ACEOF |
| 6956 | |
| 6957 | fi |
| 6958 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6959 | done |
| 6960 | |
Marcus Meissner | 22a969b | 2000-08-08 20:46:50 +0000 | [diff] [blame] | 6961 | 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] | 6962 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6963 | |
| 6964 | for ac_header in GL/glext.h |
| 6965 | do |
| 6966 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6967 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6968 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6969 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6971 | else |
| 6972 | cat >conftest.$ac_ext <<_ACEOF |
| 6973 | #line $LINENO "configure" |
| 6974 | #include "confdefs.h" |
| 6975 | #include <GL/glx.h> |
| 6976 | |
| 6977 | #include <$ac_header> |
| 6978 | _ACEOF |
| 6979 | rm -f conftest.$ac_objext |
| 6980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6981 | (eval $ac_compile) 2>&5 |
| 6982 | ac_status=$? |
| 6983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6984 | (exit $ac_status); } && |
| 6985 | { ac_try='test -s conftest.$ac_objext' |
| 6986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6987 | (eval $ac_try) 2>&5 |
| 6988 | ac_status=$? |
| 6989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6990 | (exit $ac_status); }; }; then |
| 6991 | eval "$as_ac_Header=yes" |
| 6992 | else |
| 6993 | echo "$as_me: failed program was:" >&5 |
| 6994 | cat conftest.$ac_ext >&5 |
| 6995 | eval "$as_ac_Header=no" |
| 6996 | fi |
| 6997 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6998 | fi |
| 6999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7000 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7001 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7002 | cat >>confdefs.h <<_ACEOF |
| 7003 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7004 | _ACEOF |
| 7005 | |
| 7006 | fi |
| 7007 | |
| 7008 | done |
| 7009 | |
| 7010 | echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7011 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6 |
| 7012 | if test "${wine_cv_opengl_version_OK+set}" = set; then |
| 7013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7014 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7015 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7016 | #line $LINENO "configure" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7017 | #include "confdefs.h" |
| 7018 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7019 | int |
| 7020 | main () |
| 7021 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7022 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7023 | ; |
| 7024 | return 0; |
| 7025 | } |
| 7026 | _ACEOF |
| 7027 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7029 | (eval $ac_compile) 2>&5 |
| 7030 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7032 | (exit $ac_status); } && |
| 7033 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7035 | (eval $ac_try) 2>&5 |
| 7036 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7038 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7039 | wine_cv_opengl_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7040 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7041 | echo "$as_me: failed program was:" >&5 |
| 7042 | cat conftest.$ac_ext >&5 |
| 7043 | wine_cv_opengl_version_OK="no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7044 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7045 | fi |
| 7046 | rm -f conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7047 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7048 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7049 | echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7050 | echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6 |
| 7051 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 7052 | if test "$wine_cv_opengl_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7053 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7054 | echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7055 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6 |
| 7056 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
| 7057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7058 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7059 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 7060 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7061 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7062 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7063 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7064 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7065 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7066 | #ifdef __cplusplus |
| 7067 | extern "C" |
| 7068 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7069 | /* 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] | 7070 | builtin and then its argument prototype would still apply. */ |
| 7071 | char glXCreateContext (); |
| 7072 | int |
| 7073 | main () |
| 7074 | { |
| 7075 | glXCreateContext (); |
| 7076 | ; |
| 7077 | return 0; |
| 7078 | } |
| 7079 | _ACEOF |
| 7080 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7082 | (eval $ac_link) 2>&5 |
| 7083 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7085 | (exit $ac_status); } && |
| 7086 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7088 | (eval $ac_try) 2>&5 |
| 7089 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7091 | (exit $ac_status); }; }; then |
| 7092 | ac_cv_lib_GL_glXCreateContext=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7093 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7094 | echo "$as_me: failed program was:" >&5 |
| 7095 | cat conftest.$ac_ext >&5 |
| 7096 | ac_cv_lib_GL_glXCreateContext=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7097 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7098 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7099 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7100 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7101 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7102 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6 |
| 7103 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 7104 | OPENGL_LIBS="-lGL" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7105 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7106 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7107 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7108 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 7109 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 7110 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 7111 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7112 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7113 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 7114 | #define HAVE_OPENGL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7115 | _ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 7116 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7117 | |
| 7118 | echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7119 | echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6 |
| 7120 | if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then |
| 7121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7122 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7123 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7124 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7125 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7126 | #line $LINENO "configure" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7127 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7128 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7129 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7130 | #ifdef __cplusplus |
| 7131 | extern "C" |
| 7132 | #endif |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7133 | /* 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] | 7134 | builtin and then its argument prototype would still apply. */ |
| 7135 | char glXGetProcAddressARB (); |
| 7136 | int |
| 7137 | main () |
| 7138 | { |
| 7139 | glXGetProcAddressARB (); |
| 7140 | ; |
| 7141 | return 0; |
| 7142 | } |
| 7143 | _ACEOF |
| 7144 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7146 | (eval $ac_link) 2>&5 |
| 7147 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7149 | (exit $ac_status); } && |
| 7150 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7152 | (eval $ac_try) 2>&5 |
| 7153 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7155 | (exit $ac_status); }; }; then |
| 7156 | ac_cv_lib_GL_glXGetProcAddressARB=yes |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7157 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7158 | echo "$as_me: failed program was:" >&5 |
| 7159 | cat conftest.$ac_ext >&5 |
| 7160 | ac_cv_lib_GL_glXGetProcAddressARB=no |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7161 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7162 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7163 | LIBS=$ac_check_lib_save_LIBS |
| 7164 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7165 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7166 | echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6 |
| 7167 | if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7168 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7169 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7170 | #define HAVE_GLX_GETPROCADDRESS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7171 | _ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7172 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7173 | fi |
| 7174 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7175 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 7176 | if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7177 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7178 | echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7179 | echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6 |
| 7180 | if test "${wine_cv_extension_prototypes+set}" = set; then |
| 7181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7182 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7183 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7184 | #line $LINENO "configure" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7185 | #include "confdefs.h" |
| 7186 | #include <GL/gl.h> |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 7187 | #ifdef HAVE_GL_GLEXT_H |
| 7188 | # include <GL/glext.h> |
| 7189 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7190 | |
| 7191 | int |
| 7192 | main () |
| 7193 | { |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7194 | PFNGLCOLORTABLEEXTPROC test_proc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7195 | ; |
| 7196 | return 0; |
| 7197 | } |
| 7198 | _ACEOF |
| 7199 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7201 | (eval $ac_compile) 2>&5 |
| 7202 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7204 | (exit $ac_status); } && |
| 7205 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7207 | (eval $ac_try) 2>&5 |
| 7208 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7210 | (exit $ac_status); }; }; then |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 7211 | wine_cv_extension_prototypes="yes" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7212 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7213 | echo "$as_me: failed program was:" >&5 |
| 7214 | cat conftest.$ac_ext >&5 |
| 7215 | wine_cv_extension_prototypes="no" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7216 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7217 | fi |
| 7218 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7219 | |
| 7220 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7221 | echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7222 | echo "${ECHO_T}$wine_cv_extension_prototypes" >&6 |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 7223 | if test "$wine_cv_extension_prototypes" = "yes" |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 7224 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7225 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7226 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 7227 | #define HAVE_GLEXT_PROTOTYPES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7228 | _ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 7229 | |
| 7230 | fi |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7231 | fi |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 7232 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7233 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7234 | echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7235 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6 |
| 7236 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
| 7237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7238 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7239 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 7240 | LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7241 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7242 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7243 | #line $LINENO "configure" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7244 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7245 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7246 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7247 | #ifdef __cplusplus |
| 7248 | extern "C" |
| 7249 | #endif |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7250 | /* 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] | 7251 | builtin and then its argument prototype would still apply. */ |
| 7252 | char gluLookAt (); |
| 7253 | int |
| 7254 | main () |
| 7255 | { |
| 7256 | gluLookAt (); |
| 7257 | ; |
| 7258 | return 0; |
| 7259 | } |
| 7260 | _ACEOF |
| 7261 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7263 | (eval $ac_link) 2>&5 |
| 7264 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7266 | (exit $ac_status); } && |
| 7267 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7269 | (eval $ac_try) 2>&5 |
| 7270 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7272 | (exit $ac_status); }; }; then |
| 7273 | ac_cv_lib_GLU_gluLookAt=yes |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7274 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7275 | echo "$as_me: failed program was:" >&5 |
| 7276 | cat conftest.$ac_ext >&5 |
| 7277 | ac_cv_lib_GLU_gluLookAt=no |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7278 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7279 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7280 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7281 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7282 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7283 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6 |
| 7284 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 7285 | OPENGL_LIBS="$OPENGL_LIBS -lGLU" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7286 | GLU32FILES='$(GLU32FILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7287 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7288 | fi |
| 7289 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7290 | fi |
| 7291 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7292 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 7293 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 7294 | NASLIBS="" |
| 7295 | |
| 7296 | |
| 7297 | for ac_header in audio/audiolib.h |
| 7298 | do |
| 7299 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7300 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7301 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7305 | fi |
| 7306 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7307 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7308 | else |
| 7309 | # Is the header compilable? |
| 7310 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7311 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7312 | cat >conftest.$ac_ext <<_ACEOF |
| 7313 | #line $LINENO "configure" |
| 7314 | #include "confdefs.h" |
| 7315 | $ac_includes_default |
| 7316 | #include <$ac_header> |
| 7317 | _ACEOF |
| 7318 | rm -f conftest.$ac_objext |
| 7319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7320 | (eval $ac_compile) 2>&5 |
| 7321 | ac_status=$? |
| 7322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7323 | (exit $ac_status); } && |
| 7324 | { ac_try='test -s conftest.$ac_objext' |
| 7325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7326 | (eval $ac_try) 2>&5 |
| 7327 | ac_status=$? |
| 7328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7329 | (exit $ac_status); }; }; then |
| 7330 | ac_header_compiler=yes |
| 7331 | else |
| 7332 | echo "$as_me: failed program was:" >&5 |
| 7333 | cat conftest.$ac_ext >&5 |
| 7334 | ac_header_compiler=no |
| 7335 | fi |
| 7336 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7337 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7338 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7339 | |
| 7340 | # Is the header present? |
| 7341 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7342 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7343 | cat >conftest.$ac_ext <<_ACEOF |
| 7344 | #line $LINENO "configure" |
| 7345 | #include "confdefs.h" |
| 7346 | #include <$ac_header> |
| 7347 | _ACEOF |
| 7348 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7349 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7350 | ac_status=$? |
| 7351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7352 | rm -f conftest.er1 |
| 7353 | cat conftest.err >&5 |
| 7354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7355 | (exit $ac_status); } >/dev/null; then |
| 7356 | if test -s conftest.err; then |
| 7357 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7358 | else |
| 7359 | ac_cpp_err= |
| 7360 | fi |
| 7361 | else |
| 7362 | ac_cpp_err=yes |
| 7363 | fi |
| 7364 | if test -z "$ac_cpp_err"; then |
| 7365 | ac_header_preproc=yes |
| 7366 | else |
| 7367 | echo "$as_me: failed program was:" >&5 |
| 7368 | cat conftest.$ac_ext >&5 |
| 7369 | ac_header_preproc=no |
| 7370 | fi |
| 7371 | rm -f conftest.err conftest.$ac_ext |
| 7372 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7373 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7374 | |
| 7375 | # So? What about this header? |
| 7376 | case $ac_header_compiler:$ac_header_preproc in |
| 7377 | yes:no ) |
| 7378 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7379 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7380 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7381 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 7382 | no:yes ) |
| 7383 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7384 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7385 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7386 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7387 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7388 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 7389 | esac |
| 7390 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7391 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7392 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7394 | else |
| 7395 | eval "$as_ac_Header=$ac_header_preproc" |
| 7396 | fi |
| 7397 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7398 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7399 | |
| 7400 | fi |
| 7401 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7402 | cat >>confdefs.h <<_ACEOF |
| 7403 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7404 | _ACEOF |
| 7405 | |
| 7406 | for ac_header in audio/soundlib.h |
| 7407 | do |
| 7408 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7409 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7410 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7411 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7413 | else |
| 7414 | cat >conftest.$ac_ext <<_ACEOF |
| 7415 | #line $LINENO "configure" |
| 7416 | #include "confdefs.h" |
| 7417 | #include <audio/audiolib.h> |
| 7418 | |
| 7419 | #include <$ac_header> |
| 7420 | _ACEOF |
| 7421 | rm -f conftest.$ac_objext |
| 7422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7423 | (eval $ac_compile) 2>&5 |
| 7424 | ac_status=$? |
| 7425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7426 | (exit $ac_status); } && |
| 7427 | { ac_try='test -s conftest.$ac_objext' |
| 7428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7429 | (eval $ac_try) 2>&5 |
| 7430 | ac_status=$? |
| 7431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7432 | (exit $ac_status); }; }; then |
| 7433 | eval "$as_ac_Header=yes" |
| 7434 | else |
| 7435 | echo "$as_me: failed program was:" >&5 |
| 7436 | cat conftest.$ac_ext >&5 |
| 7437 | eval "$as_ac_Header=no" |
| 7438 | fi |
| 7439 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7440 | fi |
| 7441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7442 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7443 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7444 | cat >>confdefs.h <<_ACEOF |
| 7445 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7446 | _ACEOF |
| 7447 | |
| 7448 | fi |
| 7449 | |
| 7450 | done |
| 7451 | |
| 7452 | echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5 |
| 7453 | echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6 |
| 7454 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then |
| 7455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7456 | else |
| 7457 | ac_check_lib_save_LIBS=$LIBS |
| 7458 | LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 7459 | cat >conftest.$ac_ext <<_ACEOF |
| 7460 | #line $LINENO "configure" |
| 7461 | #include "confdefs.h" |
| 7462 | |
| 7463 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7464 | #ifdef __cplusplus |
| 7465 | extern "C" |
| 7466 | #endif |
| 7467 | /* We use char because int might match the return type of a gcc2 |
| 7468 | builtin and then its argument prototype would still apply. */ |
| 7469 | char AuCreateFlow (); |
| 7470 | int |
| 7471 | main () |
| 7472 | { |
| 7473 | AuCreateFlow (); |
| 7474 | ; |
| 7475 | return 0; |
| 7476 | } |
| 7477 | _ACEOF |
| 7478 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7480 | (eval $ac_link) 2>&5 |
| 7481 | ac_status=$? |
| 7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7483 | (exit $ac_status); } && |
| 7484 | { ac_try='test -s conftest$ac_exeext' |
| 7485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7486 | (eval $ac_try) 2>&5 |
| 7487 | ac_status=$? |
| 7488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7489 | (exit $ac_status); }; }; then |
| 7490 | ac_cv_lib_audio_AuCreateFlow=yes |
| 7491 | else |
| 7492 | echo "$as_me: failed program was:" >&5 |
| 7493 | cat conftest.$ac_ext >&5 |
| 7494 | ac_cv_lib_audio_AuCreateFlow=no |
| 7495 | fi |
| 7496 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7497 | LIBS=$ac_check_lib_save_LIBS |
| 7498 | fi |
| 7499 | echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
| 7500 | echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6 |
| 7501 | if test $ac_cv_lib_audio_AuCreateFlow = yes; then |
| 7502 | |
| 7503 | cat >>confdefs.h <<\_ACEOF |
| 7504 | #define HAVE_NAS 1 |
| 7505 | _ACEOF |
| 7506 | |
| 7507 | NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS" |
| 7508 | fi |
| 7509 | |
| 7510 | fi |
| 7511 | |
| 7512 | done |
| 7513 | |
| 7514 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 7515 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 7516 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 7517 | else |
| 7518 | XLIB="" |
| 7519 | X_CFLAGS="" |
| 7520 | X_LIBS="" |
| 7521 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 7522 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7523 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7524 | if test "x$with_curses" != "xno" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 7525 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7526 | |
| 7527 | for ac_header in ncurses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7528 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7529 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7530 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7531 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7532 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7533 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7535 | fi |
| 7536 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7537 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7538 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7539 | # Is the header compilable? |
| 7540 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7541 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7542 | cat >conftest.$ac_ext <<_ACEOF |
| 7543 | #line $LINENO "configure" |
| 7544 | #include "confdefs.h" |
| 7545 | $ac_includes_default |
| 7546 | #include <$ac_header> |
| 7547 | _ACEOF |
| 7548 | rm -f conftest.$ac_objext |
| 7549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7550 | (eval $ac_compile) 2>&5 |
| 7551 | ac_status=$? |
| 7552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7553 | (exit $ac_status); } && |
| 7554 | { ac_try='test -s conftest.$ac_objext' |
| 7555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7556 | (eval $ac_try) 2>&5 |
| 7557 | ac_status=$? |
| 7558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7559 | (exit $ac_status); }; }; then |
| 7560 | ac_header_compiler=yes |
| 7561 | else |
| 7562 | echo "$as_me: failed program was:" >&5 |
| 7563 | cat conftest.$ac_ext >&5 |
| 7564 | ac_header_compiler=no |
| 7565 | fi |
| 7566 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7567 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7568 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7569 | |
| 7570 | # Is the header present? |
| 7571 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7572 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7573 | cat >conftest.$ac_ext <<_ACEOF |
| 7574 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7575 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7576 | #include <$ac_header> |
| 7577 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7578 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7579 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7580 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7581 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7582 | rm -f conftest.er1 |
| 7583 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7585 | (exit $ac_status); } >/dev/null; then |
| 7586 | if test -s conftest.err; then |
| 7587 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7588 | else |
| 7589 | ac_cpp_err= |
| 7590 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7591 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7592 | ac_cpp_err=yes |
| 7593 | fi |
| 7594 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7595 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7596 | else |
| 7597 | echo "$as_me: failed program was:" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7598 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7599 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7600 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7601 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7602 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7603 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7604 | |
| 7605 | # So? What about this header? |
| 7606 | case $ac_header_compiler:$ac_header_preproc in |
| 7607 | yes:no ) |
| 7608 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7609 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7610 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7611 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 7612 | no:yes ) |
| 7613 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7614 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7615 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7616 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7617 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7618 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 7619 | esac |
| 7620 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7621 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7622 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7624 | else |
| 7625 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7626 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7627 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7628 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7629 | |
| 7630 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7631 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7632 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7633 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7634 | _ACEOF |
| 7635 | echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7636 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6 |
| 7637 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
| 7638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7639 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7640 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7641 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7642 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7643 | #line $LINENO "configure" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7644 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7645 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7646 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7647 | #ifdef __cplusplus |
| 7648 | extern "C" |
| 7649 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7650 | /* 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] | 7651 | builtin and then its argument prototype would still apply. */ |
| 7652 | char waddch (); |
| 7653 | int |
| 7654 | main () |
| 7655 | { |
| 7656 | waddch (); |
| 7657 | ; |
| 7658 | return 0; |
| 7659 | } |
| 7660 | _ACEOF |
| 7661 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7663 | (eval $ac_link) 2>&5 |
| 7664 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7666 | (exit $ac_status); } && |
| 7667 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7669 | (eval $ac_try) 2>&5 |
| 7670 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7672 | (exit $ac_status); }; }; then |
| 7673 | ac_cv_lib_ncurses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7674 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7675 | echo "$as_me: failed program was:" >&5 |
| 7676 | cat conftest.$ac_ext >&5 |
| 7677 | ac_cv_lib_ncurses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7678 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7679 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7680 | LIBS=$ac_check_lib_save_LIBS |
| 7681 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7682 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7683 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6 |
| 7684 | if test $ac_cv_lib_ncurses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7685 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7686 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7687 | #define HAVE_LIBNCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7688 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7689 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7690 | CURSESLIBS="-lncurses" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7691 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7692 | |
| 7693 | for ac_header in curses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7694 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7695 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7696 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7697 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7698 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7699 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7701 | fi |
| 7702 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7703 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7704 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7705 | # Is the header compilable? |
| 7706 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7707 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7708 | cat >conftest.$ac_ext <<_ACEOF |
| 7709 | #line $LINENO "configure" |
| 7710 | #include "confdefs.h" |
| 7711 | $ac_includes_default |
| 7712 | #include <$ac_header> |
| 7713 | _ACEOF |
| 7714 | rm -f conftest.$ac_objext |
| 7715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7716 | (eval $ac_compile) 2>&5 |
| 7717 | ac_status=$? |
| 7718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7719 | (exit $ac_status); } && |
| 7720 | { ac_try='test -s conftest.$ac_objext' |
| 7721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7722 | (eval $ac_try) 2>&5 |
| 7723 | ac_status=$? |
| 7724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7725 | (exit $ac_status); }; }; then |
| 7726 | ac_header_compiler=yes |
| 7727 | else |
| 7728 | echo "$as_me: failed program was:" >&5 |
| 7729 | cat conftest.$ac_ext >&5 |
| 7730 | ac_header_compiler=no |
| 7731 | fi |
| 7732 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7733 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7734 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7735 | |
| 7736 | # Is the header present? |
| 7737 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7738 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7739 | cat >conftest.$ac_ext <<_ACEOF |
| 7740 | #line $LINENO "configure" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7741 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7742 | #include <$ac_header> |
| 7743 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7744 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7745 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7746 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7747 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7748 | rm -f conftest.er1 |
| 7749 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7751 | (exit $ac_status); } >/dev/null; then |
| 7752 | if test -s conftest.err; then |
| 7753 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7754 | else |
| 7755 | ac_cpp_err= |
| 7756 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7757 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7758 | ac_cpp_err=yes |
| 7759 | fi |
| 7760 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7761 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7762 | else |
| 7763 | echo "$as_me: failed program was:" >&5 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7764 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7765 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7766 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7767 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7768 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7769 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7770 | |
| 7771 | # So? What about this header? |
| 7772 | case $ac_header_compiler:$ac_header_preproc in |
| 7773 | yes:no ) |
| 7774 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7775 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7776 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7777 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 7778 | no:yes ) |
| 7779 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7780 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7781 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7782 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7783 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7784 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 7785 | esac |
| 7786 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7787 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7788 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7790 | else |
| 7791 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7792 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7794 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7795 | |
| 7796 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7798 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7799 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7800 | _ACEOF |
| 7801 | echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7802 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6 |
| 7803 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
| 7804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7805 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7806 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7807 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7808 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7809 | #line $LINENO "configure" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7810 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7811 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7812 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7813 | #ifdef __cplusplus |
| 7814 | extern "C" |
| 7815 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7816 | /* 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] | 7817 | builtin and then its argument prototype would still apply. */ |
| 7818 | char waddch (); |
| 7819 | int |
| 7820 | main () |
| 7821 | { |
| 7822 | waddch (); |
| 7823 | ; |
| 7824 | return 0; |
| 7825 | } |
| 7826 | _ACEOF |
| 7827 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7829 | (eval $ac_link) 2>&5 |
| 7830 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7832 | (exit $ac_status); } && |
| 7833 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7835 | (eval $ac_try) 2>&5 |
| 7836 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7838 | (exit $ac_status); }; }; then |
| 7839 | ac_cv_lib_curses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7840 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7841 | echo "$as_me: failed program was:" >&5 |
| 7842 | cat conftest.$ac_ext >&5 |
| 7843 | ac_cv_lib_curses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7844 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7845 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7846 | LIBS=$ac_check_lib_save_LIBS |
| 7847 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7848 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7849 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6 |
| 7850 | if test $ac_cv_lib_curses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7851 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7852 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7853 | #define HAVE_LIBCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7854 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7855 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7856 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7857 | fi |
| 7858 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7859 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7860 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7861 | done |
| 7862 | |
| 7863 | fi |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7864 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7865 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7866 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7867 | done |
| 7868 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7869 | saved_libs="$LIBS" |
| 7870 | LIBS="$CURSESLIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7871 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7872 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7873 | for ac_func in getbkgd resizeterm |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7874 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7875 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7876 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7877 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 7878 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 7879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7880 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7881 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7882 | #line $LINENO "configure" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7883 | #include "confdefs.h" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7884 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7885 | which can conflict with char $ac_func (); below. */ |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7886 | #include <assert.h> |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7887 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7888 | #ifdef __cplusplus |
| 7889 | extern "C" |
| 7890 | #endif |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7891 | /* 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] | 7892 | builtin and then its argument prototype would still apply. */ |
| 7893 | char $ac_func (); |
| 7894 | char (*f) (); |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7895 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7896 | int |
| 7897 | main () |
| 7898 | { |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7899 | /* The GNU C library defines this for functions which it implements |
| 7900 | to always fail with ENOSYS. Some functions are actually named |
| 7901 | something starting with __ and the normal name is an alias. */ |
| 7902 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 7903 | choke me |
| 7904 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7905 | f = $ac_func; |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7906 | #endif |
| 7907 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7908 | ; |
| 7909 | return 0; |
| 7910 | } |
| 7911 | _ACEOF |
| 7912 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7913 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7914 | (eval $ac_link) 2>&5 |
| 7915 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7917 | (exit $ac_status); } && |
| 7918 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7920 | (eval $ac_try) 2>&5 |
| 7921 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7923 | (exit $ac_status); }; }; then |
| 7924 | eval "$as_ac_var=yes" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7925 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7926 | echo "$as_me: failed program was:" >&5 |
| 7927 | cat conftest.$ac_ext >&5 |
| 7928 | eval "$as_ac_var=no" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7929 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7930 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7931 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7932 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7933 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 7934 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7935 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7936 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7937 | _ACEOF |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7938 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7939 | fi |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 7940 | done |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 7941 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 7942 | LIBS="$saved_libs" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 7943 | fi |
| 7944 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7945 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 7946 | # Extract the first word of "sane-config", so it can be a program name with args. |
| 7947 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7948 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 7949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7950 | if test "${ac_cv_prog_sane_devel+set}" = set; then |
| 7951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7952 | else |
| 7953 | if test -n "$sane_devel"; then |
| 7954 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 7955 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7957 | for as_dir in $PATH |
| 7958 | do |
| 7959 | IFS=$as_save_IFS |
| 7960 | test -z "$as_dir" && as_dir=. |
| 7961 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7962 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7963 | ac_cv_prog_sane_devel="sane-config" |
| 7964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7965 | break 2 |
| 7966 | fi |
| 7967 | done |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 7968 | done |
| 7969 | |
| 7970 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 7971 | fi |
| 7972 | fi |
| 7973 | sane_devel=$ac_cv_prog_sane_devel |
| 7974 | if test -n "$sane_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7975 | echo "$as_me:$LINENO: result: $sane_devel" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 7976 | echo "${ECHO_T}$sane_devel" >&6 |
| 7977 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7978 | echo "$as_me:$LINENO: result: no" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 7979 | echo "${ECHO_T}no" >&6 |
| 7980 | fi |
| 7981 | |
| 7982 | if test "$sane_devel" = "no" |
| 7983 | then |
| 7984 | SANELIBS="" |
| 7985 | SANEINCL="" |
| 7986 | else |
| 7987 | SANELIBS="`$sane_devel --libs`" |
| 7988 | SANEINCL="`$sane_devel --cflags`" |
| 7989 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 7990 | ac_save_LIBS="$LIBS" |
| 7991 | CPPFLAGS="$CPPFLAGS $SANEINCL" |
| 7992 | LIBS="$LIBS $SANELIBS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7993 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 7994 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 7995 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 7996 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 7997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7998 | fi |
| 7999 | echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 8000 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8001 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8002 | # Is the header compilable? |
| 8003 | echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 |
| 8004 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6 |
| 8005 | cat >conftest.$ac_ext <<_ACEOF |
| 8006 | #line $LINENO "configure" |
| 8007 | #include "confdefs.h" |
| 8008 | $ac_includes_default |
| 8009 | #include <sane/sane.h> |
| 8010 | _ACEOF |
| 8011 | rm -f conftest.$ac_objext |
| 8012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8013 | (eval $ac_compile) 2>&5 |
| 8014 | ac_status=$? |
| 8015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8016 | (exit $ac_status); } && |
| 8017 | { ac_try='test -s conftest.$ac_objext' |
| 8018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8019 | (eval $ac_try) 2>&5 |
| 8020 | ac_status=$? |
| 8021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8022 | (exit $ac_status); }; }; then |
| 8023 | ac_header_compiler=yes |
| 8024 | else |
| 8025 | echo "$as_me: failed program was:" >&5 |
| 8026 | cat conftest.$ac_ext >&5 |
| 8027 | ac_header_compiler=no |
| 8028 | fi |
| 8029 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8030 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8031 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8032 | |
| 8033 | # Is the header present? |
| 8034 | echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 |
| 8035 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6 |
| 8036 | cat >conftest.$ac_ext <<_ACEOF |
| 8037 | #line $LINENO "configure" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8038 | #include "confdefs.h" |
| 8039 | #include <sane/sane.h> |
| 8040 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8041 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8042 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8043 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8044 | grep -v '^ *+' conftest.er1 >conftest.err |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8045 | rm -f conftest.er1 |
| 8046 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8048 | (exit $ac_status); } >/dev/null; then |
| 8049 | if test -s conftest.err; then |
| 8050 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8051 | else |
| 8052 | ac_cpp_err= |
| 8053 | fi |
| 8054 | else |
| 8055 | ac_cpp_err=yes |
| 8056 | fi |
| 8057 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8058 | ac_header_preproc=yes |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8059 | else |
| 8060 | echo "$as_me: failed program was:" >&5 |
| 8061 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8062 | ac_header_preproc=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8063 | fi |
| 8064 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8065 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8066 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8067 | |
| 8068 | # So? What about this header? |
| 8069 | case $ac_header_compiler:$ac_header_preproc in |
| 8070 | yes:no ) |
| 8071 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8072 | echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8073 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5 |
| 8074 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};; |
| 8075 | no:yes ) |
| 8076 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 |
| 8077 | echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;} |
| 8078 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 |
| 8079 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} |
| 8080 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5 |
| 8081 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};; |
| 8082 | esac |
| 8083 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 8084 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 8085 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 8086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8087 | else |
| 8088 | ac_cv_header_sane_sane_h=$ac_header_preproc |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8089 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8090 | echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8091 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8092 | |
| 8093 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8094 | if test $ac_cv_header_sane_sane_h = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8095 | echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8096 | echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6 |
| 8097 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then |
| 8098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8099 | else |
| 8100 | ac_check_lib_save_LIBS=$LIBS |
| 8101 | LIBS="-lsane $LIBS" |
| 8102 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8103 | #line $LINENO "configure" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8104 | #include "confdefs.h" |
| 8105 | |
| 8106 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8107 | #ifdef __cplusplus |
| 8108 | extern "C" |
| 8109 | #endif |
| 8110 | /* We use char because int might match the return type of a gcc2 |
| 8111 | builtin and then its argument prototype would still apply. */ |
| 8112 | char sane_open (); |
| 8113 | int |
| 8114 | main () |
| 8115 | { |
| 8116 | sane_open (); |
| 8117 | ; |
| 8118 | return 0; |
| 8119 | } |
| 8120 | _ACEOF |
| 8121 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8123 | (eval $ac_link) 2>&5 |
| 8124 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8126 | (exit $ac_status); } && |
| 8127 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8129 | (eval $ac_try) 2>&5 |
| 8130 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8132 | (exit $ac_status); }; }; then |
| 8133 | ac_cv_lib_sane_sane_open=yes |
| 8134 | else |
| 8135 | echo "$as_me: failed program was:" >&5 |
| 8136 | cat conftest.$ac_ext >&5 |
| 8137 | ac_cv_lib_sane_sane_open=no |
| 8138 | fi |
| 8139 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8140 | LIBS=$ac_check_lib_save_LIBS |
| 8141 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8142 | echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8143 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6 |
| 8144 | if test $ac_cv_lib_sane_sane_open = yes; then |
| 8145 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8146 | cat >>confdefs.h <<\_ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8147 | #define HAVE_SANE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8148 | _ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8149 | |
| 8150 | else |
| 8151 | SANELIBS="" |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 8152 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8153 | fi |
| 8154 | |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 8155 | else |
| 8156 | SANELIBS="" |
| 8157 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8158 | fi |
| 8159 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8160 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8161 | LIBS="$ac_save_LIBS" |
| 8162 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 8163 | fi |
| 8164 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8165 | |
| 8166 | |
| 8167 | echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8168 | echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6 |
| 8169 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 8170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8171 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8172 | ac_check_lib_save_LIBS=$LIBS |
Dmitry Timoshkov | 8871a11 | 2001-11-06 22:26:53 +0000 | [diff] [blame] | 8173 | LIBS="-lfreetype $X_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8174 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8175 | #line $LINENO "configure" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8176 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8177 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8178 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8179 | #ifdef __cplusplus |
| 8180 | extern "C" |
| 8181 | #endif |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8182 | /* 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] | 8183 | builtin and then its argument prototype would still apply. */ |
| 8184 | char FT_Init_FreeType (); |
| 8185 | int |
| 8186 | main () |
| 8187 | { |
| 8188 | FT_Init_FreeType (); |
| 8189 | ; |
| 8190 | return 0; |
| 8191 | } |
| 8192 | _ACEOF |
| 8193 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8195 | (eval $ac_link) 2>&5 |
| 8196 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8198 | (exit $ac_status); } && |
| 8199 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8201 | (eval $ac_try) 2>&5 |
| 8202 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8204 | (exit $ac_status); }; }; then |
| 8205 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8206 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8207 | echo "$as_me: failed program was:" >&5 |
| 8208 | cat conftest.$ac_ext >&5 |
| 8209 | ac_cv_lib_freetype_FT_Init_FreeType=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8210 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8211 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8212 | LIBS=$ac_check_lib_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8213 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8214 | echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8215 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6 |
| 8216 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8217 | ft_lib=yes |
| 8218 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8219 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8220 | fi |
| 8221 | |
| 8222 | if test "$ft_lib" = "no" |
| 8223 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8224 | FREETYPEINCL="" |
| 8225 | wine_cv_msg_freetype=no |
| 8226 | else |
| 8227 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 8228 | set dummy freetype-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8229 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8230 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8231 | if test "${ac_cv_prog_ft_devel+set}" = set; then |
| 8232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8233 | else |
| 8234 | if test -n "$ft_devel"; then |
| 8235 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 8236 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8238 | for as_dir in $PATH |
| 8239 | do |
| 8240 | IFS=$as_save_IFS |
| 8241 | test -z "$as_dir" && as_dir=. |
| 8242 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8243 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8244 | ac_cv_prog_ft_devel="freetype-config" |
| 8245 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8246 | break 2 |
| 8247 | fi |
| 8248 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8249 | done |
| 8250 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8251 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 8252 | fi |
| 8253 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8254 | ft_devel=$ac_cv_prog_ft_devel |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8255 | if test -n "$ft_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8256 | echo "$as_me:$LINENO: result: $ft_devel" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8257 | echo "${ECHO_T}$ft_devel" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8258 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8259 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8260 | echo "${ECHO_T}no" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8261 | fi |
| 8262 | |
| 8263 | if test "$ft_devel" = "no" |
| 8264 | then |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8265 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 8266 | set dummy freetype2-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8267 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8269 | if test "${ac_cv_prog_ft_devel2+set}" = set; then |
| 8270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8271 | else |
| 8272 | if test -n "$ft_devel2"; then |
| 8273 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 8274 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8276 | for as_dir in $PATH |
| 8277 | do |
| 8278 | IFS=$as_save_IFS |
| 8279 | test -z "$as_dir" && as_dir=. |
| 8280 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8281 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8282 | ac_cv_prog_ft_devel2="freetype2-config" |
| 8283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8284 | break 2 |
| 8285 | fi |
| 8286 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8287 | done |
| 8288 | |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8289 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 8290 | fi |
| 8291 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8292 | ft_devel2=$ac_cv_prog_ft_devel2 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8293 | if test -n "$ft_devel2"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8294 | echo "$as_me:$LINENO: result: $ft_devel2" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8295 | echo "${ECHO_T}$ft_devel2" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8296 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8297 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8298 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8299 | fi |
| 8300 | |
| 8301 | if test "$ft_devel2" = "freetype2-config" |
| 8302 | then |
| 8303 | ft_devel=$ft_devel2 |
| 8304 | fi |
| 8305 | fi |
| 8306 | if test "$ft_devel" = "no" |
| 8307 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8308 | FREETYPEINCL="" |
| 8309 | wine_cv_msg_freetype=yes |
| 8310 | else |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8311 | FREETYPEINCL=`$ft_devel --cflags` |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8312 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 8313 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8314 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8315 | |
| 8316 | |
| 8317 | |
| 8318 | |
| 8319 | |
| 8320 | |
| 8321 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8322 | for ac_header in freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8323 | freetype/ftglyph.h \ |
| 8324 | freetype/tttables.h \ |
| 8325 | freetype/ftnames.h \ |
| 8326 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 8327 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 8328 | freetype/ftoutln.h \ |
| 8329 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8330 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8331 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8332 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8333 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8334 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8335 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8337 | fi |
| 8338 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8339 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8340 | else |
| 8341 | # Is the header compilable? |
| 8342 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8343 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8344 | cat >conftest.$ac_ext <<_ACEOF |
| 8345 | #line $LINENO "configure" |
| 8346 | #include "confdefs.h" |
| 8347 | $ac_includes_default |
| 8348 | #include <$ac_header> |
| 8349 | _ACEOF |
| 8350 | rm -f conftest.$ac_objext |
| 8351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8352 | (eval $ac_compile) 2>&5 |
| 8353 | ac_status=$? |
| 8354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8355 | (exit $ac_status); } && |
| 8356 | { ac_try='test -s conftest.$ac_objext' |
| 8357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8358 | (eval $ac_try) 2>&5 |
| 8359 | ac_status=$? |
| 8360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8361 | (exit $ac_status); }; }; then |
| 8362 | ac_header_compiler=yes |
| 8363 | else |
| 8364 | echo "$as_me: failed program was:" >&5 |
| 8365 | cat conftest.$ac_ext >&5 |
| 8366 | ac_header_compiler=no |
| 8367 | fi |
| 8368 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8369 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8370 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8371 | |
| 8372 | # Is the header present? |
| 8373 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8374 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8375 | cat >conftest.$ac_ext <<_ACEOF |
| 8376 | #line $LINENO "configure" |
| 8377 | #include "confdefs.h" |
| 8378 | #include <$ac_header> |
| 8379 | _ACEOF |
| 8380 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8381 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8382 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8383 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8384 | rm -f conftest.er1 |
| 8385 | cat conftest.err >&5 |
| 8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8387 | (exit $ac_status); } >/dev/null; then |
| 8388 | if test -s conftest.err; then |
| 8389 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8390 | else |
| 8391 | ac_cpp_err= |
| 8392 | fi |
| 8393 | else |
| 8394 | ac_cpp_err=yes |
| 8395 | fi |
| 8396 | if test -z "$ac_cpp_err"; then |
| 8397 | ac_header_preproc=yes |
| 8398 | else |
| 8399 | echo "$as_me: failed program was:" >&5 |
| 8400 | cat conftest.$ac_ext >&5 |
| 8401 | ac_header_preproc=no |
| 8402 | fi |
| 8403 | rm -f conftest.err conftest.$ac_ext |
| 8404 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8405 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8406 | |
| 8407 | # So? What about this header? |
| 8408 | case $ac_header_compiler:$ac_header_preproc in |
| 8409 | yes:no ) |
| 8410 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8411 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8412 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8413 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 8414 | no:yes ) |
| 8415 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8416 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8417 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8418 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8419 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8420 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 8421 | esac |
| 8422 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8423 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8424 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8426 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8427 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8428 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8429 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8430 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8431 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8432 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8433 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8434 | cat >>confdefs.h <<_ACEOF |
| 8435 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8436 | _ACEOF |
| 8437 | |
| 8438 | fi |
| 8439 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8440 | done |
| 8441 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8442 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8443 | #line $LINENO "configure" |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 8444 | #include "confdefs.h" |
| 8445 | #include <ft2build.h> |
| 8446 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8447 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8448 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8449 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8450 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8451 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8452 | rm -f conftest.er1 |
| 8453 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8455 | (exit $ac_status); } >/dev/null; then |
| 8456 | if test -s conftest.err; then |
| 8457 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8458 | else |
| 8459 | ac_cpp_err= |
| 8460 | fi |
| 8461 | else |
| 8462 | ac_cpp_err=yes |
| 8463 | fi |
| 8464 | if test -z "$ac_cpp_err"; then |
| 8465 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8466 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 8467 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8468 | _ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 8469 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 8470 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 8471 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8472 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 8473 | cat conftest.$ac_ext >&5 |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 8474 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 8475 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8476 | rm -f conftest.err conftest.$ac_ext |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 8477 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 8478 | 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] | 8479 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8480 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8481 | cat >>confdefs.h <<\_ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 8482 | #define HAVE_FREETYPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8483 | _ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 8484 | |
| 8485 | wine_cv_msg_freetype=no |
| 8486 | else |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 8487 | FREETYPEINCL="" |
| 8488 | wine_cv_msg_freetype=yes |
| 8489 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8490 | fi |
| 8491 | fi |
| 8492 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8493 | |
| 8494 | echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8495 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6 |
| 8496 | if test "${ac_cv_c_ppdev+set}" = set; then |
| 8497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8498 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8499 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8500 | #line $LINENO "configure" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8501 | #include "confdefs.h" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8502 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8503 | int |
| 8504 | main () |
| 8505 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8506 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8507 | ; |
| 8508 | return 0; |
| 8509 | } |
| 8510 | _ACEOF |
| 8511 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8513 | (eval $ac_compile) 2>&5 |
| 8514 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8516 | (exit $ac_status); } && |
| 8517 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8519 | (eval $ac_try) 2>&5 |
| 8520 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8522 | (exit $ac_status); }; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8523 | ac_cv_c_ppdev="yes" |
| 8524 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8525 | echo "$as_me: failed program was:" >&5 |
| 8526 | cat conftest.$ac_ext >&5 |
| 8527 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8528 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8529 | rm -f conftest.$ac_objext conftest.$ac_ext |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8530 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8531 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8532 | echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8533 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8534 | if test "$ac_cv_c_ppdev" = "yes" |
| 8535 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8536 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8537 | cat >>confdefs.h <<\_ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8538 | #define HAVE_PPDEV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8539 | _ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8540 | |
| 8541 | fi |
| 8542 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 8543 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
| 8544 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 |
| 8545 | if test "${ac_cv_c_va_copy+set}" = set; then |
| 8546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8547 | else |
| 8548 | cat >conftest.$ac_ext <<_ACEOF |
| 8549 | #line $LINENO "configure" |
| 8550 | #include "confdefs.h" |
| 8551 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 8552 | int |
| 8553 | main () |
| 8554 | { |
| 8555 | va_list ap1, ap2; |
| 8556 | va_copy(ap1,ap2); |
| 8557 | |
| 8558 | ; |
| 8559 | return 0; |
| 8560 | } |
| 8561 | _ACEOF |
| 8562 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8564 | (eval $ac_link) 2>&5 |
| 8565 | ac_status=$? |
| 8566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8567 | (exit $ac_status); } && |
| 8568 | { ac_try='test -s conftest$ac_exeext' |
| 8569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8570 | (eval $ac_try) 2>&5 |
| 8571 | ac_status=$? |
| 8572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8573 | (exit $ac_status); }; }; then |
| 8574 | ac_cv_c_va_copy="yes" |
| 8575 | else |
| 8576 | echo "$as_me: failed program was:" >&5 |
| 8577 | cat conftest.$ac_ext >&5 |
| 8578 | ac_cv_c_va_copy="no" |
| 8579 | fi |
| 8580 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8581 | |
| 8582 | fi |
| 8583 | echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
| 8584 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6 |
| 8585 | if test "$ac_cv_c_va_copy" = "yes" |
| 8586 | then |
| 8587 | |
| 8588 | cat >>confdefs.h <<\_ACEOF |
| 8589 | #define HAVE_VA_COPY 1 |
| 8590 | _ACEOF |
| 8591 | |
| 8592 | fi |
| 8593 | echo "$as_me:$LINENO: checking for __va_copy" >&5 |
| 8594 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6 |
| 8595 | if test "${ac_cv_c___va_copy+set}" = set; then |
| 8596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8597 | else |
| 8598 | cat >conftest.$ac_ext <<_ACEOF |
| 8599 | #line $LINENO "configure" |
| 8600 | #include "confdefs.h" |
| 8601 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 8602 | int |
| 8603 | main () |
| 8604 | { |
| 8605 | va_list ap1, ap2; |
| 8606 | __va_copy(ap1,ap2); |
| 8607 | |
| 8608 | ; |
| 8609 | return 0; |
| 8610 | } |
| 8611 | _ACEOF |
| 8612 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8614 | (eval $ac_link) 2>&5 |
| 8615 | ac_status=$? |
| 8616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8617 | (exit $ac_status); } && |
| 8618 | { ac_try='test -s conftest$ac_exeext' |
| 8619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8620 | (eval $ac_try) 2>&5 |
| 8621 | ac_status=$? |
| 8622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8623 | (exit $ac_status); }; }; then |
| 8624 | ac_cv_c___va_copy="yes" |
| 8625 | else |
| 8626 | echo "$as_me: failed program was:" >&5 |
| 8627 | cat conftest.$ac_ext >&5 |
| 8628 | ac_cv_c___va_copy="no" |
| 8629 | fi |
| 8630 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8631 | |
| 8632 | fi |
| 8633 | echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
| 8634 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6 |
| 8635 | if test "$ac_cv_c___va_copy" = "yes" |
| 8636 | then |
| 8637 | |
| 8638 | cat >>confdefs.h <<\_ACEOF |
| 8639 | #define HAVE___VA_COPY 1 |
| 8640 | _ACEOF |
| 8641 | |
| 8642 | fi |
| 8643 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8644 | echo "$as_me:$LINENO: checking for GNU style IPX support" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8645 | echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6 |
| 8646 | if test "${ac_cv_c_ipx_gnu+set}" = set; then |
| 8647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8648 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8649 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8650 | #line $LINENO "configure" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 8651 | #include "confdefs.h" |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 8652 | #include <sys/types.h> |
| 8653 | #ifdef HAVE_SYS_SOCKET_H |
| 8654 | # include <sys/socket.h> |
| 8655 | #endif |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8656 | #include <netipx/ipx.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8657 | int |
| 8658 | main () |
| 8659 | { |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8660 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8661 | ; |
| 8662 | return 0; |
| 8663 | } |
| 8664 | _ACEOF |
| 8665 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8667 | (eval $ac_compile) 2>&5 |
| 8668 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8670 | (exit $ac_status); } && |
| 8671 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8673 | (eval $ac_try) 2>&5 |
| 8674 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8676 | (exit $ac_status); }; }; then |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8677 | ac_cv_c_ipx_gnu="yes" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8678 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8679 | echo "$as_me: failed program was:" >&5 |
| 8680 | cat conftest.$ac_ext >&5 |
| 8681 | ac_cv_c_ipx_gnu="no" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8682 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8683 | rm -f conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8684 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8685 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8686 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8687 | echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6 |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8688 | if test "$ac_cv_c_ipx_gnu" = "yes" |
| 8689 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8690 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8691 | cat >>confdefs.h <<\_ACEOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8692 | #define HAVE_IPX_GNU 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8693 | _ACEOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8694 | |
| 8695 | fi |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8696 | |
| 8697 | if test "$ac_cv_c_ipx_gnu" = "no" |
| 8698 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8699 | echo "$as_me:$LINENO: checking for linux style IPX support" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8700 | echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6 |
| 8701 | if test "${ac_cv_c_ipx_linux+set}" = set; then |
| 8702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8703 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8704 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8705 | #line $LINENO "configure" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8706 | #include "confdefs.h" |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 8707 | #include <sys/types.h> |
| 8708 | #ifdef HAVE_SYS_SOCKET_H |
| 8709 | # include <sys/socket.h> |
| 8710 | #endif |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8711 | #include <asm/types.h> |
| 8712 | #include <linux/ipx.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8713 | int |
| 8714 | main () |
| 8715 | { |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8716 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8717 | ; |
| 8718 | return 0; |
| 8719 | } |
| 8720 | _ACEOF |
| 8721 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8723 | (eval $ac_compile) 2>&5 |
| 8724 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8726 | (exit $ac_status); } && |
| 8727 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8729 | (eval $ac_try) 2>&5 |
| 8730 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8732 | (exit $ac_status); }; }; then |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8733 | ac_cv_c_ipx_linux="yes" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8734 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8735 | echo "$as_me: failed program was:" >&5 |
| 8736 | cat conftest.$ac_ext >&5 |
| 8737 | ac_cv_c_ipx_linux="no" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8738 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8739 | rm -f conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8740 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8741 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8742 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8743 | echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6 |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8744 | if test "$ac_cv_c_ipx_linux" = "yes" |
| 8745 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8746 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8747 | cat >>confdefs.h <<\_ACEOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8748 | #define HAVE_IPX_LINUX 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8749 | _ACEOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 8750 | |
| 8751 | fi |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 8752 | fi |
| 8753 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8754 | |
| 8755 | |
| 8756 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8757 | for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8758 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8759 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8760 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8761 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8762 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8763 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8765 | fi |
| 8766 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8767 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8768 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8769 | # Is the header compilable? |
| 8770 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8771 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8772 | cat >conftest.$ac_ext <<_ACEOF |
| 8773 | #line $LINENO "configure" |
| 8774 | #include "confdefs.h" |
| 8775 | $ac_includes_default |
| 8776 | #include <$ac_header> |
| 8777 | _ACEOF |
| 8778 | rm -f conftest.$ac_objext |
| 8779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8780 | (eval $ac_compile) 2>&5 |
| 8781 | ac_status=$? |
| 8782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8783 | (exit $ac_status); } && |
| 8784 | { ac_try='test -s conftest.$ac_objext' |
| 8785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8786 | (eval $ac_try) 2>&5 |
| 8787 | ac_status=$? |
| 8788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8789 | (exit $ac_status); }; }; then |
| 8790 | ac_header_compiler=yes |
| 8791 | else |
| 8792 | echo "$as_me: failed program was:" >&5 |
| 8793 | cat conftest.$ac_ext >&5 |
| 8794 | ac_header_compiler=no |
| 8795 | fi |
| 8796 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8797 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8798 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8799 | |
| 8800 | # Is the header present? |
| 8801 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8802 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8803 | cat >conftest.$ac_ext <<_ACEOF |
| 8804 | #line $LINENO "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8805 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8806 | #include <$ac_header> |
| 8807 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8808 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8809 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8810 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8811 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8812 | rm -f conftest.er1 |
| 8813 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8815 | (exit $ac_status); } >/dev/null; then |
| 8816 | if test -s conftest.err; then |
| 8817 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8818 | else |
| 8819 | ac_cpp_err= |
| 8820 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8821 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8822 | ac_cpp_err=yes |
| 8823 | fi |
| 8824 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8825 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8826 | else |
| 8827 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8828 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8829 | ac_header_preproc=no |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8830 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8831 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8832 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8833 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8834 | |
| 8835 | # So? What about this header? |
| 8836 | case $ac_header_compiler:$ac_header_preproc in |
| 8837 | yes:no ) |
| 8838 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8839 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8840 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8841 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 8842 | no:yes ) |
| 8843 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8844 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8845 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8846 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8847 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8848 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 8849 | esac |
| 8850 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8851 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8852 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8854 | else |
| 8855 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8856 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8857 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8858 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8859 | |
| 8860 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8861 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8862 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8863 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8864 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 8865 | break |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8866 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8867 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8868 | done |
| 8869 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8870 | |
| 8871 | echo "$as_me:$LINENO: checking for Open Sound System" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8872 | echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6 |
| 8873 | if test "${ac_cv_c_opensoundsystem+set}" = set; then |
| 8874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8875 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8876 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8877 | #line $LINENO "configure" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8878 | #include "confdefs.h" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8879 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 8880 | #if defined(HAVE_SYS_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8881 | #include <sys/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 8882 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8883 | #include <machine/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 8884 | #elif defined(HAVE_SOUNDCARD_H) |
| 8885 | #include <soundcard.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8886 | #endif |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8887 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8888 | int |
| 8889 | main () |
| 8890 | { |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 8891 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8892 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 8893 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
| 8894 | #if !defined(SNDCTL_DSP_STEREO) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8895 | #error No open sound system |
| 8896 | #endif |
| 8897 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8898 | ; |
| 8899 | return 0; |
| 8900 | } |
| 8901 | _ACEOF |
| 8902 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8904 | (eval $ac_compile) 2>&5 |
| 8905 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8907 | (exit $ac_status); } && |
| 8908 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8910 | (eval $ac_try) 2>&5 |
| 8911 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8913 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8914 | ac_cv_c_opensoundsystem="yes" |
| 8915 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8916 | echo "$as_me: failed program was:" >&5 |
| 8917 | cat conftest.$ac_ext >&5 |
| 8918 | ac_cv_c_opensoundsystem="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8919 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8920 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8921 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8922 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8923 | echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 8924 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 8925 | if test "$ac_cv_c_opensoundsystem" = "yes" |
| 8926 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8927 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8928 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 8929 | #define HAVE_OSS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8930 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 8931 | |
| 8932 | fi |
| 8933 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8934 | echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8935 | echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6 |
| 8936 | if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then |
| 8937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8938 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8939 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8940 | #line $LINENO "configure" |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8941 | #include "confdefs.h" |
| 8942 | |
| 8943 | #if defined(HAVE_SYS_SOUNDCARD_H) |
| 8944 | #include <sys/soundcard.h> |
| 8945 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
| 8946 | #include <machine/soundcard.h> |
| 8947 | #elif defined(HAVE_SOUNDCARD_H) |
| 8948 | #include <soundcard.h> |
| 8949 | #endif |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8950 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8951 | int |
| 8952 | main () |
| 8953 | { |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8954 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8955 | |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8956 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ |
| 8957 | #if !defined(SNDCTL_SEQ_SYNC) |
| 8958 | #error No open sound system MIDI interface |
| 8959 | #endif |
| 8960 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8961 | ; |
| 8962 | return 0; |
| 8963 | } |
| 8964 | _ACEOF |
| 8965 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8967 | (eval $ac_compile) 2>&5 |
| 8968 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8970 | (exit $ac_status); } && |
| 8971 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8973 | (eval $ac_try) 2>&5 |
| 8974 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8976 | (exit $ac_status); }; }; then |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8977 | ac_cv_c_opensoundsystem_midi="yes" |
| 8978 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8979 | echo "$as_me: failed program was:" >&5 |
| 8980 | cat conftest.$ac_ext >&5 |
| 8981 | ac_cv_c_opensoundsystem_midi="no" |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8982 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8983 | rm -f conftest.$ac_objext conftest.$ac_ext |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8984 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8985 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8986 | echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8987 | |
| 8988 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" |
| 8989 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8990 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8991 | cat >>confdefs.h <<\_ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8992 | #define HAVE_OSS_MIDI 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8993 | _ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 8994 | |
| 8995 | fi |
| 8996 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 8997 | # Extract the first word of "artsc-config", so it can be a program name with args. |
| 8998 | set dummy artsc-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8999 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9001 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then |
| 9002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9003 | else |
| 9004 | case $ARTSCCONFIG in |
| 9005 | [\\/]* | ?:[\\/]*) |
| 9006 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. |
| 9007 | ;; |
| 9008 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9010 | for as_dir in $PATH |
| 9011 | do |
| 9012 | IFS=$as_save_IFS |
| 9013 | test -z "$as_dir" && as_dir=. |
| 9014 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9015 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9016 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9017 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9018 | break 2 |
| 9019 | fi |
| 9020 | done |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9021 | done |
| 9022 | |
| 9023 | ;; |
| 9024 | esac |
| 9025 | fi |
| 9026 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG |
| 9027 | |
| 9028 | if test -n "$ARTSCCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9029 | echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9030 | echo "${ECHO_T}$ARTSCCONFIG" >&6 |
| 9031 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9032 | echo "$as_me:$LINENO: result: no" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9033 | echo "${ECHO_T}no" >&6 |
| 9034 | fi |
| 9035 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9036 | echo "$as_me:$LINENO: checking for aRts Sound server" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9037 | echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6 |
| 9038 | if test "${ac_cv_c_artsserver+set}" = set; then |
| 9039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9040 | else |
| 9041 | if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"'; |
| 9042 | then |
| 9043 | ac_cv_c_artsserver=no |
| 9044 | else |
| 9045 | ARTSC_CFLAGS=`$ARTSCCONFIG --cflags` |
| 9046 | ARTSC_LIBS=`$ARTSCCONFIG --libs` |
| 9047 | ac_cv_c_artsserver=no |
| 9048 | save_CFLAGS="$CFLAGS" |
| 9049 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
| 9050 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9051 | #line $LINENO "configure" |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9052 | #include "confdefs.h" |
| 9053 | |
| 9054 | #include <artsc.h> |
| 9055 | |
| 9056 | int |
| 9057 | main () |
| 9058 | { |
| 9059 | |
| 9060 | arts_stream_t stream; |
| 9061 | |
| 9062 | ; |
| 9063 | return 0; |
| 9064 | } |
| 9065 | _ACEOF |
| 9066 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9068 | (eval $ac_compile) 2>&5 |
| 9069 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9071 | (exit $ac_status); } && |
| 9072 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9074 | (eval $ac_try) 2>&5 |
| 9075 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9077 | (exit $ac_status); }; }; then |
| 9078 | |
| 9079 | ac_cv_c_artsserver=yes |
| 9080 | |
| 9081 | else |
| 9082 | echo "$as_me: failed program was:" >&5 |
| 9083 | cat conftest.$ac_ext >&5 |
| 9084 | fi |
| 9085 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9086 | CFLAGS="$save_CFLAGS" |
| 9087 | fi |
| 9088 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9089 | echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9090 | echo "${ECHO_T}$ac_cv_c_artsserver" >&6 |
| 9091 | |
| 9092 | if test "$ac_cv_c_artsserver" = "yes" |
| 9093 | then |
| 9094 | ARTSLIBS=$ARTSC_LIBS |
| 9095 | |
| 9096 | ARTSINCL=$ARTSC_CFLAGS |
| 9097 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9098 | |
| 9099 | |
| 9100 | cat >>confdefs.h <<\_ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9101 | #define HAVE_ARTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9102 | _ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9103 | |
| 9104 | fi |
| 9105 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 9106 | ALSALIBS="" |
| 9107 | |
| 9108 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 9109 | |
| 9110 | for ac_header in alsa/asoundlib.h sys/asoundlib.h |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 9111 | do |
| 9112 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9113 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9114 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9115 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9116 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9118 | fi |
| 9119 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9120 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9121 | else |
| 9122 | # Is the header compilable? |
| 9123 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9124 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9125 | cat >conftest.$ac_ext <<_ACEOF |
| 9126 | #line $LINENO "configure" |
| 9127 | #include "confdefs.h" |
| 9128 | $ac_includes_default |
| 9129 | #include <$ac_header> |
| 9130 | _ACEOF |
| 9131 | rm -f conftest.$ac_objext |
| 9132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9133 | (eval $ac_compile) 2>&5 |
| 9134 | ac_status=$? |
| 9135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9136 | (exit $ac_status); } && |
| 9137 | { ac_try='test -s conftest.$ac_objext' |
| 9138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9139 | (eval $ac_try) 2>&5 |
| 9140 | ac_status=$? |
| 9141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9142 | (exit $ac_status); }; }; then |
| 9143 | ac_header_compiler=yes |
| 9144 | else |
| 9145 | echo "$as_me: failed program was:" >&5 |
| 9146 | cat conftest.$ac_ext >&5 |
| 9147 | ac_header_compiler=no |
| 9148 | fi |
| 9149 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9150 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9151 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9152 | |
| 9153 | # Is the header present? |
| 9154 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9155 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9156 | cat >conftest.$ac_ext <<_ACEOF |
| 9157 | #line $LINENO "configure" |
| 9158 | #include "confdefs.h" |
| 9159 | #include <$ac_header> |
| 9160 | _ACEOF |
| 9161 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9162 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9163 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9164 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 9165 | rm -f conftest.er1 |
| 9166 | cat conftest.err >&5 |
| 9167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9168 | (exit $ac_status); } >/dev/null; then |
| 9169 | if test -s conftest.err; then |
| 9170 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9171 | else |
| 9172 | ac_cpp_err= |
| 9173 | fi |
| 9174 | else |
| 9175 | ac_cpp_err=yes |
| 9176 | fi |
| 9177 | if test -z "$ac_cpp_err"; then |
| 9178 | ac_header_preproc=yes |
| 9179 | else |
| 9180 | echo "$as_me: failed program was:" >&5 |
| 9181 | cat conftest.$ac_ext >&5 |
| 9182 | ac_header_preproc=no |
| 9183 | fi |
| 9184 | rm -f conftest.err conftest.$ac_ext |
| 9185 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9186 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9187 | |
| 9188 | # So? What about this header? |
| 9189 | case $ac_header_compiler:$ac_header_preproc in |
| 9190 | yes:no ) |
| 9191 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9192 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9193 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9194 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 9195 | no:yes ) |
| 9196 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9197 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9198 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9199 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9200 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9201 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 9202 | esac |
| 9203 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9204 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9205 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9207 | else |
| 9208 | eval "$as_ac_Header=$ac_header_preproc" |
| 9209 | fi |
| 9210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9212 | |
| 9213 | fi |
| 9214 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9215 | cat >>confdefs.h <<_ACEOF |
| 9216 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9217 | _ACEOF |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 9218 | break |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 9219 | fi |
| 9220 | |
| 9221 | done |
| 9222 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 9223 | if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes" |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 9224 | then |
| 9225 | echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5 |
| 9226 | echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6 |
| 9227 | if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then |
| 9228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9229 | else |
| 9230 | ac_check_lib_save_LIBS=$LIBS |
| 9231 | LIBS="-lasound $LIBS" |
| 9232 | cat >conftest.$ac_ext <<_ACEOF |
| 9233 | #line $LINENO "configure" |
| 9234 | #include "confdefs.h" |
| 9235 | |
| 9236 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9237 | #ifdef __cplusplus |
| 9238 | extern "C" |
| 9239 | #endif |
| 9240 | /* We use char because int might match the return type of a gcc2 |
| 9241 | builtin and then its argument prototype would still apply. */ |
| 9242 | char snd_pcm_open (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 9243 | int |
| 9244 | main () |
| 9245 | { |
| 9246 | snd_pcm_open (); |
| 9247 | ; |
| 9248 | return 0; |
| 9249 | } |
| 9250 | _ACEOF |
| 9251 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9253 | (eval $ac_link) 2>&5 |
| 9254 | ac_status=$? |
| 9255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9256 | (exit $ac_status); } && |
| 9257 | { ac_try='test -s conftest$ac_exeext' |
| 9258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9259 | (eval $ac_try) 2>&5 |
| 9260 | ac_status=$? |
| 9261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9262 | (exit $ac_status); }; }; then |
| 9263 | ac_cv_lib_asound_snd_pcm_open=yes |
| 9264 | else |
| 9265 | echo "$as_me: failed program was:" >&5 |
| 9266 | cat conftest.$ac_ext >&5 |
| 9267 | ac_cv_lib_asound_snd_pcm_open=no |
| 9268 | fi |
| 9269 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9270 | LIBS=$ac_check_lib_save_LIBS |
| 9271 | fi |
| 9272 | echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5 |
| 9273 | echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6 |
| 9274 | if test $ac_cv_lib_asound_snd_pcm_open = yes; then |
| 9275 | |
| 9276 | cat >>confdefs.h <<\_ACEOF |
| 9277 | #define HAVE_ALSA 1 |
| 9278 | _ACEOF |
| 9279 | |
| 9280 | ALSALIBS="-lasound" |
| 9281 | fi |
| 9282 | |
| 9283 | fi |
| 9284 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9285 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 9286 | AUDIOIOLIBS="" |
| 9287 | |
| 9288 | |
| 9289 | for ac_header in libaudioio.h |
| 9290 | do |
| 9291 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9292 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9293 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9295 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9297 | fi |
| 9298 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9299 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9300 | else |
| 9301 | # Is the header compilable? |
| 9302 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9303 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9304 | cat >conftest.$ac_ext <<_ACEOF |
| 9305 | #line $LINENO "configure" |
| 9306 | #include "confdefs.h" |
| 9307 | $ac_includes_default |
| 9308 | #include <$ac_header> |
| 9309 | _ACEOF |
| 9310 | rm -f conftest.$ac_objext |
| 9311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9312 | (eval $ac_compile) 2>&5 |
| 9313 | ac_status=$? |
| 9314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9315 | (exit $ac_status); } && |
| 9316 | { ac_try='test -s conftest.$ac_objext' |
| 9317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9318 | (eval $ac_try) 2>&5 |
| 9319 | ac_status=$? |
| 9320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9321 | (exit $ac_status); }; }; then |
| 9322 | ac_header_compiler=yes |
| 9323 | else |
| 9324 | echo "$as_me: failed program was:" >&5 |
| 9325 | cat conftest.$ac_ext >&5 |
| 9326 | ac_header_compiler=no |
| 9327 | fi |
| 9328 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9329 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9330 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9331 | |
| 9332 | # Is the header present? |
| 9333 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9334 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9335 | cat >conftest.$ac_ext <<_ACEOF |
| 9336 | #line $LINENO "configure" |
| 9337 | #include "confdefs.h" |
| 9338 | #include <$ac_header> |
| 9339 | _ACEOF |
| 9340 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9341 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9342 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9343 | grep -v '^ *+' conftest.er1 >conftest.err |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 9344 | rm -f conftest.er1 |
| 9345 | cat conftest.err >&5 |
| 9346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9347 | (exit $ac_status); } >/dev/null; then |
| 9348 | if test -s conftest.err; then |
| 9349 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9350 | else |
| 9351 | ac_cpp_err= |
| 9352 | fi |
| 9353 | else |
| 9354 | ac_cpp_err=yes |
| 9355 | fi |
| 9356 | if test -z "$ac_cpp_err"; then |
| 9357 | ac_header_preproc=yes |
| 9358 | else |
| 9359 | echo "$as_me: failed program was:" >&5 |
| 9360 | cat conftest.$ac_ext >&5 |
| 9361 | ac_header_preproc=no |
| 9362 | fi |
| 9363 | rm -f conftest.err conftest.$ac_ext |
| 9364 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9365 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9366 | |
| 9367 | # So? What about this header? |
| 9368 | case $ac_header_compiler:$ac_header_preproc in |
| 9369 | yes:no ) |
| 9370 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9371 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9372 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9373 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 9374 | no:yes ) |
| 9375 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9376 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9377 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9378 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9379 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9380 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 9381 | esac |
| 9382 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9383 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9384 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9386 | else |
| 9387 | eval "$as_ac_Header=$ac_header_preproc" |
| 9388 | fi |
| 9389 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9390 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9391 | |
| 9392 | fi |
| 9393 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9394 | cat >>confdefs.h <<_ACEOF |
| 9395 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9396 | _ACEOF |
| 9397 | echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5 |
| 9398 | echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6 |
| 9399 | if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then |
| 9400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9401 | else |
| 9402 | ac_check_lib_save_LIBS=$LIBS |
| 9403 | LIBS="-laudioio $LIBS" |
| 9404 | cat >conftest.$ac_ext <<_ACEOF |
| 9405 | #line $LINENO "configure" |
| 9406 | #include "confdefs.h" |
| 9407 | |
| 9408 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9409 | #ifdef __cplusplus |
| 9410 | extern "C" |
| 9411 | #endif |
| 9412 | /* We use char because int might match the return type of a gcc2 |
| 9413 | builtin and then its argument prototype would still apply. */ |
| 9414 | char AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 9415 | int |
| 9416 | main () |
| 9417 | { |
| 9418 | AudioIOGetVersion (); |
| 9419 | ; |
| 9420 | return 0; |
| 9421 | } |
| 9422 | _ACEOF |
| 9423 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9425 | (eval $ac_link) 2>&5 |
| 9426 | ac_status=$? |
| 9427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9428 | (exit $ac_status); } && |
| 9429 | { ac_try='test -s conftest$ac_exeext' |
| 9430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9431 | (eval $ac_try) 2>&5 |
| 9432 | ac_status=$? |
| 9433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9434 | (exit $ac_status); }; }; then |
| 9435 | ac_cv_lib_audioio_AudioIOGetVersion=yes |
| 9436 | else |
| 9437 | echo "$as_me: failed program was:" >&5 |
| 9438 | cat conftest.$ac_ext >&5 |
| 9439 | ac_cv_lib_audioio_AudioIOGetVersion=no |
| 9440 | fi |
| 9441 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9442 | LIBS=$ac_check_lib_save_LIBS |
| 9443 | fi |
| 9444 | echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5 |
| 9445 | echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6 |
| 9446 | if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then |
| 9447 | AUDIOIOLIBS="-laudioio" |
| 9448 | |
| 9449 | cat >>confdefs.h <<\_ACEOF |
| 9450 | #define HAVE_LIBAUDIOIO 1 |
| 9451 | _ACEOF |
| 9452 | |
| 9453 | fi |
| 9454 | |
| 9455 | fi |
| 9456 | |
| 9457 | done |
| 9458 | |
| 9459 | |
| 9460 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9461 | echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9462 | echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6 |
| 9463 | if test "${ac_cv_mmap64_works+set}" = set; then |
| 9464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9465 | else |
| 9466 | if test "$cross_compiling" = yes; then |
| 9467 | ac_cv_mmap64_works="no" |
| 9468 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9469 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9470 | #line $LINENO "configure" |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9471 | #include "confdefs.h" |
| 9472 | |
| 9473 | #define _FILE_OFFSET_BITS 64 |
| 9474 | #include <stdio.h> |
| 9475 | #include <unistd.h> |
| 9476 | #include <fcntl.h> |
| 9477 | #include <sys/mman.h> |
| 9478 | #include <errno.h> |
| 9479 | |
| 9480 | int main(int argc,char **argv) { |
| 9481 | int fd = open("conftest.map",O_CREAT|O_RDWR,0600); |
| 9482 | if (fd == -1) exit(1); |
| 9483 | |
| 9484 | unlink("conftest.map"); |
| 9485 | |
| 9486 | write(fd,"test",4); |
| 9487 | |
| 9488 | if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) && |
| 9489 | (errno == EINVAL) |
| 9490 | ) { |
| 9491 | exit(1); |
| 9492 | } |
| 9493 | close(fd); |
| 9494 | fprintf(stderr,"success!\n"); |
| 9495 | exit(0); |
| 9496 | } |
| 9497 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9498 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9499 | _ACEOF |
| 9500 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9502 | (eval $ac_link) 2>&5 |
| 9503 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9505 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9507 | (eval $ac_try) 2>&5 |
| 9508 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9510 | (exit $ac_status); }; }; then |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9511 | ac_cv_mmap64_works="yes" |
| 9512 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9513 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9514 | echo "$as_me: failed program was:" >&5 |
| 9515 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9516 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9517 | ac_cv_mmap64_works="no" |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9518 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9519 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9520 | fi |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9521 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9522 | echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9523 | echo "${ECHO_T}$ac_cv_mmap64_works" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9524 | |
| 9525 | if test "$ac_cv_mmap64_works" = "yes" |
| 9526 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9527 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9528 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9529 | #define _FILE_OFFSET_BITS 64 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9530 | _ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 9531 | |
| 9532 | fi |
| 9533 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9534 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9535 | if test "x${GCC}" = "xyes" |
| 9536 | then |
| 9537 | CFLAGS="$CFLAGS -Wall" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9538 | echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9539 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6 |
| 9540 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
| 9541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9542 | else |
| 9543 | if test "$cross_compiling" = yes; then |
| 9544 | ac_cv_c_gcc_strength_bug="yes" |
| 9545 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9546 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9547 | #line $LINENO "configure" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9548 | #include "confdefs.h" |
| 9549 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 9550 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9551 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 9552 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9553 | unsigned int B = 3; |
| 9554 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 9555 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 9556 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 9557 | L[i] = 4; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9558 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 9559 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9560 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9561 | _ACEOF |
| 9562 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9564 | (eval $ac_link) 2>&5 |
| 9565 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9567 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9569 | (eval $ac_try) 2>&5 |
| 9570 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9572 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9573 | ac_cv_c_gcc_strength_bug="no" |
| 9574 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9575 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9576 | echo "$as_me: failed program was:" >&5 |
| 9577 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9578 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9579 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9580 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9581 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9582 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9583 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9584 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9585 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9586 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 9587 | then |
| 9588 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 9589 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 9590 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9591 | echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9592 | echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6 |
| 9593 | if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then |
| 9594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 9595 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 9596 | ac_wine_try_cflags_saved=$CFLAGS |
| 9597 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 9598 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9599 | #line $LINENO "configure" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 9600 | #include "confdefs.h" |
| 9601 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9602 | int |
| 9603 | main () |
| 9604 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 9605 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9606 | ; |
| 9607 | return 0; |
| 9608 | } |
| 9609 | _ACEOF |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 9610 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9612 | (eval $ac_link) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9613 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9615 | (exit $ac_status); } && |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 9616 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9618 | (eval $ac_try) 2>&5 |
| 9619 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9621 | (exit $ac_status); }; }; then |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 9622 | ac_cv_c_gcc_stack_boundary="yes" |
| 9623 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9624 | echo "$as_me: failed program was:" >&5 |
| 9625 | cat conftest.$ac_ext >&5 |
| 9626 | ac_cv_c_gcc_stack_boundary="no" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 9627 | fi |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 9628 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9629 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9630 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9631 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9632 | echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 9633 | if test "$ac_cv_c_gcc_stack_boundary" = "yes" |
| 9634 | then |
| 9635 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 9636 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 9637 | fi |
| 9638 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9639 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9640 | echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5 |
| 9641 | echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6 |
| 9642 | if test "${ac_cv_asm_func_def+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 9644 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9645 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9646 | #line $LINENO "configure" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 9647 | #include "confdefs.h" |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 9648 | void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); } |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 9649 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9650 | int |
| 9651 | main () |
| 9652 | { |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 9653 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9654 | ; |
| 9655 | return 0; |
| 9656 | } |
| 9657 | _ACEOF |
| 9658 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9660 | (eval $ac_link) 2>&5 |
| 9661 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9663 | (exit $ac_status); } && |
| 9664 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9666 | (eval $ac_try) 2>&5 |
| 9667 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9669 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9670 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 9671 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9672 | echo "$as_me: failed program was:" >&5 |
| 9673 | cat conftest.$ac_ext >&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9674 | cat >conftest.$ac_ext <<_ACEOF |
| 9675 | #line $LINENO "configure" |
| 9676 | #include "confdefs.h" |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 9677 | void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); } |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9678 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9679 | int |
| 9680 | main () |
| 9681 | { |
| 9682 | |
| 9683 | ; |
| 9684 | return 0; |
| 9685 | } |
| 9686 | _ACEOF |
| 9687 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9689 | (eval $ac_link) 2>&5 |
| 9690 | ac_status=$? |
| 9691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9692 | (exit $ac_status); } && |
| 9693 | { ac_try='test -s conftest$ac_exeext' |
| 9694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9695 | (eval $ac_try) 2>&5 |
| 9696 | ac_status=$? |
| 9697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9698 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9699 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9700 | else |
| 9701 | echo "$as_me: failed program was:" >&5 |
| 9702 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9703 | cat >conftest.$ac_ext <<_ACEOF |
| 9704 | #line $LINENO "configure" |
| 9705 | #include "confdefs.h" |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 9706 | void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); } |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9707 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9708 | int |
| 9709 | main () |
| 9710 | { |
| 9711 | |
| 9712 | ; |
| 9713 | return 0; |
| 9714 | } |
| 9715 | _ACEOF |
| 9716 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9718 | (eval $ac_link) 2>&5 |
| 9719 | ac_status=$? |
| 9720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9721 | (exit $ac_status); } && |
| 9722 | { ac_try='test -s conftest$ac_exeext' |
| 9723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9724 | (eval $ac_try) 2>&5 |
| 9725 | ac_status=$? |
| 9726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9727 | (exit $ac_status); }; }; then |
| 9728 | ac_cv_asm_func_def=".type 2" |
| 9729 | else |
| 9730 | echo "$as_me: failed program was:" >&5 |
| 9731 | cat conftest.$ac_ext >&5 |
| 9732 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9733 | fi |
| 9734 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9735 | fi |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9736 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9737 | fi |
| 9738 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9739 | fi |
| 9740 | echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5 |
| 9741 | echo "${ECHO_T}$ac_cv_asm_func_def" >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9742 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9743 | |
| 9744 | |
| 9745 | case "$ac_cv_asm_func_def" in |
| 9746 | ".def") |
| 9747 | cat >>confdefs.h <<\_ACEOF |
| 9748 | #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9749 | _ACEOF |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9750 | ;; |
| 9751 | ".type @function") |
| 9752 | cat >>confdefs.h <<\_ACEOF |
| 9753 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function" |
| 9754 | _ACEOF |
| 9755 | ;; |
| 9756 | ".type 2") |
| 9757 | cat >>confdefs.h <<\_ACEOF |
| 9758 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2" |
| 9759 | _ACEOF |
| 9760 | ;; |
| 9761 | *) |
| 9762 | cat >>confdefs.h <<\_ACEOF |
| 9763 | #define __ASM_FUNC(name) "" |
| 9764 | _ACEOF |
| 9765 | ;; |
| 9766 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 9767 | |
| 9768 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9769 | echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9770 | echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6 |
| 9771 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
| 9772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 9773 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9774 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9775 | #line $LINENO "configure" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 9776 | #include "confdefs.h" |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 9777 | void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); } |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 9778 | extern int ac_test; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9779 | int |
| 9780 | main () |
| 9781 | { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 9782 | if (ac_test) return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9783 | ; |
| 9784 | return 0; |
| 9785 | } |
| 9786 | _ACEOF |
| 9787 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9789 | (eval $ac_link) 2>&5 |
| 9790 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9792 | (exit $ac_status); } && |
| 9793 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9795 | (eval $ac_try) 2>&5 |
| 9796 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9798 | (exit $ac_status); }; }; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 9799 | ac_cv_c_extern_prefix="yes" |
| 9800 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9801 | echo "$as_me: failed program was:" >&5 |
| 9802 | cat conftest.$ac_ext >&5 |
| 9803 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 9804 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9805 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 9806 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9807 | echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9808 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9809 | |
| 9810 | |
| 9811 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 9812 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 9813 | then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9814 | cat >>confdefs.h <<\_ACEOF |
| 9815 | #define __ASM_NAME(name) "_" name |
| 9816 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9817 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9818 | else |
| 9819 | cat >>confdefs.h <<\_ACEOF |
| 9820 | #define __ASM_NAME(name) name |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9821 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 9822 | |
| 9823 | fi |
| 9824 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9825 | |
| 9826 | echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9827 | echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6 |
| 9828 | if test "${ac_cv_c_stdcall_decoration+set}" = set; then |
| 9829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 9830 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9831 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9832 | #line $LINENO "configure" |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 9833 | #include "confdefs.h" |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 9834 | void ac_asm(void) { asm("\t.globl _ac_test@0\n_ac_test@0:\n\t.globl ac_test@0\nac_test@0:"); } |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 9835 | extern void __attribute__((__stdcall__)) ac_test(void); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9836 | int |
| 9837 | main () |
| 9838 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 9839 | ac_test() |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9840 | ; |
| 9841 | return 0; |
| 9842 | } |
| 9843 | _ACEOF |
| 9844 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9846 | (eval $ac_link) 2>&5 |
| 9847 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9849 | (exit $ac_status); } && |
| 9850 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9852 | (eval $ac_try) 2>&5 |
| 9853 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9855 | (exit $ac_status); }; }; then |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 9856 | ac_cv_c_stdcall_decoration="yes" |
| 9857 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9858 | echo "$as_me: failed program was:" >&5 |
| 9859 | cat conftest.$ac_ext >&5 |
| 9860 | ac_cv_c_stdcall_decoration="no" |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 9861 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9862 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 9863 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9864 | echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9865 | echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6 |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 9866 | if test "$ac_cv_c_stdcall_decoration" = "yes" |
| 9867 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9868 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9869 | cat >>confdefs.h <<\_ACEOF |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 9870 | #define NEED_STDCALL_DECORATION 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9871 | _ACEOF |
Dmitry Timoshkov | 93a5b86 | 2002-02-04 18:48:18 +0000 | [diff] [blame] | 9872 | |
| 9873 | fi |
| 9874 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9875 | |
| 9876 | echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9877 | echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6 |
| 9878 | if test "${ac_cv_c_asm_string+set}" = set; then |
| 9879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9880 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 9881 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9882 | #line $LINENO "configure" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9883 | #include "confdefs.h" |
Marcus Meissner | 49163d5 | 2002-08-20 00:26:40 +0000 | [diff] [blame] | 9884 | void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); } |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9885 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9886 | int |
| 9887 | main () |
| 9888 | { |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9889 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9890 | ; |
| 9891 | return 0; |
| 9892 | } |
| 9893 | _ACEOF |
| 9894 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9896 | (eval $ac_link) 2>&5 |
| 9897 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9899 | (exit $ac_status); } && |
| 9900 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9902 | (eval $ac_try) 2>&5 |
| 9903 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9905 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9906 | ac_cv_c_asm_string="yes" |
| 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_asm_string="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +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_exeext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9913 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9914 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9915 | echo "${ECHO_T}$ac_cv_c_asm_string" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9916 | if test "$ac_cv_c_asm_string" = "yes" |
| 9917 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9918 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9919 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9920 | #define HAVE_ASM_STRING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9921 | _ACEOF |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9922 | |
| 9923 | fi |
| 9924 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9925 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 9926 | DLLEXT="" |
| 9927 | |
| 9928 | DLLFLAGS="" |
| 9929 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 9930 | DLLIBS="" |
| 9931 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 9932 | LDDLLFLAGS="" |
| 9933 | |
| 9934 | LDSHARED="" |
| 9935 | |
| 9936 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 9937 | case $host_os in |
| 9938 | cygwin*|mingw32*) |
| 9939 | if test -n "$ac_tool_prefix"; then |
| 9940 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 9941 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 9942 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9944 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
| 9945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9946 | else |
| 9947 | if test -n "$DLLWRAP"; then |
| 9948 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 9949 | else |
| 9950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9951 | for as_dir in $PATH |
| 9952 | do |
| 9953 | IFS=$as_save_IFS |
| 9954 | test -z "$as_dir" && as_dir=. |
| 9955 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9956 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 9957 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 9958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9959 | break 2 |
| 9960 | fi |
| 9961 | done |
| 9962 | done |
| 9963 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 9964 | fi |
| 9965 | fi |
| 9966 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 9967 | if test -n "$DLLWRAP"; then |
| 9968 | echo "$as_me:$LINENO: result: $DLLWRAP" >&5 |
| 9969 | echo "${ECHO_T}$DLLWRAP" >&6 |
| 9970 | else |
| 9971 | echo "$as_me:$LINENO: result: no" >&5 |
| 9972 | echo "${ECHO_T}no" >&6 |
| 9973 | fi |
| 9974 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 9975 | fi |
| 9976 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 9977 | ac_ct_DLLWRAP=$DLLWRAP |
| 9978 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 9979 | set dummy dllwrap; ac_word=$2 |
| 9980 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9981 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9982 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then |
| 9983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9984 | else |
| 9985 | if test -n "$ac_ct_DLLWRAP"; then |
| 9986 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 9987 | else |
| 9988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9989 | for as_dir in $PATH |
| 9990 | do |
| 9991 | IFS=$as_save_IFS |
| 9992 | test -z "$as_dir" && as_dir=. |
| 9993 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9994 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9995 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
| 9996 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9997 | break 2 |
| 9998 | fi |
| 9999 | done |
| 10000 | done |
| 10001 | |
| 10002 | test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false" |
| 10003 | fi |
| 10004 | fi |
| 10005 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 10006 | if test -n "$ac_ct_DLLWRAP"; then |
| 10007 | echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 |
| 10008 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6 |
| 10009 | else |
| 10010 | echo "$as_me:$LINENO: result: no" >&5 |
| 10011 | echo "${ECHO_T}no" >&6 |
| 10012 | fi |
| 10013 | |
| 10014 | DLLWRAP=$ac_ct_DLLWRAP |
| 10015 | else |
| 10016 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 10017 | fi |
| 10018 | |
| 10019 | if test "$DLLWRAP" = "false"; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10020 | LIBEXT="a" |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10021 | else |
| 10022 | LIBEXT="dll" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10023 | fi |
| 10024 | ;; |
| 10025 | *) |
| 10026 | |
| 10027 | for ac_header in dlfcn.h |
| 10028 | do |
| 10029 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10030 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10031 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10032 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10033 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10035 | fi |
| 10036 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10037 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10038 | else |
| 10039 | # Is the header compilable? |
| 10040 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10041 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10042 | cat >conftest.$ac_ext <<_ACEOF |
| 10043 | #line $LINENO "configure" |
| 10044 | #include "confdefs.h" |
| 10045 | $ac_includes_default |
| 10046 | #include <$ac_header> |
| 10047 | _ACEOF |
| 10048 | rm -f conftest.$ac_objext |
| 10049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10050 | (eval $ac_compile) 2>&5 |
| 10051 | ac_status=$? |
| 10052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10053 | (exit $ac_status); } && |
| 10054 | { ac_try='test -s conftest.$ac_objext' |
| 10055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10056 | (eval $ac_try) 2>&5 |
| 10057 | ac_status=$? |
| 10058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10059 | (exit $ac_status); }; }; then |
| 10060 | ac_header_compiler=yes |
| 10061 | else |
| 10062 | echo "$as_me: failed program was:" >&5 |
| 10063 | cat conftest.$ac_ext >&5 |
| 10064 | ac_header_compiler=no |
| 10065 | fi |
| 10066 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10067 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10068 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10069 | |
| 10070 | # Is the header present? |
| 10071 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10072 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10073 | cat >conftest.$ac_ext <<_ACEOF |
| 10074 | #line $LINENO "configure" |
| 10075 | #include "confdefs.h" |
| 10076 | #include <$ac_header> |
| 10077 | _ACEOF |
| 10078 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10079 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10080 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10081 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10082 | rm -f conftest.er1 |
| 10083 | cat conftest.err >&5 |
| 10084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10085 | (exit $ac_status); } >/dev/null; then |
| 10086 | if test -s conftest.err; then |
| 10087 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10088 | else |
| 10089 | ac_cpp_err= |
| 10090 | fi |
| 10091 | else |
| 10092 | ac_cpp_err=yes |
| 10093 | fi |
| 10094 | if test -z "$ac_cpp_err"; then |
| 10095 | ac_header_preproc=yes |
| 10096 | else |
| 10097 | echo "$as_me: failed program was:" >&5 |
| 10098 | cat conftest.$ac_ext >&5 |
| 10099 | ac_header_preproc=no |
| 10100 | fi |
| 10101 | rm -f conftest.err conftest.$ac_ext |
| 10102 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10103 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10104 | |
| 10105 | # So? What about this header? |
| 10106 | case $ac_header_compiler:$ac_header_preproc in |
| 10107 | yes:no ) |
| 10108 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10109 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10111 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 10112 | no:yes ) |
| 10113 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10114 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10115 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10116 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10117 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10118 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 10119 | esac |
| 10120 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10121 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10122 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10124 | else |
| 10125 | eval "$as_ac_Header=$ac_header_preproc" |
| 10126 | fi |
| 10127 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10128 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10129 | |
| 10130 | fi |
| 10131 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10132 | cat >>confdefs.h <<_ACEOF |
| 10133 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10134 | _ACEOF |
| 10135 | |
| 10136 | for ac_func in dlopen |
| 10137 | do |
| 10138 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10139 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10140 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10141 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10143 | else |
| 10144 | cat >conftest.$ac_ext <<_ACEOF |
| 10145 | #line $LINENO "configure" |
| 10146 | #include "confdefs.h" |
| 10147 | /* System header to define __stub macros and hopefully few prototypes, |
| 10148 | which can conflict with char $ac_func (); below. */ |
| 10149 | #include <assert.h> |
| 10150 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10151 | #ifdef __cplusplus |
| 10152 | extern "C" |
| 10153 | #endif |
| 10154 | /* We use char because int might match the return type of a gcc2 |
| 10155 | builtin and then its argument prototype would still apply. */ |
| 10156 | char $ac_func (); |
| 10157 | char (*f) (); |
| 10158 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10159 | int |
| 10160 | main () |
| 10161 | { |
| 10162 | /* The GNU C library defines this for functions which it implements |
| 10163 | to always fail with ENOSYS. Some functions are actually named |
| 10164 | something starting with __ and the normal name is an alias. */ |
| 10165 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10166 | choke me |
| 10167 | #else |
| 10168 | f = $ac_func; |
| 10169 | #endif |
| 10170 | |
| 10171 | ; |
| 10172 | return 0; |
| 10173 | } |
| 10174 | _ACEOF |
| 10175 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10177 | (eval $ac_link) 2>&5 |
| 10178 | ac_status=$? |
| 10179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10180 | (exit $ac_status); } && |
| 10181 | { ac_try='test -s conftest$ac_exeext' |
| 10182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10183 | (eval $ac_try) 2>&5 |
| 10184 | ac_status=$? |
| 10185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10186 | (exit $ac_status); }; }; then |
| 10187 | eval "$as_ac_var=yes" |
| 10188 | else |
| 10189 | echo "$as_me: failed program was:" >&5 |
| 10190 | cat conftest.$ac_ext >&5 |
| 10191 | eval "$as_ac_var=no" |
| 10192 | fi |
| 10193 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10194 | fi |
| 10195 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10196 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10197 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10198 | cat >>confdefs.h <<_ACEOF |
| 10199 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10200 | _ACEOF |
| 10201 | |
| 10202 | else |
| 10203 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10204 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10205 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10207 | else |
| 10208 | ac_check_lib_save_LIBS=$LIBS |
| 10209 | LIBS="-ldl $LIBS" |
| 10210 | cat >conftest.$ac_ext <<_ACEOF |
| 10211 | #line $LINENO "configure" |
| 10212 | #include "confdefs.h" |
| 10213 | |
| 10214 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10215 | #ifdef __cplusplus |
| 10216 | extern "C" |
| 10217 | #endif |
| 10218 | /* We use char because int might match the return type of a gcc2 |
| 10219 | builtin and then its argument prototype would still apply. */ |
| 10220 | char dlopen (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10221 | int |
| 10222 | main () |
| 10223 | { |
| 10224 | dlopen (); |
| 10225 | ; |
| 10226 | return 0; |
| 10227 | } |
| 10228 | _ACEOF |
| 10229 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10231 | (eval $ac_link) 2>&5 |
| 10232 | ac_status=$? |
| 10233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10234 | (exit $ac_status); } && |
| 10235 | { ac_try='test -s conftest$ac_exeext' |
| 10236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10237 | (eval $ac_try) 2>&5 |
| 10238 | ac_status=$? |
| 10239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10240 | (exit $ac_status); }; }; then |
| 10241 | ac_cv_lib_dl_dlopen=yes |
| 10242 | else |
| 10243 | echo "$as_me: failed program was:" >&5 |
| 10244 | cat conftest.$ac_ext >&5 |
| 10245 | ac_cv_lib_dl_dlopen=no |
| 10246 | fi |
| 10247 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10248 | LIBS=$ac_check_lib_save_LIBS |
| 10249 | fi |
| 10250 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10251 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10252 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10253 | |
| 10254 | cat >>confdefs.h <<\_ACEOF |
| 10255 | #define HAVE_DLOPEN 1 |
| 10256 | _ACEOF |
| 10257 | |
| 10258 | DLLIBS="-ldl" |
| 10259 | else |
| 10260 | LIBEXT="a" |
| 10261 | fi |
| 10262 | |
| 10263 | fi |
| 10264 | done |
| 10265 | |
| 10266 | else |
| 10267 | LIBEXT="a" |
| 10268 | fi |
| 10269 | |
| 10270 | done |
| 10271 | |
| 10272 | |
| 10273 | if test "$LIBEXT" = "so" |
| 10274 | then |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 10275 | DLLFLAGS="-fPIC" |
| 10276 | DLLEXT=".so" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 10277 | echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10278 | echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6 |
| 10279 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then |
| 10280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 10281 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10282 | ac_wine_try_cflags_saved=$CFLAGS |
| 10283 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic" |
| 10284 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10285 | #line $LINENO "configure" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 10286 | #include "confdefs.h" |
| 10287 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10288 | int |
| 10289 | main () |
| 10290 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10291 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10292 | ; |
| 10293 | return 0; |
| 10294 | } |
| 10295 | _ACEOF |
| 10296 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10298 | (eval $ac_link) 2>&5 |
| 10299 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10301 | (exit $ac_status); } && |
| 10302 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10304 | (eval $ac_try) 2>&5 |
| 10305 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10307 | (exit $ac_status); }; }; then |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 10308 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 10309 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10310 | echo "$as_me: failed program was:" >&5 |
| 10311 | cat conftest.$ac_ext >&5 |
| 10312 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 10313 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10314 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10315 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10316 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10317 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10318 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 10319 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 10320 | then |
| 10321 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
| 10322 | LDDLLFLAGS="-Wl,-Bsymbolic" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 10323 | echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5 |
| 10324 | echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6 |
| 10325 | if test "${ac_cv_c_dll_zdefs+set}" = set; then |
| 10326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10327 | else |
| 10328 | ac_wine_try_cflags_saved=$CFLAGS |
| 10329 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
| 10330 | cat >conftest.$ac_ext <<_ACEOF |
| 10331 | #line $LINENO "configure" |
| 10332 | #include "confdefs.h" |
| 10333 | |
| 10334 | int |
| 10335 | main () |
| 10336 | { |
| 10337 | |
| 10338 | ; |
| 10339 | return 0; |
| 10340 | } |
| 10341 | _ACEOF |
| 10342 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10344 | (eval $ac_link) 2>&5 |
| 10345 | ac_status=$? |
| 10346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10347 | (exit $ac_status); } && |
| 10348 | { ac_try='test -s conftest$ac_exeext' |
| 10349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10350 | (eval $ac_try) 2>&5 |
| 10351 | ac_status=$? |
| 10352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10353 | (exit $ac_status); }; }; then |
| 10354 | ac_cv_c_dll_zdefs="yes" |
| 10355 | else |
| 10356 | echo "$as_me: failed program was:" >&5 |
| 10357 | cat conftest.$ac_ext >&5 |
| 10358 | ac_cv_c_dll_zdefs="no" |
| 10359 | fi |
| 10360 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10361 | CFLAGS=$ac_wine_try_cflags_saved |
| 10362 | fi |
| 10363 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5 |
| 10364 | echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6 |
| 10365 | if test "$ac_cv_c_dll_zdefs" = "yes" |
| 10366 | then |
| 10367 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
| 10368 | fi |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 10369 | else |
| 10370 | echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10371 | echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6 |
| 10372 | if test "${ac_cv_c_dll_unixware+set}" = set; then |
| 10373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 10374 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10375 | ac_wine_try_cflags_saved=$CFLAGS |
| 10376 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
| 10377 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10378 | #line $LINENO "configure" |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 10379 | #include "confdefs.h" |
| 10380 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10381 | int |
| 10382 | main () |
| 10383 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10384 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10385 | ; |
| 10386 | return 0; |
| 10387 | } |
| 10388 | _ACEOF |
| 10389 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10391 | (eval $ac_link) 2>&5 |
| 10392 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10394 | (exit $ac_status); } && |
| 10395 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10397 | (eval $ac_try) 2>&5 |
| 10398 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10400 | (exit $ac_status); }; }; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 10401 | ac_cv_c_dll_unixware="yes" |
| 10402 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10403 | echo "$as_me: failed program was:" >&5 |
| 10404 | cat conftest.$ac_ext >&5 |
| 10405 | ac_cv_c_dll_unixware="no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 10406 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10407 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10408 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10409 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10410 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10411 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 10412 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 10413 | then |
| 10414 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
| 10415 | LDDLLFLAGS="-Wl,-B,symbolic" |
| 10416 | fi |
| 10417 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10418 | fi |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 10419 | |
| 10420 | CROSSTEST="" |
| 10421 | |
| 10422 | if test "$cross_compiling" = "no" |
| 10423 | then |
| 10424 | for ac_prog in i586-mingw32msvc-gcc |
| 10425 | do |
| 10426 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10427 | set dummy $ac_prog; ac_word=$2 |
| 10428 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10430 | if test "${ac_cv_prog_CROSSCC+set}" = set; then |
| 10431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10432 | else |
| 10433 | if test -n "$CROSSCC"; then |
| 10434 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 10435 | else |
| 10436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10437 | for as_dir in $PATH |
| 10438 | do |
| 10439 | IFS=$as_save_IFS |
| 10440 | test -z "$as_dir" && as_dir=. |
| 10441 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10442 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10443 | ac_cv_prog_CROSSCC="$ac_prog" |
| 10444 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10445 | break 2 |
| 10446 | fi |
| 10447 | done |
| 10448 | done |
| 10449 | |
| 10450 | fi |
| 10451 | fi |
| 10452 | CROSSCC=$ac_cv_prog_CROSSCC |
| 10453 | if test -n "$CROSSCC"; then |
| 10454 | echo "$as_me:$LINENO: result: $CROSSCC" >&5 |
| 10455 | echo "${ECHO_T}$CROSSCC" >&6 |
| 10456 | else |
| 10457 | echo "$as_me:$LINENO: result: no" >&5 |
| 10458 | echo "${ECHO_T}no" >&6 |
| 10459 | fi |
| 10460 | |
| 10461 | test -n "$CROSSCC" && break |
| 10462 | done |
| 10463 | test -n "$CROSSCC" || CROSSCC="false" |
| 10464 | |
| 10465 | for ac_prog in i586-mingw32msvc-dlltool |
| 10466 | do |
| 10467 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10468 | set dummy $ac_prog; ac_word=$2 |
| 10469 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10470 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10471 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 10472 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10473 | else |
| 10474 | if test -n "$DLLTOOL"; then |
| 10475 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 10476 | else |
| 10477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10478 | for as_dir in $PATH |
| 10479 | do |
| 10480 | IFS=$as_save_IFS |
| 10481 | test -z "$as_dir" && as_dir=. |
| 10482 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10483 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10484 | ac_cv_prog_DLLTOOL="$ac_prog" |
| 10485 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10486 | break 2 |
| 10487 | fi |
| 10488 | done |
| 10489 | done |
| 10490 | |
| 10491 | fi |
| 10492 | fi |
| 10493 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 10494 | if test -n "$DLLTOOL"; then |
| 10495 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 10496 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 10497 | else |
| 10498 | echo "$as_me:$LINENO: result: no" >&5 |
| 10499 | echo "${ECHO_T}no" >&6 |
| 10500 | fi |
| 10501 | |
| 10502 | test -n "$DLLTOOL" && break |
| 10503 | done |
| 10504 | test -n "$DLLTOOL" || DLLTOOL="false" |
| 10505 | |
| 10506 | if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi |
| 10507 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10508 | ;; |
| 10509 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 10510 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 10511 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10512 | { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10513 | It is currently not possible to build Wine without shared library |
| 10514 | (.so) support to allow transparent switch between .so and .dll files. |
| 10515 | If you are using Linux, you will need a newer binutils. |
| 10516 | " >&5 |
| 10517 | echo "$as_me: error: could not find a way to build shared libraries. |
| 10518 | It is currently not possible to build Wine without shared library |
| 10519 | (.so) support to allow transparent switch between .so and .dll files. |
| 10520 | If you are using Linux, you will need a newer binutils. |
| 10521 | " >&2;} |
| 10522 | { (exit 1); exit 1; }; } |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 10523 | fi |
| 10524 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10525 | case $build_os in |
| 10526 | cygwin*|mingw32*) |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 10527 | LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\"" |
| 10528 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10529 | *) |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 10530 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\"" |
| 10531 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10532 | esac |
| 10533 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 10534 | CRTLIBS="" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10535 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 10536 | case $host_os in |
| 10537 | mingw32*) |
| 10538 | CRTLIBS="-lmsvcrt" ;; |
| 10539 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10540 | |
| 10541 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10542 | if test "$LIBEXT" = "so" |
| 10543 | then |
| 10544 | # Extract the first word of "ldd", so it can be a program name with args. |
| 10545 | set dummy ldd; ac_word=$2 |
| 10546 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10548 | if test "${ac_cv_path_LDD+set}" = set; then |
| 10549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10550 | else |
| 10551 | case $LDD in |
| 10552 | [\\/]* | ?:[\\/]*) |
| 10553 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 10554 | ;; |
| 10555 | *) |
| 10556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10557 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 10558 | for as_dir in $as_dummy |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10559 | do |
| 10560 | IFS=$as_save_IFS |
| 10561 | test -z "$as_dir" && as_dir=. |
| 10562 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10563 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10564 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
| 10565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10566 | break 2 |
| 10567 | fi |
| 10568 | done |
| 10569 | done |
| 10570 | |
| 10571 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 10572 | ;; |
| 10573 | esac |
| 10574 | fi |
| 10575 | LDD=$ac_cv_path_LDD |
| 10576 | |
| 10577 | if test -n "$LDD"; then |
| 10578 | echo "$as_me:$LINENO: result: $LDD" >&5 |
| 10579 | echo "${ECHO_T}$LDD" >&6 |
| 10580 | else |
| 10581 | echo "$as_me:$LINENO: result: no" >&5 |
| 10582 | echo "${ECHO_T}no" >&6 |
| 10583 | fi |
| 10584 | |
| 10585 | |
| 10586 | echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
| 10587 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6 |
| 10588 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 10589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10590 | else |
| 10591 | ac_get_soname_save_LIBS=$LIBS |
| 10592 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 10593 | cat >conftest.$ac_ext <<_ACEOF |
| 10594 | #line $LINENO "configure" |
| 10595 | #include "confdefs.h" |
| 10596 | |
| 10597 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10598 | #ifdef __cplusplus |
| 10599 | extern "C" |
| 10600 | #endif |
| 10601 | /* We use char because int might match the return type of a gcc2 |
| 10602 | builtin and then its argument prototype would still apply. */ |
| 10603 | char XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10604 | int |
| 10605 | main () |
| 10606 | { |
| 10607 | XCreateWindow (); |
| 10608 | ; |
| 10609 | return 0; |
| 10610 | } |
| 10611 | _ACEOF |
| 10612 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10614 | (eval $ac_link) 2>&5 |
| 10615 | ac_status=$? |
| 10616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10617 | (exit $ac_status); } && |
| 10618 | { ac_try='test -s conftest$ac_exeext' |
| 10619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10620 | (eval $ac_try) 2>&5 |
| 10621 | ac_status=$? |
| 10622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10623 | (exit $ac_status); }; }; then |
| 10624 | ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 10625 | if test "x$ac_cv_lib_soname_X11" = "x" |
| 10626 | then |
| 10627 | ac_cv_lib_soname_X11="libX11.so" |
| 10628 | fi |
| 10629 | else |
| 10630 | echo "$as_me: failed program was:" >&5 |
| 10631 | cat conftest.$ac_ext >&5 |
| 10632 | ac_cv_lib_soname_X11="libX11.so" |
| 10633 | fi |
| 10634 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10635 | LIBS=$ac_get_soname_save_LIBS |
| 10636 | fi |
| 10637 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 |
| 10638 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6 |
| 10639 | if test "x$ac_cv_lib_soname_X11" != xNONE |
| 10640 | then |
| 10641 | cat >>confdefs.h <<_ACEOF |
| 10642 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 10643 | _ACEOF |
| 10644 | fi |
| 10645 | |
| 10646 | echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
| 10647 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6 |
| 10648 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 10649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10650 | else |
| 10651 | ac_get_soname_save_LIBS=$LIBS |
| 10652 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 10653 | cat >conftest.$ac_ext <<_ACEOF |
| 10654 | #line $LINENO "configure" |
| 10655 | #include "confdefs.h" |
| 10656 | |
| 10657 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10658 | #ifdef __cplusplus |
| 10659 | extern "C" |
| 10660 | #endif |
| 10661 | /* We use char because int might match the return type of a gcc2 |
| 10662 | builtin and then its argument prototype would still apply. */ |
| 10663 | char XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10664 | int |
| 10665 | main () |
| 10666 | { |
| 10667 | XextCreateExtension (); |
| 10668 | ; |
| 10669 | return 0; |
| 10670 | } |
| 10671 | _ACEOF |
| 10672 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10674 | (eval $ac_link) 2>&5 |
| 10675 | ac_status=$? |
| 10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10677 | (exit $ac_status); } && |
| 10678 | { ac_try='test -s conftest$ac_exeext' |
| 10679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10680 | (eval $ac_try) 2>&5 |
| 10681 | ac_status=$? |
| 10682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10683 | (exit $ac_status); }; }; then |
| 10684 | ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 10685 | if test "x$ac_cv_lib_soname_Xext" = "x" |
| 10686 | then |
| 10687 | ac_cv_lib_soname_Xext="libXext.so" |
| 10688 | fi |
| 10689 | else |
| 10690 | echo "$as_me: failed program was:" >&5 |
| 10691 | cat conftest.$ac_ext >&5 |
| 10692 | ac_cv_lib_soname_Xext="libXext.so" |
| 10693 | fi |
| 10694 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10695 | LIBS=$ac_get_soname_save_LIBS |
| 10696 | fi |
| 10697 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5 |
| 10698 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6 |
| 10699 | if test "x$ac_cv_lib_soname_Xext" != xNONE |
| 10700 | then |
| 10701 | cat >>confdefs.h <<_ACEOF |
| 10702 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 10703 | _ACEOF |
| 10704 | fi |
| 10705 | |
| 10706 | echo "$as_me:$LINENO: checking for -lXrender soname" >&5 |
| 10707 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6 |
| 10708 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 10709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10710 | else |
| 10711 | ac_get_soname_save_LIBS=$LIBS |
| 10712 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 10713 | cat >conftest.$ac_ext <<_ACEOF |
| 10714 | #line $LINENO "configure" |
| 10715 | #include "confdefs.h" |
| 10716 | |
| 10717 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10718 | #ifdef __cplusplus |
| 10719 | extern "C" |
| 10720 | #endif |
| 10721 | /* We use char because int might match the return type of a gcc2 |
| 10722 | builtin and then its argument prototype would still apply. */ |
| 10723 | char XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10724 | int |
| 10725 | main () |
| 10726 | { |
| 10727 | XRenderQueryExtension (); |
| 10728 | ; |
| 10729 | return 0; |
| 10730 | } |
| 10731 | _ACEOF |
| 10732 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10734 | (eval $ac_link) 2>&5 |
| 10735 | ac_status=$? |
| 10736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10737 | (exit $ac_status); } && |
| 10738 | { ac_try='test -s conftest$ac_exeext' |
| 10739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10740 | (eval $ac_try) 2>&5 |
| 10741 | ac_status=$? |
| 10742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10743 | (exit $ac_status); }; }; then |
| 10744 | ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 10745 | if test "x$ac_cv_lib_soname_Xrender" = "x" |
| 10746 | then |
| 10747 | ac_cv_lib_soname_Xrender="libXrender.so" |
| 10748 | fi |
| 10749 | else |
| 10750 | echo "$as_me: failed program was:" >&5 |
| 10751 | cat conftest.$ac_ext >&5 |
| 10752 | ac_cv_lib_soname_Xrender="libXrender.so" |
| 10753 | fi |
| 10754 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10755 | LIBS=$ac_get_soname_save_LIBS |
| 10756 | fi |
| 10757 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 |
| 10758 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6 |
| 10759 | if test "x$ac_cv_lib_soname_Xrender" != xNONE |
| 10760 | then |
| 10761 | cat >>confdefs.h <<_ACEOF |
| 10762 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 10763 | _ACEOF |
| 10764 | fi |
| 10765 | |
| 10766 | echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 |
| 10767 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6 |
| 10768 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 10769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10770 | else |
| 10771 | ac_get_soname_save_LIBS=$LIBS |
| 10772 | LIBS="-lfreetype $X_LIBS $LIBS" |
| 10773 | cat >conftest.$ac_ext <<_ACEOF |
| 10774 | #line $LINENO "configure" |
| 10775 | #include "confdefs.h" |
| 10776 | |
| 10777 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10778 | #ifdef __cplusplus |
| 10779 | extern "C" |
| 10780 | #endif |
| 10781 | /* We use char because int might match the return type of a gcc2 |
| 10782 | builtin and then its argument prototype would still apply. */ |
| 10783 | char FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10784 | int |
| 10785 | main () |
| 10786 | { |
| 10787 | FT_Init_FreeType (); |
| 10788 | ; |
| 10789 | return 0; |
| 10790 | } |
| 10791 | _ACEOF |
| 10792 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10794 | (eval $ac_link) 2>&5 |
| 10795 | ac_status=$? |
| 10796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10797 | (exit $ac_status); } && |
| 10798 | { ac_try='test -s conftest$ac_exeext' |
| 10799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10800 | (eval $ac_try) 2>&5 |
| 10801 | ac_status=$? |
| 10802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10803 | (exit $ac_status); }; }; then |
| 10804 | ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 10805 | if test "x$ac_cv_lib_soname_freetype" = "x" |
| 10806 | then |
| 10807 | ac_cv_lib_soname_freetype="libfreetype.so" |
| 10808 | fi |
| 10809 | else |
| 10810 | echo "$as_me: failed program was:" >&5 |
| 10811 | cat conftest.$ac_ext >&5 |
| 10812 | ac_cv_lib_soname_freetype="libfreetype.so" |
| 10813 | fi |
| 10814 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10815 | LIBS=$ac_get_soname_save_LIBS |
| 10816 | fi |
| 10817 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 |
| 10818 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6 |
| 10819 | if test "x$ac_cv_lib_soname_freetype" != xNONE |
| 10820 | then |
| 10821 | cat >>confdefs.h <<_ACEOF |
| 10822 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 10823 | _ACEOF |
| 10824 | fi |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 10825 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 10826 | echo "$as_me:$LINENO: checking for -lGL soname" >&5 |
| 10827 | echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6 |
| 10828 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 10829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10830 | else |
| 10831 | ac_get_soname_save_LIBS=$LIBS |
| 10832 | LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 10833 | cat >conftest.$ac_ext <<_ACEOF |
| 10834 | #line $LINENO "configure" |
| 10835 | #include "confdefs.h" |
| 10836 | |
| 10837 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10838 | #ifdef __cplusplus |
| 10839 | extern "C" |
| 10840 | #endif |
| 10841 | /* We use char because int might match the return type of a gcc2 |
| 10842 | builtin and then its argument prototype would still apply. */ |
| 10843 | char glXQueryExtension (); |
| 10844 | int |
| 10845 | main () |
| 10846 | { |
| 10847 | glXQueryExtension (); |
| 10848 | ; |
| 10849 | return 0; |
| 10850 | } |
| 10851 | _ACEOF |
| 10852 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10854 | (eval $ac_link) 2>&5 |
| 10855 | ac_status=$? |
| 10856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10857 | (exit $ac_status); } && |
| 10858 | { ac_try='test -s conftest$ac_exeext' |
| 10859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10860 | (eval $ac_try) 2>&5 |
| 10861 | ac_status=$? |
| 10862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10863 | (exit $ac_status); }; }; then |
| 10864 | ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 10865 | if test "x$ac_cv_lib_soname_GL" = "x" |
| 10866 | then |
| 10867 | ac_cv_lib_soname_GL="libGL.so" |
| 10868 | fi |
| 10869 | else |
| 10870 | echo "$as_me: failed program was:" >&5 |
| 10871 | cat conftest.$ac_ext >&5 |
| 10872 | ac_cv_lib_soname_GL="libGL.so" |
| 10873 | fi |
| 10874 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10875 | LIBS=$ac_get_soname_save_LIBS |
| 10876 | fi |
| 10877 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5 |
| 10878 | echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6 |
| 10879 | if test "x$ac_cv_lib_soname_GL" != xNONE |
| 10880 | then |
| 10881 | cat >>confdefs.h <<_ACEOF |
| 10882 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 10883 | _ACEOF |
| 10884 | fi |
| 10885 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 10886 | echo "$as_me:$LINENO: checking for -lcups soname" >&5 |
| 10887 | echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6 |
| 10888 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 10889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10890 | else |
| 10891 | ac_get_soname_save_LIBS=$LIBS |
| 10892 | LIBS="-lcups $LIBS" |
| 10893 | cat >conftest.$ac_ext <<_ACEOF |
| 10894 | #line $LINENO "configure" |
| 10895 | #include "confdefs.h" |
| 10896 | |
| 10897 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10898 | #ifdef __cplusplus |
| 10899 | extern "C" |
| 10900 | #endif |
| 10901 | /* We use char because int might match the return type of a gcc2 |
| 10902 | builtin and then its argument prototype would still apply. */ |
| 10903 | char cupsGetDefault (); |
| 10904 | int |
| 10905 | main () |
| 10906 | { |
| 10907 | cupsGetDefault (); |
| 10908 | ; |
| 10909 | return 0; |
| 10910 | } |
| 10911 | _ACEOF |
| 10912 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10913 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10914 | (eval $ac_link) 2>&5 |
| 10915 | ac_status=$? |
| 10916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10917 | (exit $ac_status); } && |
| 10918 | { ac_try='test -s conftest$ac_exeext' |
| 10919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10920 | (eval $ac_try) 2>&5 |
| 10921 | ac_status=$? |
| 10922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10923 | (exit $ac_status); }; }; then |
| 10924 | ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 10925 | if test "x$ac_cv_lib_soname_cups" = "x" |
| 10926 | then |
| 10927 | ac_cv_lib_soname_cups="libcups.so" |
| 10928 | fi |
| 10929 | else |
| 10930 | echo "$as_me: failed program was:" >&5 |
| 10931 | cat conftest.$ac_ext >&5 |
| 10932 | ac_cv_lib_soname_cups="libcups.so" |
| 10933 | fi |
| 10934 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10935 | LIBS=$ac_get_soname_save_LIBS |
| 10936 | fi |
| 10937 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5 |
| 10938 | echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6 |
| 10939 | if test "x$ac_cv_lib_soname_cups" != xNONE |
| 10940 | then |
| 10941 | cat >>confdefs.h <<_ACEOF |
| 10942 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 10943 | _ACEOF |
| 10944 | fi |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10945 | fi |
| 10946 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10947 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10948 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10949 | wine_cv_libc_reentrant=no |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10950 | echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10951 | echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6 |
| 10952 | if test "${wine_cv_libc_r___errno_location+set}" = set; then |
| 10953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 10954 | else |
| 10955 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10956 | wine_cv_libc_r___errno_location=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 10957 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10958 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10959 | #line $LINENO "configure" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 10960 | #include "confdefs.h" |
| 10961 | int myerrno = 0; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 10962 | int *__errno_location(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 10963 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10964 | _ACEOF |
| 10965 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10967 | (eval $ac_link) 2>&5 |
| 10968 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10970 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10972 | (eval $ac_try) 2>&5 |
| 10973 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10975 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 10976 | wine_cv_libc_r___errno_location=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 10977 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10978 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10979 | echo "$as_me: failed program was:" >&5 |
| 10980 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10981 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10982 | wine_cv_libc_r___errno_location=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 10983 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10984 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 10985 | fi |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 10986 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10987 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10988 | echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10989 | if test "$wine_cv_libc_r___errno_location" = "yes"; then |
| 10990 | wine_cv_libc_reentrant=__errno_location |
| 10991 | else |
| 10992 | echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10993 | echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6 |
| 10994 | if test "${wine_cv_libc_r___error+set}" = set; then |
| 10995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 10996 | else |
| 10997 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10998 | wine_cv_libc_r___error=yes |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 10999 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11000 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11001 | #line $LINENO "configure" |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 11002 | #include "confdefs.h" |
| 11003 | int myerrno = 0; |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 11004 | int *__error(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 11005 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11006 | _ACEOF |
| 11007 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11009 | (eval $ac_link) 2>&5 |
| 11010 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11012 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11014 | (eval $ac_try) 2>&5 |
| 11015 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11017 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 11018 | wine_cv_libc_r___error=yes |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 11019 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11020 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11021 | echo "$as_me: failed program was:" >&5 |
| 11022 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11023 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11024 | wine_cv_libc_r___error=no |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 11025 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11026 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 11027 | fi |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11028 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11029 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11030 | echo "${ECHO_T}$wine_cv_libc_r___error" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11031 | if test "$wine_cv_libc_r___error" = "yes"; then |
| 11032 | wine_cv_libc_reentrant=__error |
| 11033 | else |
| 11034 | echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11035 | echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6 |
| 11036 | if test "${wine_cv_libc_r____errno+set}" = set; then |
| 11037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11038 | else |
| 11039 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11040 | wine_cv_libc_r____errno=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11041 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11042 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11043 | #line $LINENO "configure" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11044 | #include "confdefs.h" |
| 11045 | int myerrno = 0; |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11046 | int *___errno(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 11047 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11048 | _ACEOF |
| 11049 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11051 | (eval $ac_link) 2>&5 |
| 11052 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11054 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11056 | (eval $ac_try) 2>&5 |
| 11057 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11059 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 11060 | wine_cv_libc_r____errno=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11061 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11062 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11063 | echo "$as_me: failed program was:" >&5 |
| 11064 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11065 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11066 | wine_cv_libc_r____errno=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11067 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11068 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11069 | fi |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 11070 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11071 | echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11072 | echo "${ECHO_T}$wine_cv_libc_r____errno" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11073 | if test "$wine_cv_libc_r____errno" = "yes"; then |
| 11074 | wine_cv_libc_reentrant=___errno |
| 11075 | else |
| 11076 | echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11077 | echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6 |
| 11078 | if test "${wine_cv_libc_r___thr_errno+set}" = set; then |
| 11079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11080 | else |
| 11081 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11082 | wine_cv_libc_r___thr_errno=yes |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11083 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11084 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11085 | #line $LINENO "configure" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11086 | #include "confdefs.h" |
| 11087 | int myerrno = 0; |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11088 | int *__thr_errno(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 11089 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11090 | _ACEOF |
| 11091 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11093 | (eval $ac_link) 2>&5 |
| 11094 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11096 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11098 | (eval $ac_try) 2>&5 |
| 11099 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11101 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 11102 | wine_cv_libc_r___thr_errno=yes |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11103 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11104 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11105 | echo "$as_me: failed program was:" >&5 |
| 11106 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11107 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11108 | wine_cv_libc_r___thr_errno=no |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11109 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11110 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11111 | fi |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11112 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11113 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11114 | echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11115 | if test "$wine_cv_libc_r___thr_errno" = "yes"; then |
| 11116 | wine_cv_libc_reentrant=__thr_errno |
| 11117 | else |
| 11118 | echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11119 | echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6 |
| 11120 | if test "${wine_cv_libc_r___errno+set}" = set; then |
| 11121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11122 | else |
| 11123 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11124 | wine_cv_libc_r___errno=yes |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11125 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11126 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11127 | #line $LINENO "configure" |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11128 | #include "confdefs.h" |
| 11129 | int myerrno = 0; |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11130 | int *__errno(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 11131 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11132 | _ACEOF |
| 11133 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11135 | (eval $ac_link) 2>&5 |
| 11136 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11138 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11140 | (eval $ac_try) 2>&5 |
| 11141 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11143 | (exit $ac_status); }; }; then |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11144 | wine_cv_libc_r___errno=yes |
| 11145 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11146 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11147 | echo "$as_me: failed program was:" >&5 |
| 11148 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11149 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11150 | wine_cv_libc_r___errno=no |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11151 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11152 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11153 | fi |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11154 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11155 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11156 | echo "${ECHO_T}$wine_cv_libc_r___errno" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11157 | if test "$wine_cv_libc_r___errno" = "yes"; then |
| 11158 | wine_cv_libc_reentrant=__errno |
| 11159 | fi |
| 11160 | |
| 11161 | |
| 11162 | fi |
| 11163 | |
| 11164 | fi |
| 11165 | |
| 11166 | fi |
| 11167 | |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 11168 | fi |
| 11169 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11170 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11171 | if test "$wine_cv_libc_reentrant" != "no" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11172 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11173 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11174 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 11175 | #define ERRNO_LOCATION $wine_cv_libc_reentrant |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11176 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 11177 | |
| 11178 | fi |
| 11179 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11180 | |
Alexandre Julliard | 867fb9d | 2002-04-24 22:24:43 +0000 | [diff] [blame] | 11181 | if test "$have_x" = "yes" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 11182 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11183 | echo "$as_me:$LINENO: checking for reentrant X libraries" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11184 | echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6 |
| 11185 | if test "${wine_cv_x_reentrant+set}" = set; then |
| 11186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 11187 | else |
Alexandre Julliard | 867fb9d | 2002-04-24 22:24:43 +0000 | [diff] [blame] | 11188 | libX11_check=none |
| 11189 | for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do |
| 11190 | if test -r $dir/libX11.so; then |
| 11191 | libX11_check="-D $dir/libX11.so" |
| 11192 | break |
| 11193 | fi |
| 11194 | if test -r $dir/libX11.a; then |
| 11195 | libX11_check="$dir/libX11.a" |
| 11196 | break |
| 11197 | fi |
| 11198 | done |
| 11199 | if test "$libX11_check" != "none"; then |
| 11200 | if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1 |
| 11201 | then |
| 11202 | wine_cv_x_reentrant=yes |
| 11203 | else |
| 11204 | wine_cv_x_reentrant=no |
| 11205 | fi |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 11206 | else |
Alexandre Julliard | 867fb9d | 2002-04-24 22:24:43 +0000 | [diff] [blame] | 11207 | wine_cv_x_reentrant=unknown |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11208 | fi |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 11209 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11210 | echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11211 | echo "${ECHO_T}$wine_cv_x_reentrant" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 11212 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11213 | |
| 11214 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11215 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 11216 | # for constant arguments. Useless! |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11217 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11218 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 11219 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 11220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11221 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11222 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11223 | #line $LINENO "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11224 | #include "confdefs.h" |
| 11225 | #include <alloca.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11226 | int |
| 11227 | main () |
| 11228 | { |
| 11229 | char *p = (char *) alloca (2 * sizeof (int)); |
| 11230 | ; |
| 11231 | return 0; |
| 11232 | } |
| 11233 | _ACEOF |
| 11234 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11236 | (eval $ac_link) 2>&5 |
| 11237 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11239 | (exit $ac_status); } && |
| 11240 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11242 | (eval $ac_try) 2>&5 |
| 11243 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11245 | (exit $ac_status); }; }; then |
| 11246 | ac_cv_working_alloca_h=yes |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11247 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11248 | echo "$as_me: failed program was:" >&5 |
| 11249 | cat conftest.$ac_ext >&5 |
| 11250 | ac_cv_working_alloca_h=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11251 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11252 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11253 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11254 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11255 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 11256 | if test $ac_cv_working_alloca_h = yes; then |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11257 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11258 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11259 | #define HAVE_ALLOCA_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11260 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11261 | |
| 11262 | fi |
| 11263 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11264 | echo "$as_me:$LINENO: checking for alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11265 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 11266 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 11267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11268 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11269 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11270 | #line $LINENO "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11271 | #include "confdefs.h" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11272 | #ifdef __GNUC__ |
| 11273 | # define alloca __builtin_alloca |
| 11274 | #else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 11275 | # ifdef _MSC_VER |
| 11276 | # include <malloc.h> |
| 11277 | # define alloca _alloca |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11278 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 11279 | # if HAVE_ALLOCA_H |
| 11280 | # include <alloca.h> |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11281 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 11282 | # ifdef _AIX |
| 11283 | #pragma alloca |
| 11284 | # else |
| 11285 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11286 | char *alloca (); |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 11287 | # endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11288 | # endif |
| 11289 | # endif |
| 11290 | # endif |
| 11291 | #endif |
| 11292 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11293 | int |
| 11294 | main () |
| 11295 | { |
| 11296 | char *p = (char *) alloca (1); |
| 11297 | ; |
| 11298 | return 0; |
| 11299 | } |
| 11300 | _ACEOF |
| 11301 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11303 | (eval $ac_link) 2>&5 |
| 11304 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11306 | (exit $ac_status); } && |
| 11307 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11309 | (eval $ac_try) 2>&5 |
| 11310 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11312 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11313 | ac_cv_func_alloca_works=yes |
| 11314 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11315 | echo "$as_me: failed program was:" >&5 |
| 11316 | cat conftest.$ac_ext >&5 |
| 11317 | ac_cv_func_alloca_works=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11318 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11319 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11320 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11321 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11322 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11323 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11324 | if test $ac_cv_func_alloca_works = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11325 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11326 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11327 | #define HAVE_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11328 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11329 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11330 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11331 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11332 | # that cause trouble. Some versions do not even contain alloca or |
| 11333 | # contain a buggy version. If you still want to use their alloca, |
| 11334 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 11335 | |
| 11336 | ALLOCA=alloca.$ac_objext |
| 11337 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11338 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11339 | #define C_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11340 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11341 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11342 | |
| 11343 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11344 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 11345 | if test "${ac_cv_os_cray+set}" = set; then |
| 11346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11347 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11348 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11349 | #line $LINENO "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11350 | #include "confdefs.h" |
| 11351 | #if defined(CRAY) && ! defined(CRAY2) |
| 11352 | webecray |
| 11353 | #else |
| 11354 | wenotbecray |
| 11355 | #endif |
| 11356 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11357 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11358 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11359 | $EGREP "webecray" >/dev/null 2>&1; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11360 | ac_cv_os_cray=yes |
| 11361 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11362 | ac_cv_os_cray=no |
| 11363 | fi |
| 11364 | rm -f conftest* |
| 11365 | |
| 11366 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11367 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11368 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11369 | if test $ac_cv_os_cray = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11370 | for ac_func in _getb67 GETB67 getb67; do |
| 11371 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11372 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11373 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11374 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11376 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11377 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11378 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11379 | #include "confdefs.h" |
| 11380 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11381 | which can conflict with char $ac_func (); below. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11382 | #include <assert.h> |
| 11383 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11384 | #ifdef __cplusplus |
| 11385 | extern "C" |
| 11386 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 11387 | /* 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] | 11388 | builtin and then its argument prototype would still apply. */ |
| 11389 | char $ac_func (); |
| 11390 | char (*f) (); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11391 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11392 | int |
| 11393 | main () |
| 11394 | { |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11395 | /* The GNU C library defines this for functions which it implements |
| 11396 | to always fail with ENOSYS. Some functions are actually named |
| 11397 | something starting with __ and the normal name is an alias. */ |
| 11398 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11399 | choke me |
| 11400 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11401 | f = $ac_func; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11402 | #endif |
| 11403 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11404 | ; |
| 11405 | return 0; |
| 11406 | } |
| 11407 | _ACEOF |
| 11408 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11410 | (eval $ac_link) 2>&5 |
| 11411 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11413 | (exit $ac_status); } && |
| 11414 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11416 | (eval $ac_try) 2>&5 |
| 11417 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11419 | (exit $ac_status); }; }; then |
| 11420 | eval "$as_ac_var=yes" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11421 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11422 | echo "$as_me: failed program was:" >&5 |
| 11423 | cat conftest.$ac_ext >&5 |
| 11424 | eval "$as_ac_var=no" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11425 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11426 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11427 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11428 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11429 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11430 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11431 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11432 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11433 | #define CRAY_STACKSEG_END $ac_func |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11434 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11435 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11436 | break |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11437 | fi |
| 11438 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11439 | done |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11440 | fi |
| 11441 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11442 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11443 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 11444 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 11445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11446 | else |
| 11447 | if test "$cross_compiling" = yes; then |
| 11448 | ac_cv_c_stack_direction=0 |
| 11449 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11450 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11451 | #line $LINENO "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11452 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11453 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11454 | find_stack_direction () |
| 11455 | { |
| 11456 | static char *addr = 0; |
| 11457 | auto char dummy; |
| 11458 | if (addr == 0) |
| 11459 | { |
| 11460 | addr = &dummy; |
| 11461 | return find_stack_direction (); |
| 11462 | } |
| 11463 | else |
| 11464 | return (&dummy > addr) ? 1 : -1; |
| 11465 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11466 | |
| 11467 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11468 | main () |
| 11469 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11470 | exit (find_stack_direction () < 0); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11471 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11472 | _ACEOF |
| 11473 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11475 | (eval $ac_link) 2>&5 |
| 11476 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11478 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11480 | (eval $ac_try) 2>&5 |
| 11481 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11483 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11484 | ac_cv_c_stack_direction=1 |
| 11485 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11486 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11487 | echo "$as_me: failed program was:" >&5 |
| 11488 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11489 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11490 | ac_cv_c_stack_direction=-1 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11491 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11492 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11493 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11494 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11495 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11496 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11497 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11498 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11499 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11500 | _ACEOF |
| 11501 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11502 | |
| 11503 | fi |
| 11504 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11505 | |
| 11506 | |
| 11507 | |
| 11508 | |
| 11509 | |
| 11510 | |
| 11511 | |
| 11512 | |
| 11513 | |
| 11514 | |
| 11515 | |
| 11516 | |
| 11517 | |
| 11518 | |
| 11519 | |
| 11520 | |
| 11521 | |
| 11522 | |
| 11523 | |
| 11524 | |
| 11525 | |
| 11526 | |
| 11527 | |
| 11528 | |
| 11529 | |
| 11530 | |
| 11531 | |
| 11532 | |
| 11533 | |
| 11534 | |
| 11535 | |
| 11536 | |
| 11537 | |
| 11538 | |
| 11539 | |
| 11540 | |
| 11541 | |
| 11542 | |
| 11543 | |
| 11544 | |
| 11545 | |
| 11546 | |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 11547 | |
| 11548 | |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 11549 | |
| 11550 | |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 11551 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11552 | for ac_func in \ |
| 11553 | _lwp_create \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11554 | _pclose \ |
| 11555 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 11556 | _snprintf \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11557 | _stricmp \ |
| 11558 | _strnicmp \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 11559 | chsize \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11560 | clone \ |
Andreas Mohr | a7ca2ba | 2001-01-12 23:07:11 +0000 | [diff] [blame] | 11561 | ecvt \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 11562 | finite \ |
| 11563 | fpclass \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 11564 | ftruncate \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 11565 | ftruncate64 \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 11566 | getnetbyaddr \ |
| 11567 | getnetbyname \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11568 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 11569 | getprotobyname \ |
| 11570 | getprotobynumber \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 11571 | getpwuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 11572 | getservbyport \ |
| 11573 | getsockopt \ |
| 11574 | inet_network \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 11575 | lseek64 \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 11576 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11577 | memmove \ |
Marcus Meissner | 786d249 | 2002-07-29 23:55:39 +0000 | [diff] [blame] | 11578 | mkstemp \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 11579 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11580 | pclose \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11581 | popen \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 11582 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 11583 | pwrite \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11584 | rfork \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 11585 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11586 | sendmsg \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 11587 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11588 | sigaltstack \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 11589 | snprintf \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 11590 | statfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 11591 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11592 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 11593 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11594 | tcgetattr \ |
| 11595 | timegm \ |
| 11596 | usleep \ |
| 11597 | vfscanf \ |
| 11598 | wait4 \ |
| 11599 | waitpid \ |
| 11600 | |
| 11601 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11602 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11603 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11604 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11605 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11607 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11608 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11609 | #line $LINENO "configure" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11610 | #include "confdefs.h" |
| 11611 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11612 | which can conflict with char $ac_func (); below. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11613 | #include <assert.h> |
| 11614 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11615 | #ifdef __cplusplus |
| 11616 | extern "C" |
| 11617 | #endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11618 | /* 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] | 11619 | builtin and then its argument prototype would still apply. */ |
| 11620 | char $ac_func (); |
| 11621 | char (*f) (); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11622 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11623 | int |
| 11624 | main () |
| 11625 | { |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11626 | /* The GNU C library defines this for functions which it implements |
| 11627 | to always fail with ENOSYS. Some functions are actually named |
| 11628 | something starting with __ and the normal name is an alias. */ |
| 11629 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11630 | choke me |
| 11631 | #else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11632 | f = $ac_func; |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 11633 | #endif |
| 11634 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11635 | ; |
| 11636 | return 0; |
| 11637 | } |
| 11638 | _ACEOF |
| 11639 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11641 | (eval $ac_link) 2>&5 |
| 11642 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11644 | (exit $ac_status); } && |
| 11645 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11647 | (eval $ac_try) 2>&5 |
| 11648 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11650 | (exit $ac_status); }; }; then |
| 11651 | eval "$as_ac_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11652 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11653 | echo "$as_me: failed program was:" >&5 |
| 11654 | cat conftest.$ac_ext >&5 |
| 11655 | eval "$as_ac_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11656 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11657 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11658 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11659 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11660 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11661 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11662 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11663 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11664 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 11665 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11666 | fi |
| 11667 | done |
| 11668 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11669 | |
| 11670 | |
| 11671 | |
| 11672 | |
| 11673 | |
| 11674 | |
| 11675 | |
| 11676 | |
| 11677 | |
| 11678 | |
| 11679 | |
| 11680 | |
| 11681 | |
| 11682 | |
| 11683 | |
| 11684 | |
| 11685 | |
| 11686 | |
| 11687 | |
| 11688 | |
| 11689 | |
| 11690 | |
| 11691 | |
| 11692 | |
| 11693 | |
| 11694 | |
| 11695 | |
| 11696 | |
| 11697 | |
| 11698 | |
| 11699 | |
| 11700 | |
| 11701 | |
| 11702 | |
| 11703 | |
| 11704 | |
| 11705 | |
| 11706 | |
| 11707 | |
| 11708 | |
| 11709 | |
| 11710 | |
| 11711 | |
| 11712 | |
| 11713 | |
| 11714 | |
| 11715 | |
| 11716 | |
| 11717 | |
| 11718 | |
| 11719 | |
| 11720 | |
| 11721 | |
| 11722 | |
| 11723 | |
| 11724 | |
| 11725 | |
| 11726 | |
| 11727 | |
| 11728 | |
| 11729 | |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 11730 | |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 11731 | |
| 11732 | |
| 11733 | |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 11734 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11735 | |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 11736 | |
| 11737 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11738 | for ac_header in \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11739 | arpa/inet.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11740 | arpa/nameser.h \ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 11741 | cups/cups.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11742 | direct.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11743 | elf.h \ |
| 11744 | float.h \ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 11745 | ieeefp.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11746 | io.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11747 | libio.h \ |
Hidenori Takeshima | 01f78aa | 2000-07-09 12:19:09 +0000 | [diff] [blame] | 11748 | libutil.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11749 | link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11750 | linux/cdrom.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 11751 | linux/hdreg.h \ |
Marcus Meissner | c9b3b2e | 2000-12-12 00:38:58 +0000 | [diff] [blame] | 11752 | linux/input.h \ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 11753 | linux/joystick.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 11754 | linux/major.h \ |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 11755 | linux/param.h \ |
Lawson Whitney | 533e7ee | 2002-02-19 18:41:56 +0000 | [diff] [blame] | 11756 | linux/serial.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11757 | linux/ucdrom.h \ |
Hidenori Takeshima | 5d1a638 | 2000-11-26 04:00:53 +0000 | [diff] [blame] | 11758 | netdb.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11759 | netinet/in.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 11760 | netinet/in_systm.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11761 | netinet/tcp.h \ |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 11762 | pty.h \ |
Steven Edwards | ff4525c | 2002-06-24 23:00:25 +0000 | [diff] [blame] | 11763 | pwd.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11764 | sched.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 11765 | scsi/sg.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11766 | socket.h \ |
Bang Jun-Young | eda758e | 2001-12-14 22:47:19 +0000 | [diff] [blame] | 11767 | stdint.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11768 | strings.h \ |
| 11769 | sys/cdio.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 11770 | sys/errno.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11771 | sys/file.h \ |
| 11772 | sys/filio.h \ |
Michal Pasternak | 6098399 | 2002-03-29 18:04:43 +0000 | [diff] [blame] | 11773 | sys/inttypes.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 11774 | sys/ioctl.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11775 | sys/ipc.h \ |
Eric Pouech | 624cbd7 | 2001-08-10 22:29:21 +0000 | [diff] [blame] | 11776 | sys/link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11777 | sys/lwp.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 11778 | sys/mman.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11779 | sys/modem.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11780 | sys/msg.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11781 | sys/param.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 11782 | sys/poll.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 11783 | sys/ptrace.h \ |
Ulrich Weigand | 8a1bdb3 | 2000-01-30 22:22:22 +0000 | [diff] [blame] | 11784 | sys/reg.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11785 | sys/shm.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 11786 | sys/signal.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11787 | sys/socket.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11788 | sys/sockio.h \ |
| 11789 | sys/statfs.h \ |
| 11790 | sys/strtio.h \ |
| 11791 | sys/syscall.h \ |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 11792 | sys/sysctl.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11793 | sys/time.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 11794 | sys/times.h \ |
Steven Edwards | 45e5681 | 2002-10-31 03:41:56 +0000 | [diff] [blame] | 11795 | sys/uio.h \ |
| 11796 | sys/un.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11797 | sys/v86.h \ |
| 11798 | sys/v86intr.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11799 | sys/vfs.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 11800 | sys/vm86.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 11801 | sys/wait.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11802 | syscall.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 11803 | termios.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 11804 | unistd.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 11805 | utime.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 11806 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11807 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11808 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11809 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11810 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11811 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11812 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11814 | fi |
| 11815 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11816 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11817 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11818 | # Is the header compilable? |
| 11819 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11820 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11821 | cat >conftest.$ac_ext <<_ACEOF |
| 11822 | #line $LINENO "configure" |
| 11823 | #include "confdefs.h" |
| 11824 | $ac_includes_default |
| 11825 | #include <$ac_header> |
| 11826 | _ACEOF |
| 11827 | rm -f conftest.$ac_objext |
| 11828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11829 | (eval $ac_compile) 2>&5 |
| 11830 | ac_status=$? |
| 11831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11832 | (exit $ac_status); } && |
| 11833 | { ac_try='test -s conftest.$ac_objext' |
| 11834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11835 | (eval $ac_try) 2>&5 |
| 11836 | ac_status=$? |
| 11837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11838 | (exit $ac_status); }; }; then |
| 11839 | ac_header_compiler=yes |
| 11840 | else |
| 11841 | echo "$as_me: failed program was:" >&5 |
| 11842 | cat conftest.$ac_ext >&5 |
| 11843 | ac_header_compiler=no |
| 11844 | fi |
| 11845 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11846 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11847 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11848 | |
| 11849 | # Is the header present? |
| 11850 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11851 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11852 | cat >conftest.$ac_ext <<_ACEOF |
| 11853 | #line $LINENO "configure" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11854 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11855 | #include <$ac_header> |
| 11856 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11857 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11858 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11859 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11860 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11861 | rm -f conftest.er1 |
| 11862 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11864 | (exit $ac_status); } >/dev/null; then |
| 11865 | if test -s conftest.err; then |
| 11866 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11867 | else |
| 11868 | ac_cpp_err= |
| 11869 | fi |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11870 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11871 | ac_cpp_err=yes |
| 11872 | fi |
| 11873 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11874 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11875 | else |
| 11876 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11877 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11878 | ac_header_preproc=no |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11879 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11880 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11881 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11882 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11883 | |
| 11884 | # So? What about this header? |
| 11885 | case $ac_header_compiler:$ac_header_preproc in |
| 11886 | yes:no ) |
| 11887 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11888 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11889 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11890 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 11891 | no:yes ) |
| 11892 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11893 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11894 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11895 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11896 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11897 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 11898 | esac |
| 11899 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11900 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11901 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11903 | else |
| 11904 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11905 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11906 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11907 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11908 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11909 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11910 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11911 | cat >>confdefs.h <<_ACEOF |
| 11912 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11913 | _ACEOF |
| 11914 | |
| 11915 | fi |
| 11916 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 11917 | done |
| 11918 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11919 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11920 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 11921 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 11922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11923 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11924 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11925 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11926 | #include "confdefs.h" |
| 11927 | #include <sys/types.h> |
| 11928 | #include <sys/stat.h> |
| 11929 | |
| 11930 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 11931 | # if S_ISBLK (S_IFDIR) |
| 11932 | You lose. |
| 11933 | # endif |
| 11934 | #endif |
| 11935 | |
| 11936 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 11937 | # if S_ISBLK (S_IFCHR) |
| 11938 | You lose. |
| 11939 | # endif |
| 11940 | #endif |
| 11941 | |
| 11942 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 11943 | # if S_ISLNK (S_IFREG) |
| 11944 | You lose. |
| 11945 | # endif |
| 11946 | #endif |
| 11947 | |
| 11948 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 11949 | # if S_ISSOCK (S_IFREG) |
| 11950 | You lose. |
| 11951 | # endif |
| 11952 | #endif |
| 11953 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11954 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11955 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11956 | $EGREP "You lose" >/dev/null 2>&1; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11957 | ac_cv_header_stat_broken=yes |
| 11958 | else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11959 | ac_cv_header_stat_broken=no |
| 11960 | fi |
| 11961 | rm -f conftest* |
| 11962 | |
| 11963 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11964 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11965 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11966 | if test $ac_cv_header_stat_broken = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11967 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11968 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11969 | #define STAT_MACROS_BROKEN 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11970 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 11971 | |
| 11972 | fi |
| 11973 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11974 | |
| 11975 | |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 11976 | |
| 11977 | |
| 11978 | for ac_header in sys/mount.h sys/user.h |
| 11979 | do |
| 11980 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11981 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11982 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11983 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11985 | else |
| 11986 | cat >conftest.$ac_ext <<_ACEOF |
| 11987 | #line $LINENO "configure" |
| 11988 | #include "confdefs.h" |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 11989 | #include <sys/types.h> |
| 11990 | #if HAVE_SYS_PARAM_H |
| 11991 | # include <sys/param.h> |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 11992 | #endif |
| 11993 | |
| 11994 | #include <$ac_header> |
| 11995 | _ACEOF |
| 11996 | rm -f conftest.$ac_objext |
| 11997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11998 | (eval $ac_compile) 2>&5 |
| 11999 | ac_status=$? |
| 12000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12001 | (exit $ac_status); } && |
| 12002 | { ac_try='test -s conftest.$ac_objext' |
| 12003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12004 | (eval $ac_try) 2>&5 |
| 12005 | ac_status=$? |
| 12006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12007 | (exit $ac_status); }; }; then |
| 12008 | eval "$as_ac_Header=yes" |
| 12009 | else |
| 12010 | echo "$as_me: failed program was:" >&5 |
| 12011 | cat conftest.$ac_ext >&5 |
| 12012 | eval "$as_ac_Header=no" |
| 12013 | fi |
| 12014 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12015 | fi |
| 12016 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12017 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12018 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12019 | cat >>confdefs.h <<_ACEOF |
| 12020 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12021 | _ACEOF |
| 12022 | |
| 12023 | fi |
| 12024 | |
| 12025 | done |
| 12026 | |
| 12027 | |
| 12028 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 12029 | for ac_header in net/if.h |
| 12030 | do |
| 12031 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12032 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12033 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12034 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12036 | else |
| 12037 | cat >conftest.$ac_ext <<_ACEOF |
| 12038 | #line $LINENO "configure" |
| 12039 | #include "confdefs.h" |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 12040 | #include <sys/types.h> |
Gerald Pfeifer | 87c369d | 2002-07-23 02:02:02 +0000 | [diff] [blame] | 12041 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 12042 | # include <sys/socket.h> |
| 12043 | #endif |
| 12044 | |
| 12045 | #include <$ac_header> |
| 12046 | _ACEOF |
| 12047 | rm -f conftest.$ac_objext |
| 12048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12049 | (eval $ac_compile) 2>&5 |
| 12050 | ac_status=$? |
| 12051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12052 | (exit $ac_status); } && |
| 12053 | { ac_try='test -s conftest.$ac_objext' |
| 12054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12055 | (eval $ac_try) 2>&5 |
| 12056 | ac_status=$? |
| 12057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12058 | (exit $ac_status); }; }; then |
| 12059 | eval "$as_ac_Header=yes" |
| 12060 | else |
| 12061 | echo "$as_me: failed program was:" >&5 |
| 12062 | cat conftest.$ac_ext >&5 |
| 12063 | eval "$as_ac_Header=no" |
| 12064 | fi |
| 12065 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12066 | fi |
| 12067 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12068 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12069 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12070 | cat >>confdefs.h <<_ACEOF |
| 12071 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12072 | _ACEOF |
| 12073 | |
| 12074 | fi |
| 12075 | |
| 12076 | done |
| 12077 | |
| 12078 | |
| 12079 | |
| 12080 | for ac_header in netinet/ip.h |
| 12081 | do |
| 12082 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12083 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12084 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12085 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12087 | else |
| 12088 | cat >conftest.$ac_ext <<_ACEOF |
| 12089 | #line $LINENO "configure" |
| 12090 | #include "confdefs.h" |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 12091 | #include <sys/types.h> |
| 12092 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 12093 | # include <sys/socket.h> |
| 12094 | #endif |
| 12095 | #if HAVE_NETINET_IN_SYSTM_H |
| 12096 | # include <netinet/in_systm.h> |
| 12097 | #endif |
| 12098 | |
| 12099 | #include <$ac_header> |
| 12100 | _ACEOF |
| 12101 | rm -f conftest.$ac_objext |
| 12102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12103 | (eval $ac_compile) 2>&5 |
| 12104 | ac_status=$? |
| 12105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12106 | (exit $ac_status); } && |
| 12107 | { ac_try='test -s conftest.$ac_objext' |
| 12108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12109 | (eval $ac_try) 2>&5 |
| 12110 | ac_status=$? |
| 12111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12112 | (exit $ac_status); }; }; then |
| 12113 | eval "$as_ac_Header=yes" |
| 12114 | else |
| 12115 | echo "$as_me: failed program was:" >&5 |
| 12116 | cat conftest.$ac_ext >&5 |
| 12117 | eval "$as_ac_Header=no" |
| 12118 | fi |
| 12119 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12120 | fi |
| 12121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12122 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12123 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12124 | cat >>confdefs.h <<_ACEOF |
| 12125 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12126 | _ACEOF |
| 12127 | |
| 12128 | fi |
| 12129 | |
| 12130 | done |
| 12131 | |
| 12132 | |
| 12133 | |
| 12134 | for ac_header in resolv.h |
| 12135 | do |
| 12136 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12137 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12138 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12141 | else |
| 12142 | cat >conftest.$ac_ext <<_ACEOF |
| 12143 | #line $LINENO "configure" |
| 12144 | #include "confdefs.h" |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 12145 | #include <sys/types.h> |
| 12146 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 12147 | # include <sys/socket.h> |
| 12148 | #endif |
| 12149 | |
| 12150 | #include <$ac_header> |
| 12151 | _ACEOF |
| 12152 | rm -f conftest.$ac_objext |
| 12153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12154 | (eval $ac_compile) 2>&5 |
| 12155 | ac_status=$? |
| 12156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12157 | (exit $ac_status); } && |
| 12158 | { ac_try='test -s conftest.$ac_objext' |
| 12159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12160 | (eval $ac_try) 2>&5 |
| 12161 | ac_status=$? |
| 12162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12163 | (exit $ac_status); }; }; then |
| 12164 | eval "$as_ac_Header=yes" |
| 12165 | else |
| 12166 | echo "$as_me: failed program was:" >&5 |
| 12167 | cat conftest.$ac_ext >&5 |
| 12168 | eval "$as_ac_Header=no" |
| 12169 | fi |
| 12170 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12171 | fi |
| 12172 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12173 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12174 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12175 | cat >>confdefs.h <<_ACEOF |
| 12176 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12177 | _ACEOF |
| 12178 | |
| 12179 | fi |
| 12180 | |
| 12181 | done |
| 12182 | |
| 12183 | |
| 12184 | |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 12185 | for ac_header in ucontext.h |
| 12186 | do |
| 12187 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12188 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12190 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12192 | else |
| 12193 | cat >conftest.$ac_ext <<_ACEOF |
| 12194 | #line $LINENO "configure" |
| 12195 | #include "confdefs.h" |
| 12196 | #include <signal.h> |
| 12197 | |
| 12198 | #include <$ac_header> |
| 12199 | _ACEOF |
| 12200 | rm -f conftest.$ac_objext |
| 12201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12202 | (eval $ac_compile) 2>&5 |
| 12203 | ac_status=$? |
| 12204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12205 | (exit $ac_status); } && |
| 12206 | { ac_try='test -s conftest.$ac_objext' |
| 12207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12208 | (eval $ac_try) 2>&5 |
| 12209 | ac_status=$? |
| 12210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12211 | (exit $ac_status); }; }; then |
| 12212 | eval "$as_ac_Header=yes" |
| 12213 | else |
| 12214 | echo "$as_me: failed program was:" >&5 |
| 12215 | cat conftest.$ac_ext >&5 |
| 12216 | eval "$as_ac_Header=no" |
| 12217 | fi |
| 12218 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12219 | fi |
| 12220 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12221 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12222 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12223 | cat >>confdefs.h <<_ACEOF |
| 12224 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12225 | _ACEOF |
| 12226 | |
| 12227 | fi |
| 12228 | |
| 12229 | done |
| 12230 | |
| 12231 | |
| 12232 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12233 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12234 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 12235 | if test "${ac_cv_c_const+set}" = set; then |
| 12236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12237 | else |
| 12238 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12239 | #line $LINENO "configure" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12240 | #include "confdefs.h" |
| 12241 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12242 | int |
| 12243 | main () |
| 12244 | { |
| 12245 | /* FIXME: Include the comments suggested by Paul. */ |
| 12246 | #ifndef __cplusplus |
| 12247 | /* Ultrix mips cc rejects this. */ |
| 12248 | typedef int charset[2]; |
| 12249 | const charset x; |
| 12250 | /* SunOS 4.1.1 cc rejects this. */ |
| 12251 | char const *const *ccp; |
| 12252 | char **p; |
| 12253 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 12254 | struct point {int x, y;}; |
| 12255 | static struct point const zero = {0,0}; |
| 12256 | /* AIX XL C 1.02.0.0 rejects this. |
| 12257 | It does not let you subtract one const X* pointer from another in |
| 12258 | an arm of an if-expression whose if-part is not a constant |
| 12259 | expression */ |
| 12260 | const char *g = "string"; |
| 12261 | ccp = &g + (g ? g-g : 0); |
| 12262 | /* HPUX 7.0 cc rejects these. */ |
| 12263 | ++ccp; |
| 12264 | p = (char**) ccp; |
| 12265 | ccp = (char const *const *) p; |
| 12266 | { /* SCO 3.2v4 cc rejects this. */ |
| 12267 | char *t; |
| 12268 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12269 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12270 | *t++ = 0; |
| 12271 | } |
| 12272 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 12273 | int x[] = {25, 17}; |
| 12274 | const int *foo = &x[0]; |
| 12275 | ++foo; |
| 12276 | } |
| 12277 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 12278 | typedef const int *iptr; |
| 12279 | iptr p = 0; |
| 12280 | ++p; |
| 12281 | } |
| 12282 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 12283 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 12284 | struct s { int j; const int *ap[3]; }; |
| 12285 | struct s *b; b->j = 5; |
| 12286 | } |
| 12287 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 12288 | const int foo = 10; |
| 12289 | } |
| 12290 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12291 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12292 | ; |
| 12293 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12294 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12295 | _ACEOF |
| 12296 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12298 | (eval $ac_compile) 2>&5 |
| 12299 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12301 | (exit $ac_status); } && |
| 12302 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12304 | (eval $ac_try) 2>&5 |
| 12305 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12307 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12308 | ac_cv_c_const=yes |
| 12309 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12310 | echo "$as_me: failed program was:" >&5 |
| 12311 | cat conftest.$ac_ext >&5 |
| 12312 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12313 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12314 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12315 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12316 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12317 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12318 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12319 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12320 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12321 | #define const |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12322 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12323 | |
| 12324 | fi |
| 12325 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12326 | echo "$as_me:$LINENO: checking for inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12327 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 12328 | if test "${ac_cv_c_inline+set}" = set; then |
| 12329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12330 | else |
| 12331 | ac_cv_c_inline=no |
| 12332 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12333 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12334 | #line $LINENO "configure" |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12335 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12336 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12337 | typedef int foo_t; |
| 12338 | static $ac_kw foo_t static_foo () {return 0; } |
| 12339 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12340 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12341 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12342 | _ACEOF |
| 12343 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12345 | (eval $ac_compile) 2>&5 |
| 12346 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12348 | (exit $ac_status); } && |
| 12349 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12351 | (eval $ac_try) 2>&5 |
| 12352 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12354 | (exit $ac_status); }; }; then |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12355 | ac_cv_c_inline=$ac_kw; break |
| 12356 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12357 | echo "$as_me: failed program was:" >&5 |
| 12358 | cat conftest.$ac_ext >&5 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12359 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12360 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12361 | done |
| 12362 | |
| 12363 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12364 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12365 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 12366 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12367 | inline | yes) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12368 | no) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12369 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12370 | #define inline |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12371 | _ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12372 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12373 | *) cat >>confdefs.h <<_ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12374 | #define inline $ac_cv_c_inline |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12375 | _ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 12376 | ;; |
| 12377 | esac |
| 12378 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12379 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12380 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 12381 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 12382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12383 | else |
| 12384 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12385 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12386 | #include "confdefs.h" |
| 12387 | $ac_includes_default |
| 12388 | int |
| 12389 | main () |
| 12390 | { |
| 12391 | if ((mode_t *) 0) |
| 12392 | return 0; |
| 12393 | if (sizeof (mode_t)) |
| 12394 | return 0; |
| 12395 | ; |
| 12396 | return 0; |
| 12397 | } |
| 12398 | _ACEOF |
| 12399 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12401 | (eval $ac_compile) 2>&5 |
| 12402 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12404 | (exit $ac_status); } && |
| 12405 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12407 | (eval $ac_try) 2>&5 |
| 12408 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12410 | (exit $ac_status); }; }; then |
| 12411 | ac_cv_type_mode_t=yes |
| 12412 | else |
| 12413 | echo "$as_me: failed program was:" >&5 |
| 12414 | cat conftest.$ac_ext >&5 |
| 12415 | ac_cv_type_mode_t=no |
| 12416 | fi |
| 12417 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12418 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12419 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12420 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 12421 | if test $ac_cv_type_mode_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12422 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12423 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12424 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12425 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12426 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12427 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12428 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12429 | echo "$as_me:$LINENO: checking for off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12430 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 12431 | if test "${ac_cv_type_off_t+set}" = set; then |
| 12432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12433 | else |
| 12434 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12435 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12436 | #include "confdefs.h" |
| 12437 | $ac_includes_default |
| 12438 | int |
| 12439 | main () |
| 12440 | { |
| 12441 | if ((off_t *) 0) |
| 12442 | return 0; |
| 12443 | if (sizeof (off_t)) |
| 12444 | return 0; |
| 12445 | ; |
| 12446 | return 0; |
| 12447 | } |
| 12448 | _ACEOF |
| 12449 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12451 | (eval $ac_compile) 2>&5 |
| 12452 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12454 | (exit $ac_status); } && |
| 12455 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12457 | (eval $ac_try) 2>&5 |
| 12458 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12460 | (exit $ac_status); }; }; then |
| 12461 | ac_cv_type_off_t=yes |
| 12462 | else |
| 12463 | echo "$as_me: failed program was:" >&5 |
| 12464 | cat conftest.$ac_ext >&5 |
| 12465 | ac_cv_type_off_t=no |
| 12466 | fi |
| 12467 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12468 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12469 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12470 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 12471 | if test $ac_cv_type_off_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12472 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12473 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12474 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12475 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12476 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12477 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12478 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12479 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12480 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 12481 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 12482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12483 | else |
| 12484 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12485 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12486 | #include "confdefs.h" |
| 12487 | $ac_includes_default |
| 12488 | int |
| 12489 | main () |
| 12490 | { |
| 12491 | if ((pid_t *) 0) |
| 12492 | return 0; |
| 12493 | if (sizeof (pid_t)) |
| 12494 | return 0; |
| 12495 | ; |
| 12496 | return 0; |
| 12497 | } |
| 12498 | _ACEOF |
| 12499 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12501 | (eval $ac_compile) 2>&5 |
| 12502 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12504 | (exit $ac_status); } && |
| 12505 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12507 | (eval $ac_try) 2>&5 |
| 12508 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12510 | (exit $ac_status); }; }; then |
| 12511 | ac_cv_type_pid_t=yes |
| 12512 | else |
| 12513 | echo "$as_me: failed program was:" >&5 |
| 12514 | cat conftest.$ac_ext >&5 |
| 12515 | ac_cv_type_pid_t=no |
| 12516 | fi |
| 12517 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12518 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12519 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12520 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 12521 | if test $ac_cv_type_pid_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12522 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12523 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12524 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12525 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12526 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12527 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12528 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12529 | echo "$as_me:$LINENO: checking for size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12530 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 12531 | if test "${ac_cv_type_size_t+set}" = set; then |
| 12532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12533 | else |
| 12534 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12535 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12536 | #include "confdefs.h" |
| 12537 | $ac_includes_default |
| 12538 | int |
| 12539 | main () |
| 12540 | { |
| 12541 | if ((size_t *) 0) |
| 12542 | return 0; |
| 12543 | if (sizeof (size_t)) |
| 12544 | return 0; |
| 12545 | ; |
| 12546 | return 0; |
| 12547 | } |
| 12548 | _ACEOF |
| 12549 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12551 | (eval $ac_compile) 2>&5 |
| 12552 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12554 | (exit $ac_status); } && |
| 12555 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12557 | (eval $ac_try) 2>&5 |
| 12558 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12560 | (exit $ac_status); }; }; then |
| 12561 | ac_cv_type_size_t=yes |
| 12562 | else |
| 12563 | echo "$as_me: failed program was:" >&5 |
| 12564 | cat conftest.$ac_ext >&5 |
| 12565 | ac_cv_type_size_t=no |
| 12566 | fi |
| 12567 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12568 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12569 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12570 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 12571 | if test $ac_cv_type_size_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12572 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12573 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12574 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12575 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12576 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12577 | |
| 12578 | fi |
| 12579 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 12580 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
| 12581 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 12582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12583 | else |
| 12584 | cat >conftest.$ac_ext <<_ACEOF |
| 12585 | #line $LINENO "configure" |
| 12586 | #include "confdefs.h" |
| 12587 | $ac_includes_default |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 12588 | int |
| 12589 | main () |
| 12590 | { |
| 12591 | if ((ssize_t *) 0) |
| 12592 | return 0; |
| 12593 | if (sizeof (ssize_t)) |
| 12594 | return 0; |
| 12595 | ; |
| 12596 | return 0; |
| 12597 | } |
| 12598 | _ACEOF |
| 12599 | rm -f conftest.$ac_objext |
| 12600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12601 | (eval $ac_compile) 2>&5 |
| 12602 | ac_status=$? |
| 12603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12604 | (exit $ac_status); } && |
| 12605 | { ac_try='test -s conftest.$ac_objext' |
| 12606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12607 | (eval $ac_try) 2>&5 |
| 12608 | ac_status=$? |
| 12609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12610 | (exit $ac_status); }; }; then |
| 12611 | ac_cv_type_ssize_t=yes |
| 12612 | else |
| 12613 | echo "$as_me: failed program was:" >&5 |
| 12614 | cat conftest.$ac_ext >&5 |
| 12615 | ac_cv_type_ssize_t=no |
| 12616 | fi |
| 12617 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12618 | fi |
| 12619 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 12620 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
| 12621 | if test $ac_cv_type_ssize_t = yes; then |
| 12622 | |
| 12623 | cat >>confdefs.h <<_ACEOF |
| 12624 | #define HAVE_SSIZE_T 1 |
| 12625 | _ACEOF |
| 12626 | |
| 12627 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12628 | fi |
| 12629 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12630 | echo "$as_me:$LINENO: checking for long long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12631 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 12632 | if test "${ac_cv_type_long_long+set}" = set; then |
| 12633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12634 | else |
| 12635 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12636 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12637 | #include "confdefs.h" |
| 12638 | $ac_includes_default |
| 12639 | int |
| 12640 | main () |
| 12641 | { |
| 12642 | if ((long long *) 0) |
| 12643 | return 0; |
| 12644 | if (sizeof (long long)) |
| 12645 | return 0; |
| 12646 | ; |
| 12647 | return 0; |
| 12648 | } |
| 12649 | _ACEOF |
| 12650 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12652 | (eval $ac_compile) 2>&5 |
| 12653 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12655 | (exit $ac_status); } && |
| 12656 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12658 | (eval $ac_try) 2>&5 |
| 12659 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12661 | (exit $ac_status); }; }; then |
| 12662 | ac_cv_type_long_long=yes |
| 12663 | else |
| 12664 | echo "$as_me: failed program was:" >&5 |
| 12665 | cat conftest.$ac_ext >&5 |
| 12666 | ac_cv_type_long_long=no |
| 12667 | fi |
| 12668 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12669 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12670 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12671 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 12672 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12673 | echo "$as_me:$LINENO: checking size of long long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12674 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 12675 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 12676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12677 | else |
| 12678 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12679 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 12680 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12681 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12682 | # This bug is HP SR number 8606223364. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12683 | if test "$cross_compiling" = yes; then |
| 12684 | # Depending upon the size, compute the lo and hi bounds. |
| 12685 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12686 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12687 | #include "confdefs.h" |
| 12688 | $ac_includes_default |
| 12689 | int |
| 12690 | main () |
| 12691 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12692 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 12693 | test_array [0] = 0 |
| 12694 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12695 | ; |
| 12696 | return 0; |
| 12697 | } |
| 12698 | _ACEOF |
| 12699 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12701 | (eval $ac_compile) 2>&5 |
| 12702 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12704 | (exit $ac_status); } && |
| 12705 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12707 | (eval $ac_try) 2>&5 |
| 12708 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12710 | (exit $ac_status); }; }; then |
| 12711 | ac_lo=0 ac_mid=0 |
| 12712 | while :; do |
| 12713 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12714 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12715 | #include "confdefs.h" |
| 12716 | $ac_includes_default |
| 12717 | int |
| 12718 | main () |
| 12719 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12720 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 12721 | test_array [0] = 0 |
| 12722 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12723 | ; |
| 12724 | return 0; |
| 12725 | } |
| 12726 | _ACEOF |
| 12727 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12729 | (eval $ac_compile) 2>&5 |
| 12730 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12732 | (exit $ac_status); } && |
| 12733 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12735 | (eval $ac_try) 2>&5 |
| 12736 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12738 | (exit $ac_status); }; }; then |
| 12739 | ac_hi=$ac_mid; break |
| 12740 | else |
| 12741 | echo "$as_me: failed program was:" >&5 |
| 12742 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12743 | ac_lo=`expr $ac_mid + 1` |
| 12744 | if test $ac_lo -le $ac_mid; then |
| 12745 | ac_lo= ac_hi= |
| 12746 | break |
| 12747 | fi |
| 12748 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12749 | fi |
| 12750 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12751 | done |
| 12752 | else |
| 12753 | echo "$as_me: failed program was:" >&5 |
| 12754 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12755 | cat >conftest.$ac_ext <<_ACEOF |
| 12756 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12757 | #include "confdefs.h" |
| 12758 | $ac_includes_default |
| 12759 | int |
| 12760 | main () |
| 12761 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12762 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 12763 | test_array [0] = 0 |
| 12764 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12765 | ; |
| 12766 | return 0; |
| 12767 | } |
| 12768 | _ACEOF |
| 12769 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12771 | (eval $ac_compile) 2>&5 |
| 12772 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12774 | (exit $ac_status); } && |
| 12775 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12777 | (eval $ac_try) 2>&5 |
| 12778 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12780 | (exit $ac_status); }; }; then |
| 12781 | ac_hi=-1 ac_mid=-1 |
| 12782 | while :; do |
| 12783 | cat >conftest.$ac_ext <<_ACEOF |
| 12784 | #line $LINENO "configure" |
| 12785 | #include "confdefs.h" |
| 12786 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12787 | int |
| 12788 | main () |
| 12789 | { |
| 12790 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 12791 | test_array [0] = 0 |
| 12792 | |
| 12793 | ; |
| 12794 | return 0; |
| 12795 | } |
| 12796 | _ACEOF |
| 12797 | rm -f conftest.$ac_objext |
| 12798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12799 | (eval $ac_compile) 2>&5 |
| 12800 | ac_status=$? |
| 12801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12802 | (exit $ac_status); } && |
| 12803 | { ac_try='test -s conftest.$ac_objext' |
| 12804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12805 | (eval $ac_try) 2>&5 |
| 12806 | ac_status=$? |
| 12807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12808 | (exit $ac_status); }; }; then |
| 12809 | ac_lo=$ac_mid; break |
| 12810 | else |
| 12811 | echo "$as_me: failed program was:" >&5 |
| 12812 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12813 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12814 | if test $ac_mid -le $ac_hi; then |
| 12815 | ac_lo= ac_hi= |
| 12816 | break |
| 12817 | fi |
| 12818 | ac_mid=`expr 2 '*' $ac_mid` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12819 | fi |
| 12820 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12821 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12822 | else |
| 12823 | echo "$as_me: failed program was:" >&5 |
| 12824 | cat conftest.$ac_ext >&5 |
| 12825 | ac_lo= ac_hi= |
| 12826 | fi |
| 12827 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12828 | fi |
| 12829 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12830 | # Binary search between lo and hi bounds. |
| 12831 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12832 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12833 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12834 | #line $LINENO "configure" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12835 | #include "confdefs.h" |
| 12836 | $ac_includes_default |
| 12837 | int |
| 12838 | main () |
| 12839 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12840 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 12841 | test_array [0] = 0 |
| 12842 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12843 | ; |
| 12844 | return 0; |
| 12845 | } |
| 12846 | _ACEOF |
| 12847 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12849 | (eval $ac_compile) 2>&5 |
| 12850 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12852 | (exit $ac_status); } && |
| 12853 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12855 | (eval $ac_try) 2>&5 |
| 12856 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12858 | (exit $ac_status); }; }; then |
| 12859 | ac_hi=$ac_mid |
| 12860 | else |
| 12861 | echo "$as_me: failed program was:" >&5 |
| 12862 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12863 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12864 | fi |
| 12865 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12866 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12867 | case $ac_lo in |
| 12868 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 12869 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 12870 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 12871 | { (exit 1); exit 1; }; } ;; |
| 12872 | esac |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 12873 | else |
| 12874 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12875 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12876 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 12877 | { (exit 1); exit 1; }; } |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 12878 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12879 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12880 | #line $LINENO "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 12881 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12882 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12883 | long longval () { return (long) (sizeof (long long)); } |
| 12884 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
| 12885 | #include <stdio.h> |
| 12886 | #include <stdlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12887 | int |
| 12888 | main () |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 12889 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12890 | |
| 12891 | FILE *f = fopen ("conftest.val", "w"); |
| 12892 | if (! f) |
| 12893 | exit (1); |
| 12894 | if (((long) (sizeof (long long))) < 0) |
| 12895 | { |
| 12896 | long i = longval (); |
| 12897 | if (i != ((long) (sizeof (long long)))) |
| 12898 | exit (1); |
| 12899 | fprintf (f, "%ld\n", i); |
| 12900 | } |
| 12901 | else |
| 12902 | { |
| 12903 | unsigned long i = ulongval (); |
| 12904 | if (i != ((long) (sizeof (long long)))) |
| 12905 | exit (1); |
| 12906 | fprintf (f, "%lu\n", i); |
| 12907 | } |
| 12908 | exit (ferror (f) || fclose (f) != 0); |
| 12909 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12910 | ; |
| 12911 | return 0; |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 12912 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12913 | _ACEOF |
| 12914 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12916 | (eval $ac_link) 2>&5 |
| 12917 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12919 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12921 | (eval $ac_try) 2>&5 |
| 12922 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12924 | (exit $ac_status); }; }; then |
| 12925 | ac_cv_sizeof_long_long=`cat conftest.val` |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 12926 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12927 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12928 | echo "$as_me: failed program was:" >&5 |
| 12929 | cat conftest.$ac_ext >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12930 | ( exit $ac_status ) |
| 12931 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 12932 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 12933 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12934 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12935 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12936 | fi |
| 12937 | fi |
| 12938 | rm -f conftest.val |
| 12939 | else |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 12940 | ac_cv_sizeof_long_long=0 |
| 12941 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 12942 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12943 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12944 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12945 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 12946 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12947 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 12948 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12949 | |
| 12950 | |
| 12951 | echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12952 | echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6 |
| 12953 | if test "${wine_cv_linux_input_h+set}" = set; then |
| 12954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 12955 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12956 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12957 | #line $LINENO "configure" |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 12958 | #include "confdefs.h" |
| 12959 | |
| 12960 | #include <linux/input.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12961 | |
| 12962 | int |
| 12963 | main () |
| 12964 | { |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 12965 | |
| 12966 | int foo = EVIOCGBIT(EV_ABS,42); |
| 12967 | int bar = BTN_PINKIE; |
| 12968 | int fortytwo = 42; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12969 | |
| 12970 | ; |
| 12971 | return 0; |
| 12972 | } |
| 12973 | _ACEOF |
| 12974 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12976 | (eval $ac_compile) 2>&5 |
| 12977 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12979 | (exit $ac_status); } && |
| 12980 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12982 | (eval $ac_try) 2>&5 |
| 12983 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12985 | (exit $ac_status); }; }; then |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 12986 | wine_cv_linux_input_h=yes |
| 12987 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12988 | echo "$as_me: failed program was:" >&5 |
| 12989 | cat conftest.$ac_ext >&5 |
| 12990 | wine_cv_linux_input_h=no |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 12991 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12992 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 12993 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12994 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12995 | echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12996 | echo "${ECHO_T}$wine_cv_linux_input_h" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 12997 | if test "$wine_cv_linux_input_h" = "yes" |
| 12998 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12999 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13000 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 13001 | #define HAVE_CORRECT_LINUXINPUT_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13002 | _ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 13003 | |
| 13004 | fi |
| 13005 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13006 | |
| 13007 | echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13008 | echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6 |
| 13009 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
| 13010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13011 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13012 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13013 | #line $LINENO "configure" |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13014 | #include "confdefs.h" |
| 13015 | |
| 13016 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13017 | |
| 13018 | int |
| 13019 | main () |
| 13020 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13021 | |
| 13022 | char *name=NULL; |
| 13023 | struct hostent he; |
| 13024 | struct hostent *result; |
| 13025 | char *buf=NULL; |
| 13026 | int bufsize=0; |
| 13027 | int res,errnr; |
| 13028 | char *addr=NULL; |
| 13029 | int addrlen=0; |
| 13030 | int addrtype=0; |
| 13031 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 13032 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13033 | |
| 13034 | ; |
| 13035 | return 0; |
| 13036 | } |
| 13037 | _ACEOF |
| 13038 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13040 | (eval $ac_compile) 2>&5 |
| 13041 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13043 | (exit $ac_status); } && |
| 13044 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13046 | (eval $ac_try) 2>&5 |
| 13047 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13049 | (exit $ac_status); }; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13050 | wine_cv_linux_gethostbyname_r_6=yes |
| 13051 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13052 | echo "$as_me: failed program was:" >&5 |
| 13053 | cat conftest.$ac_ext >&5 |
| 13054 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13055 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13056 | fi |
| 13057 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13058 | |
| 13059 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13060 | echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13061 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13062 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 13063 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13064 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13065 | cat >>confdefs.h <<\_ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13066 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13067 | _ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 13068 | |
| 13069 | fi |
| 13070 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13071 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13072 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13073 | echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13074 | echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6 |
| 13075 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
| 13076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13077 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13078 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13079 | #line $LINENO "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13080 | #include "confdefs.h" |
| 13081 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13082 | #include <sys/ioctl.h> |
| 13083 | #include <linux/joystick.h> |
| 13084 | |
| 13085 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 13086 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 13087 | #error "no 2.2 header" |
| 13088 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13089 | |
| 13090 | int |
| 13091 | main () |
| 13092 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13093 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13094 | ; |
| 13095 | return 0; |
| 13096 | } |
| 13097 | _ACEOF |
| 13098 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13100 | (eval $ac_compile) 2>&5 |
| 13101 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13103 | (exit $ac_status); } && |
| 13104 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13106 | (eval $ac_try) 2>&5 |
| 13107 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13109 | (exit $ac_status); }; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13110 | wine_cv_linux_joystick_22_api=yes |
| 13111 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13112 | echo "$as_me: failed program was:" >&5 |
| 13113 | cat conftest.$ac_ext >&5 |
| 13114 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13115 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13116 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13117 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13118 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13119 | echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13120 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6 |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 13121 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13122 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13123 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13124 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13125 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13126 | _ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13127 | |
| 13128 | fi |
| 13129 | fi |
| 13130 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13131 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13132 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
| 13133 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13134 | echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13135 | echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6 |
| 13136 | if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then |
| 13137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13138 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13139 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13140 | #line $LINENO "configure" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 13141 | #include "confdefs.h" |
| 13142 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13143 | #include <sys/types.h> |
| 13144 | #ifdef HAVE_SYS_PARAM_H |
| 13145 | # include <sys/param.h> |
| 13146 | #endif |
| 13147 | #include <sys/vfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13148 | |
| 13149 | int |
| 13150 | main () |
| 13151 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13152 | |
| 13153 | struct statfs stfs; |
| 13154 | |
| 13155 | memset(&stfs,0,sizeof(stfs)); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13156 | |
| 13157 | ; |
| 13158 | return 0; |
| 13159 | } |
| 13160 | _ACEOF |
| 13161 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13163 | (eval $ac_compile) 2>&5 |
| 13164 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13166 | (exit $ac_status); } && |
| 13167 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13169 | (eval $ac_try) 2>&5 |
| 13170 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13172 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13173 | wine_cv_sys_vfs_has_statfs=yes |
| 13174 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13175 | echo "$as_me: failed program was:" >&5 |
| 13176 | cat conftest.$ac_ext >&5 |
| 13177 | wine_cv_sys_vfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13178 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13179 | fi |
| 13180 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13181 | |
| 13182 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13183 | echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13184 | echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13185 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
| 13186 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13187 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13188 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13189 | #define STATFS_DEFINED_BY_SYS_VFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13190 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13191 | |
| 13192 | fi |
| 13193 | fi |
| 13194 | |
| 13195 | if test "$ac_cv_header_sys_statfs_h" = "yes" |
| 13196 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13197 | echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13198 | echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6 |
| 13199 | if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then |
| 13200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13201 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13202 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13203 | #line $LINENO "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13204 | #include "confdefs.h" |
| 13205 | |
| 13206 | #include <sys/types.h> |
| 13207 | #ifdef HAVE_SYS_PARAM_H |
| 13208 | # include <sys/param.h> |
| 13209 | #endif |
| 13210 | #include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13211 | |
| 13212 | int |
| 13213 | main () |
| 13214 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13215 | |
| 13216 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13217 | |
| 13218 | ; |
| 13219 | return 0; |
| 13220 | } |
| 13221 | _ACEOF |
| 13222 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13224 | (eval $ac_compile) 2>&5 |
| 13225 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13227 | (exit $ac_status); } && |
| 13228 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13230 | (eval $ac_try) 2>&5 |
| 13231 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13233 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13234 | wine_cv_sys_statfs_has_statfs=yes |
| 13235 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13236 | echo "$as_me: failed program was:" >&5 |
| 13237 | cat conftest.$ac_ext >&5 |
| 13238 | wine_cv_sys_statfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13239 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13240 | fi |
| 13241 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13242 | |
| 13243 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13244 | echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13245 | echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13246 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
| 13247 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13248 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13249 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13250 | #define STATFS_DEFINED_BY_SYS_STATFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13251 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13252 | |
| 13253 | fi |
| 13254 | fi |
| 13255 | |
| 13256 | if test "$ac_cv_header_sys_mount_h" = "yes" |
| 13257 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13258 | echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13259 | echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6 |
| 13260 | if test "${wine_cv_sys_mount_has_statfs+set}" = set; then |
| 13261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13262 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13263 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13264 | #line $LINENO "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13265 | #include "confdefs.h" |
| 13266 | |
| 13267 | #include <sys/types.h> |
| 13268 | #ifdef HAVE_SYS_PARAM_H |
| 13269 | # include <sys/param.h> |
| 13270 | #endif |
| 13271 | #include <sys/mount.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13272 | |
| 13273 | int |
| 13274 | main () |
| 13275 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13276 | |
| 13277 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13278 | |
| 13279 | ; |
| 13280 | return 0; |
| 13281 | } |
| 13282 | _ACEOF |
| 13283 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13285 | (eval $ac_compile) 2>&5 |
| 13286 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13288 | (exit $ac_status); } && |
| 13289 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13291 | (eval $ac_try) 2>&5 |
| 13292 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13294 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13295 | wine_cv_sys_mount_has_statfs=yes |
| 13296 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13297 | echo "$as_me: failed program was:" >&5 |
| 13298 | cat conftest.$ac_ext >&5 |
| 13299 | wine_cv_sys_mount_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13300 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13301 | fi |
| 13302 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13303 | |
| 13304 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13305 | echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13306 | echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13307 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
| 13308 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13309 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13310 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13311 | #define STATFS_DEFINED_BY_SYS_MOUNT 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13312 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13313 | |
| 13314 | fi |
| 13315 | fi |
| 13316 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13317 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13318 | echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13319 | echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6 |
| 13320 | if test "${ac_cv_c_statfs_f_bfree+set}" = set; then |
| 13321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13322 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13323 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13324 | #line $LINENO "configure" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13325 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13326 | #include <sys/types.h> |
| 13327 | #ifdef HAVE_SYS_PARAM_H |
| 13328 | # include <sys/param.h> |
| 13329 | #endif |
| 13330 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 13331 | # include <sys/mount.h> |
| 13332 | #else |
| 13333 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 13334 | # include <sys/vfs.h> |
| 13335 | # else |
| 13336 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 13337 | # include <sys/statfs.h> |
| 13338 | # endif |
| 13339 | # endif |
| 13340 | #endif |
| 13341 | int |
| 13342 | main () |
| 13343 | { |
| 13344 | struct statfs s; s.f_bfree = 0 |
| 13345 | ; |
| 13346 | return 0; |
| 13347 | } |
| 13348 | _ACEOF |
| 13349 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13351 | (eval $ac_compile) 2>&5 |
| 13352 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13354 | (exit $ac_status); } && |
| 13355 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13357 | (eval $ac_try) 2>&5 |
| 13358 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13360 | (exit $ac_status); }; }; then |
| 13361 | ac_cv_c_statfs_f_bfree="yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13362 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13363 | echo "$as_me: failed program was:" >&5 |
| 13364 | cat conftest.$ac_ext >&5 |
| 13365 | ac_cv_c_statfs_f_bfree="no" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13366 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13367 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13368 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13369 | echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13370 | echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6 |
| 13371 | if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13372 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13373 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13374 | #define STATFS_HAS_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13375 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 13376 | |
| 13377 | fi |
| 13378 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13379 | |
| 13380 | |
| 13381 | echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13382 | echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6 |
| 13383 | if test "${ac_cv_c_statfs_f_bavail+set}" = set; then |
| 13384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13385 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13386 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13387 | #line $LINENO "configure" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13388 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13389 | #include <sys/types.h> |
| 13390 | #ifdef HAVE_SYS_PARAM_H |
| 13391 | # include <sys/param.h> |
| 13392 | #endif |
| 13393 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 13394 | # include <sys/mount.h> |
| 13395 | #else |
| 13396 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 13397 | # include <sys/vfs.h> |
| 13398 | # else |
| 13399 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 13400 | # include <sys/statfs.h> |
| 13401 | # endif |
| 13402 | # endif |
| 13403 | #endif |
| 13404 | int |
| 13405 | main () |
| 13406 | { |
| 13407 | struct statfs s; s.f_bavail = 0 |
| 13408 | ; |
| 13409 | return 0; |
| 13410 | } |
| 13411 | _ACEOF |
| 13412 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13414 | (eval $ac_compile) 2>&5 |
| 13415 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13417 | (exit $ac_status); } && |
| 13418 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13420 | (eval $ac_try) 2>&5 |
| 13421 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13423 | (exit $ac_status); }; }; then |
| 13424 | ac_cv_c_statfs_f_bavail="yes" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13425 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13426 | echo "$as_me: failed program was:" >&5 |
| 13427 | cat conftest.$ac_ext >&5 |
| 13428 | ac_cv_c_statfs_f_bavail="no" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13429 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13430 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13431 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13432 | echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13433 | echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6 |
| 13434 | if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13435 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13436 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13437 | #define STATFS_HAS_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13438 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 13439 | |
| 13440 | fi |
| 13441 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13442 | |
| 13443 | |
| 13444 | echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13445 | echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6 |
| 13446 | if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then |
| 13447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13448 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13449 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13450 | #line $LINENO "configure" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13451 | #include "confdefs.h" |
| 13452 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13453 | #ifdef HAVE_SYS_SOCKET_H |
| 13454 | # include <sys/socket.h> |
| 13455 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13456 | int |
| 13457 | main () |
| 13458 | { |
| 13459 | struct msghdr s; s.msg_accrights = 0 |
| 13460 | ; |
| 13461 | return 0; |
| 13462 | } |
| 13463 | _ACEOF |
| 13464 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13466 | (eval $ac_compile) 2>&5 |
| 13467 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13469 | (exit $ac_status); } && |
| 13470 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13472 | (eval $ac_try) 2>&5 |
| 13473 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13475 | (exit $ac_status); }; }; then |
| 13476 | ac_cv_c_msghdr_msg_accrights="yes" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13477 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13478 | echo "$as_me: failed program was:" >&5 |
| 13479 | cat conftest.$ac_ext >&5 |
| 13480 | ac_cv_c_msghdr_msg_accrights="no" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13481 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13482 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13483 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13484 | echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13485 | echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6 |
| 13486 | if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13487 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13488 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13489 | #define HAVE_MSGHDR_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13490 | _ACEOF |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13491 | |
| 13492 | fi |
| 13493 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13494 | |
| 13495 | |
| 13496 | echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13497 | echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 |
| 13498 | if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then |
| 13499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13500 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13501 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13502 | #line $LINENO "configure" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13503 | #include "confdefs.h" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13504 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13505 | #ifdef HAVE_SYS_SOCKET_H |
| 13506 | # include <sys/socket.h> |
| 13507 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13508 | int |
| 13509 | main () |
| 13510 | { |
| 13511 | struct sockaddr s; s.sa_len = 0 |
| 13512 | ; |
| 13513 | return 0; |
| 13514 | } |
| 13515 | _ACEOF |
| 13516 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13518 | (eval $ac_compile) 2>&5 |
| 13519 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13521 | (exit $ac_status); } && |
| 13522 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13524 | (eval $ac_try) 2>&5 |
| 13525 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13527 | (exit $ac_status); }; }; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13528 | ac_cv_c_sockaddr_sa_len="yes" |
| 13529 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13530 | echo "$as_me: failed program was:" >&5 |
| 13531 | cat conftest.$ac_ext >&5 |
| 13532 | ac_cv_c_sockaddr_sa_len="no" |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13533 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13534 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13535 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13536 | echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13537 | echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6 |
| 13538 | if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13539 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13540 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13541 | #define HAVE_SOCKADDR_SA_LEN 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13542 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13543 | |
| 13544 | fi |
| 13545 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13546 | |
| 13547 | |
| 13548 | echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13549 | echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6 |
| 13550 | if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then |
| 13551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13552 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13553 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13554 | #line $LINENO "configure" |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 13555 | #include "confdefs.h" |
| 13556 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13557 | #ifdef HAVE_SYS_SOCKET_H |
| 13558 | # include <sys/socket.h> |
| 13559 | #endif |
| 13560 | #ifdef HAVE_SYS_UN_H |
| 13561 | # include <sys/un.h> |
| 13562 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13563 | int |
| 13564 | main () |
| 13565 | { |
| 13566 | struct sockaddr_un s; s.sun_len = 0 |
| 13567 | ; |
| 13568 | return 0; |
| 13569 | } |
| 13570 | _ACEOF |
| 13571 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13573 | (eval $ac_compile) 2>&5 |
| 13574 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13576 | (exit $ac_status); } && |
| 13577 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13579 | (eval $ac_try) 2>&5 |
| 13580 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13582 | (exit $ac_status); }; }; then |
| 13583 | ac_cv_c_sockaddr_un_sun_len="yes" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13584 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13585 | echo "$as_me: failed program was:" >&5 |
| 13586 | cat conftest.$ac_ext >&5 |
| 13587 | ac_cv_c_sockaddr_un_sun_len="no" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13588 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13589 | rm -f conftest.$ac_objext conftest.$ac_ext |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13590 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13591 | echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13592 | echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6 |
| 13593 | if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13594 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13595 | cat >>confdefs.h <<\_ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13596 | #define HAVE_SOCKADDR_SUN_LEN 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13597 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13598 | |
| 13599 | fi |
| 13600 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13601 | |
| 13602 | |
| 13603 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13604 | case $host_cpu in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13605 | *i345678986* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13606 | echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13607 | echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6 |
| 13608 | if test "${ac_cv_cpp_def_i386+set}" = set; then |
| 13609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13610 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13611 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13612 | #line $LINENO "configure" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 13613 | #include "confdefs.h" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13614 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13615 | yes |
| 13616 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13617 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13618 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13619 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13620 | ac_cv_cpp_def_i386="yes" |
| 13621 | else |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13622 | ac_cv_cpp_def_i386="no" |
| 13623 | fi |
| 13624 | rm -f conftest* |
| 13625 | |
| 13626 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13627 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13628 | echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6 |
| 13629 | ;; |
| 13630 | esac |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13631 | if test "$ac_cv_cpp_def_i386" = "yes" |
| 13632 | then |
| 13633 | CFLAGS="$CFLAGS -D__i386__" |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 13634 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 13635 | fi |
| 13636 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13637 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13638 | case $host_cpu in |
| 13639 | *sparc* ) |
| 13640 | echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5 |
| 13641 | echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6 |
| 13642 | if test "${ac_cv_cpp_def_sparc+set}" = set; then |
| 13643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13644 | else |
| 13645 | cat >conftest.$ac_ext <<_ACEOF |
| 13646 | #line $LINENO "configure" |
| 13647 | #include "confdefs.h" |
| 13648 | #ifndef __sparc__ |
| 13649 | yes |
| 13650 | #endif |
| 13651 | _ACEOF |
| 13652 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13653 | $EGREP "yes" >/dev/null 2>&1; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13654 | ac_cv_cpp_def_sparc="yes" |
| 13655 | else |
| 13656 | ac_cv_cpp_def_sparc="no" |
| 13657 | fi |
| 13658 | rm -f conftest* |
| 13659 | |
| 13660 | fi |
| 13661 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sparc" >&5 |
| 13662 | echo "${ECHO_T}$ac_cv_cpp_def_sparc" >&6 |
| 13663 | ;; |
| 13664 | esac |
| 13665 | if test "$ac_cv_cpp_def_sparc" = "yes" |
| 13666 | then |
| 13667 | CFLAGS="$CFLAGS -D__sparc__" |
| 13668 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
| 13669 | fi |
| 13670 | |
| 13671 | |
| 13672 | case $host_vendor in |
| 13673 | *sun* ) |
| 13674 | echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5 |
| 13675 | echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6 |
| 13676 | if test "${ac_cv_cpp_def_sun+set}" = set; then |
| 13677 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13678 | else |
| 13679 | cat >conftest.$ac_ext <<_ACEOF |
| 13680 | #line $LINENO "configure" |
| 13681 | #include "confdefs.h" |
| 13682 | #ifndef __sun__ |
| 13683 | yes |
| 13684 | #endif |
| 13685 | _ACEOF |
| 13686 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13687 | $EGREP "yes" >/dev/null 2>&1; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 13688 | ac_cv_cpp_def_sun="yes" |
| 13689 | else |
| 13690 | ac_cv_cpp_def_sun="no" |
| 13691 | fi |
| 13692 | rm -f conftest* |
| 13693 | |
| 13694 | fi |
| 13695 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sun" >&5 |
| 13696 | echo "${ECHO_T}$ac_cv_cpp_def_sun" >&6 |
| 13697 | ;; |
| 13698 | esac |
| 13699 | if test "$ac_cv_cpp_def_sun" = "yes" |
| 13700 | then |
| 13701 | CFLAGS="$CFLAGS -D__sun__" |
| 13702 | LINTFLAGS="$LINTFLAGS -D__sun__" |
| 13703 | fi |
| 13704 | |
| 13705 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13706 | |
| 13707 | |
| 13708 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13709 | ac_config_commands="$ac_config_commands controls" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13710 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13711 | ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 13712 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13713 | ac_config_commands="$ac_config_commands dlls/ddraw/dclipper" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 13714 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13715 | ac_config_commands="$ac_config_commands dlls/ddraw/ddraw" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 13716 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13717 | ac_config_commands="$ac_config_commands dlls/ddraw/direct3d" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 13718 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13719 | ac_config_commands="$ac_config_commands dlls/ddraw/dpalette" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 13720 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13721 | ac_config_commands="$ac_config_commands dlls/ddraw/dsurface" |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 13722 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13723 | ac_config_commands="$ac_config_commands dlls/dinput/joystick" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13724 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13725 | ac_config_commands="$ac_config_commands dlls/dinput/keyboard" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13726 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13727 | ac_config_commands="$ac_config_commands dlls/dinput/mouse" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13728 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13729 | ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 13730 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13731 | ac_config_commands="$ac_config_commands dlls/gdi/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 13732 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13733 | ac_config_commands="$ac_config_commands dlls/gdi/win16drv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 13734 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13735 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13736 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13737 | ac_config_commands="$ac_config_commands dlls/user/dde" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13738 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13739 | ac_config_commands="$ac_config_commands dlls/user/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13740 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13741 | ac_config_commands="$ac_config_commands dlls/wineps/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13742 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13743 | ac_config_commands="$ac_config_commands files" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13744 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13745 | ac_config_commands="$ac_config_commands graphics" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13746 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13747 | ac_config_commands="$ac_config_commands graphics/x11drv" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13748 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13749 | ac_config_commands="$ac_config_commands if1632" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13750 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13751 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13752 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13753 | ac_config_commands="$ac_config_commands loader" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13754 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13755 | ac_config_commands="$ac_config_commands loader/ne" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13756 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13757 | ac_config_commands="$ac_config_commands memory" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13758 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13759 | ac_config_commands="$ac_config_commands misc" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13760 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13761 | ac_config_commands="$ac_config_commands msdos" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13762 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13763 | ac_config_commands="$ac_config_commands objects" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13764 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13765 | ac_config_commands="$ac_config_commands programs/regapi/tests" |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 13766 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13767 | ac_config_commands="$ac_config_commands programs/regedit/tests" |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 13768 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13769 | ac_config_commands="$ac_config_commands relay32" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13770 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13771 | ac_config_commands="$ac_config_commands scheduler" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13772 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13773 | ac_config_commands="$ac_config_commands win32" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13774 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13775 | ac_config_commands="$ac_config_commands windows" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 13776 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 13777 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 13778 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13779 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13780 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 13781 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 13782 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13783 | |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 13784 | MAKE_TEST_RULES=dlls/Maketest.rules |
| 13785 | |
| 13786 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 13787 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 13788 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13789 | |
Patrik Stridvall | d1447fa | 2002-11-19 00:47:12 +0000 | [diff] [blame] | 13790 | ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/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/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/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/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rundll32/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile unicode/Makefile" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13791 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 13792 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13793 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13794 | # This file is a shell script that caches the results of configure |
| 13795 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13796 | # scripts and configure runs, see configure's option --config-cache. |
| 13797 | # It is not useful on other systems. If it contains results you don't |
| 13798 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13799 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13800 | # config.status only pays attention to the cache file if you give it |
| 13801 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13802 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13803 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13804 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13805 | # following values. |
| 13806 | |
| 13807 | _ACEOF |
| 13808 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 13809 | # The following way of writing the cache mishandles newlines in values, |
| 13810 | # but we know of no workaround that is simple, portable, and efficient. |
| 13811 | # So, don't put newlines in cache variables' values. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13812 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13813 | # 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] | 13814 | { |
| 13815 | (set) 2>&1 | |
| 13816 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 13817 | *ac_space=\ *) |
| 13818 | # `set' does not quote correctly, so add quotes (double-quote |
| 13819 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 13820 | sed -n \ |
| 13821 | "s/'/'\\\\''/g; |
| 13822 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 13823 | ;; |
| 13824 | *) |
| 13825 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 13826 | sed -n \ |
| 13827 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 13828 | ;; |
| 13829 | esac; |
| 13830 | } | |
| 13831 | sed ' |
| 13832 | t clear |
| 13833 | : clear |
| 13834 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13835 | t end |
| 13836 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13837 | : end' >>confcache |
| 13838 | if cmp -s $cache_file confcache; then :; else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13839 | if test -w $cache_file; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13840 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 13841 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13842 | else |
| 13843 | echo "not updating unwritable cache $cache_file" |
| 13844 | fi |
| 13845 | fi |
| 13846 | rm -f confcache |
| 13847 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13848 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13849 | # Let make expand exec_prefix. |
| 13850 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13851 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13852 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 13853 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 13854 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 13855 | # (actually we leave an empty line to preserve line numbers). |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13856 | if test "x$srcdir" = x.; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13857 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 13858 | s/:*\$(srcdir):*/:/; |
| 13859 | s/:*\${srcdir}:*/:/; |
| 13860 | s/:*@srcdir@:*/:/; |
| 13861 | s/^\([^=]*=[ ]*\):*/\1/; |
| 13862 | s/:*$//; |
| 13863 | s/^[^=]*=[ ]*$//; |
| 13864 | }' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13865 | fi |
| 13866 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 13867 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13868 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13869 | ac_libobjs= |
| 13870 | ac_ltlibobjs= |
| 13871 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13872 | # 1. Remove the extension, and $U if already installed. |
| 13873 | ac_i=`echo "$ac_i" | |
| 13874 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 13875 | # 2. Add them. |
| 13876 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 13877 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 13878 | done |
| 13879 | LIBOBJS=$ac_libobjs |
| 13880 | |
| 13881 | LTLIBOBJS=$ac_ltlibobjs |
| 13882 | |
| 13883 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13884 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13885 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13886 | ac_clean_files_save=$ac_clean_files |
| 13887 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13888 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13889 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 13890 | cat >$CONFIG_STATUS <<_ACEOF |
| 13891 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13892 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13893 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13894 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13895 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13896 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13897 | debug=false |
| 13898 | SHELL=\${CONFIG_SHELL-$SHELL} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13899 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13900 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13901 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13902 | ## --------------------- ## |
| 13903 | ## M4sh Initialization. ## |
| 13904 | ## --------------------- ## |
| 13905 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13906 | # Be Bourne compatible |
| 13907 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 13908 | emulate sh |
| 13909 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13910 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 13911 | # is contrary to our usage. Disable this feature. |
| 13912 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13913 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 13914 | set -o posix |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 13915 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13916 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13917 | # Support unset when possible. |
| 13918 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 13919 | as_unset=unset |
| 13920 | else |
| 13921 | as_unset=false |
| 13922 | fi |
| 13923 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13924 | |
| 13925 | # Work around bugs in pre-3.0 UWIN ksh. |
| 13926 | $as_unset ENV MAIL MAILPATH |
| 13927 | PS1='$ ' |
| 13928 | PS2='> ' |
| 13929 | PS4='+ ' |
| 13930 | |
| 13931 | # NLS nuisances. |
| 13932 | for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME |
| 13933 | do |
| 13934 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 13935 | eval $as_var=C; export $as_var |
| 13936 | else |
| 13937 | $as_unset $as_var |
| 13938 | fi |
| 13939 | done |
| 13940 | |
| 13941 | # Required to use basename. |
| 13942 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 13943 | as_expr=expr |
| 13944 | else |
| 13945 | as_expr=false |
| 13946 | fi |
| 13947 | |
| 13948 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 13949 | as_basename=basename |
| 13950 | else |
| 13951 | as_basename=false |
| 13952 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13953 | |
| 13954 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13955 | # Name of the executable. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13956 | as_me=`$as_basename "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13957 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 13958 | X"$0" : 'X\(//\)$' \| \ |
| 13959 | X"$0" : 'X\(/\)$' \| \ |
| 13960 | . : '\(.\)' 2>/dev/null || |
| 13961 | echo X/"$0" | |
| 13962 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 13963 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 13964 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 13965 | s/.*/./; q'` |
| 13966 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13967 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13968 | # PATH needs CR, and LINENO needs CR and PATH. |
| 13969 | # Avoid depending upon Character Ranges. |
| 13970 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 13971 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13972 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 13973 | as_cr_digits='0123456789' |
| 13974 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 13975 | |
| 13976 | # The user is always right. |
| 13977 | if test "${PATH_SEPARATOR+set}" != set; then |
| 13978 | echo "#! /bin/sh" >conftest.sh |
| 13979 | echo "exit 0" >>conftest.sh |
| 13980 | chmod +x conftest.sh |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13981 | if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13982 | PATH_SEPARATOR=';' |
| 13983 | else |
| 13984 | PATH_SEPARATOR=: |
| 13985 | fi |
| 13986 | rm -f conftest.sh |
| 13987 | fi |
| 13988 | |
| 13989 | |
| 13990 | as_lineno_1=$LINENO |
| 13991 | as_lineno_2=$LINENO |
| 13992 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 13993 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 13994 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 13995 | # Find who we are. Look in the path if we contain no path at all |
| 13996 | # relative or not. |
| 13997 | case $0 in |
| 13998 | *[\\/]* ) as_myself=$0 ;; |
| 13999 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14000 | for as_dir in $PATH |
| 14001 | do |
| 14002 | IFS=$as_save_IFS |
| 14003 | test -z "$as_dir" && as_dir=. |
| 14004 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14005 | done |
| 14006 | |
| 14007 | ;; |
| 14008 | esac |
| 14009 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14010 | # in which case we are not to be found in the path. |
| 14011 | if test "x$as_myself" = x; then |
| 14012 | as_myself=$0 |
| 14013 | fi |
| 14014 | if test ! -f "$as_myself"; then |
| 14015 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 14016 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 14017 | { (exit 1); exit 1; }; } |
| 14018 | fi |
| 14019 | case $CONFIG_SHELL in |
| 14020 | '') |
| 14021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14022 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 14023 | do |
| 14024 | IFS=$as_save_IFS |
| 14025 | test -z "$as_dir" && as_dir=. |
| 14026 | for as_base in sh bash ksh sh5; do |
| 14027 | case $as_dir in |
| 14028 | /*) |
| 14029 | if ("$as_dir/$as_base" -c ' |
| 14030 | as_lineno_1=$LINENO |
| 14031 | as_lineno_2=$LINENO |
| 14032 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 14033 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 14034 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14035 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 14036 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14037 | CONFIG_SHELL=$as_dir/$as_base |
| 14038 | export CONFIG_SHELL |
| 14039 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 14040 | fi;; |
| 14041 | esac |
| 14042 | done |
| 14043 | done |
| 14044 | ;; |
| 14045 | esac |
| 14046 | |
| 14047 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 14048 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 14049 | # line-number line before each line; the second 'sed' does the real |
| 14050 | # work. The second script uses 'N' to pair each line-number line |
| 14051 | # with the numbered line, and appends trailing '-' during |
| 14052 | # substitution so that $LINENO is not a special case at line end. |
| 14053 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 14054 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 14055 | sed '=' <$as_myself | |
| 14056 | sed ' |
| 14057 | N |
| 14058 | s,$,-, |
| 14059 | : loop |
| 14060 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 14061 | t loop |
| 14062 | s,-$,, |
| 14063 | s,^['$as_cr_digits']*\n,, |
| 14064 | ' >$as_me.lineno && |
| 14065 | chmod +x $as_me.lineno || |
| 14066 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 14067 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 14068 | { (exit 1); exit 1; }; } |
| 14069 | |
| 14070 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 14071 | # (the dirname of $[0] is not the place where we might find the |
| 14072 | # original and so on. Autoconf is especially sensible to this). |
| 14073 | . ./$as_me.lineno |
| 14074 | # Exit status is that of the last command. |
| 14075 | exit |
| 14076 | } |
| 14077 | |
| 14078 | |
| 14079 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 14080 | *c*,-n*) ECHO_N= ECHO_C=' |
| 14081 | ' ECHO_T=' ' ;; |
| 14082 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 14083 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 14084 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14085 | |
| 14086 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 14087 | as_expr=expr |
| 14088 | else |
| 14089 | as_expr=false |
| 14090 | fi |
| 14091 | |
| 14092 | rm -f conf$$ conf$$.exe conf$$.file |
| 14093 | echo >conf$$.file |
| 14094 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14095 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 14096 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 14097 | if test -f conf$$.exe; then |
| 14098 | # Don't use ln at all; we don't have any links |
| 14099 | as_ln_s='cp -p' |
| 14100 | else |
| 14101 | as_ln_s='ln -s' |
| 14102 | fi |
| 14103 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14104 | as_ln_s=ln |
| 14105 | else |
| 14106 | as_ln_s='cp -p' |
| 14107 | fi |
| 14108 | rm -f conf$$ conf$$.exe conf$$.file |
| 14109 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14110 | if mkdir -p . 2>/dev/null; then |
| 14111 | as_mkdir_p=: |
| 14112 | else |
| 14113 | as_mkdir_p=false |
| 14114 | fi |
| 14115 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14116 | as_executable_p="test -f" |
| 14117 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14118 | # Sed expression to map a string onto a valid CPP name. |
| 14119 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14120 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14121 | # Sed expression to map a string onto a valid variable name. |
| 14122 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 14123 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14124 | |
| 14125 | # IFS |
| 14126 | # We need space, tab and new line, in precisely that order. |
| 14127 | as_nl=' |
| 14128 | ' |
| 14129 | IFS=" $as_nl" |
| 14130 | |
| 14131 | # CDPATH. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14132 | $as_unset CDPATH |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14133 | |
| 14134 | exec 6>&1 |
| 14135 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14136 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 14137 | # report actual input values of CONFIG_FILES etc. instead of their |
| 14138 | # values after options handling. Logging --version etc. is OK. |
| 14139 | exec 5>>config.log |
| 14140 | { |
| 14141 | echo |
| 14142 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14143 | ## Running $as_me. ## |
| 14144 | _ASBOX |
| 14145 | } >&5 |
| 14146 | cat >&5 <<_CSEOF |
| 14147 | |
Alexandre Julliard | e8d0f97 | 2002-11-01 02:30:46 +0000 | [diff] [blame] | 14148 | This file was extended by Wine $as_me 20021031, which was |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14149 | generated by GNU Autoconf 2.54. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14150 | |
| 14151 | CONFIG_FILES = $CONFIG_FILES |
| 14152 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 14153 | CONFIG_LINKS = $CONFIG_LINKS |
| 14154 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14155 | $ $0 $@ |
| 14156 | |
| 14157 | _CSEOF |
| 14158 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 14159 | echo >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14160 | _ACEOF |
| 14161 | |
| 14162 | # Files that config.status was made for. |
| 14163 | if test -n "$ac_config_files"; then |
| 14164 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 14165 | fi |
| 14166 | |
| 14167 | if test -n "$ac_config_headers"; then |
| 14168 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 14169 | fi |
| 14170 | |
| 14171 | if test -n "$ac_config_links"; then |
| 14172 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 14173 | fi |
| 14174 | |
| 14175 | if test -n "$ac_config_commands"; then |
| 14176 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 14177 | fi |
| 14178 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14179 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14180 | |
| 14181 | ac_cs_usage="\ |
| 14182 | \`$as_me' instantiates files from templates according to the |
| 14183 | current configuration. |
| 14184 | |
| 14185 | Usage: $0 [OPTIONS] [FILE]... |
| 14186 | |
| 14187 | -h, --help print this help, then exit |
| 14188 | -V, --version print version number, then exit |
| 14189 | -d, --debug don't remove temporary files |
| 14190 | --recheck update $as_me by reconfiguring in the same conditions |
| 14191 | --file=FILE[:TEMPLATE] |
| 14192 | instantiate the configuration file FILE |
| 14193 | --header=FILE[:TEMPLATE] |
| 14194 | instantiate the configuration header FILE |
| 14195 | |
| 14196 | Configuration files: |
| 14197 | $config_files |
| 14198 | |
| 14199 | Configuration headers: |
| 14200 | $config_headers |
| 14201 | |
| 14202 | Configuration commands: |
| 14203 | $config_commands |
| 14204 | |
| 14205 | Report bugs to <bug-autoconf@gnu.org>." |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14206 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 14207 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14208 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14209 | ac_cs_version="\\ |
Alexandre Julliard | e8d0f97 | 2002-11-01 02:30:46 +0000 | [diff] [blame] | 14210 | Wine config.status 20021031 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14211 | configured by $0, generated by GNU Autoconf 2.54, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14212 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14213 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14214 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 14215 | Free Software Foundation, Inc. |
| 14216 | This config.status script is free software; the Free Software Foundation |
| 14217 | gives unlimited permission to copy, distribute and modify it." |
| 14218 | srcdir=$srcdir |
| 14219 | INSTALL="$INSTALL" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14220 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14221 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14222 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14223 | # If no file are specified by the user, then we need to provide default |
| 14224 | # value. By we need to know if files were specified by the user. |
| 14225 | ac_need_defaults=: |
| 14226 | while test $# != 0 |
| 14227 | do |
| 14228 | case $1 in |
| 14229 | --*=*) |
| 14230 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 14231 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14232 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14233 | ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14234 | -*) |
| 14235 | ac_option=$1 |
| 14236 | ac_optarg=$2 |
| 14237 | ac_shift=shift |
| 14238 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14239 | *) # This is not an option, so the user has probably given explicit |
| 14240 | # arguments. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14241 | ac_option=$1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14242 | ac_need_defaults=false;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14243 | esac |
| 14244 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14245 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14246 | # Handling of the options. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14247 | _ACEOF |
| 14248 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14249 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14250 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 14251 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14252 | _ACEOF |
| 14253 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14254 | --version | --vers* | -V ) |
| 14255 | echo "$ac_cs_version"; exit 0 ;; |
| 14256 | --he | --h) |
| 14257 | # Conflict between --help and --header |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14258 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14259 | Try \`$0 --help' for more information." >&5 |
| 14260 | echo "$as_me: error: ambiguous option: $1 |
| 14261 | Try \`$0 --help' for more information." >&2;} |
| 14262 | { (exit 1); exit 1; }; };; |
| 14263 | --help | --hel | -h ) |
| 14264 | echo "$ac_cs_usage"; exit 0 ;; |
| 14265 | --debug | --d* | -d ) |
| 14266 | debug=: ;; |
| 14267 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14268 | $ac_shift |
| 14269 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14270 | ac_need_defaults=false;; |
| 14271 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14272 | $ac_shift |
| 14273 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14274 | ac_need_defaults=false;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14275 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14276 | # This is an error. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14277 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14278 | Try \`$0 --help' for more information." >&5 |
| 14279 | echo "$as_me: error: unrecognized option: $1 |
| 14280 | Try \`$0 --help' for more information." >&2;} |
| 14281 | { (exit 1); exit 1; }; } ;; |
| 14282 | |
| 14283 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 14284 | |
| 14285 | esac |
| 14286 | shift |
| 14287 | done |
| 14288 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14289 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14290 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14291 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14292 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14293 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14294 | |
| 14295 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14296 | for ac_config_target in $ac_config_targets |
| 14297 | do |
| 14298 | case "$ac_config_target" in |
| 14299 | # Handling of arguments. |
| 14300 | "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
| 14301 | "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 14302 | "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14303 | "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
| 14304 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14305 | "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; |
| 14306 | "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 14307 | "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14308 | "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; |
| 14309 | "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; |
Patrik Stridvall | d1447fa | 2002-11-19 00:47:12 +0000 | [diff] [blame] | 14310 | "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;; |
John K. Hohm | 34909c2 | 2002-05-14 21:50:56 +0000 | [diff] [blame] | 14311 | "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14312 | "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
| 14313 | "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;; |
| 14314 | "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
| 14315 | "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; |
Sylvain Petreolle | 3a99d8b | 2002-06-25 23:23:03 +0000 | [diff] [blame] | 14316 | "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14317 | "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; |
| 14318 | "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; |
| 14319 | "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; |
| 14320 | "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; |
Ove Kaaven | d2d08f0 | 2002-06-14 00:39:44 +0000 | [diff] [blame] | 14321 | "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14322 | "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; |
| 14323 | "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; |
| 14324 | "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; |
| 14325 | "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; |
Patrik Stridvall | 928ecb4 | 2002-10-02 19:58:27 +0000 | [diff] [blame] | 14326 | "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14327 | "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
| 14328 | "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; |
| 14329 | "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; |
| 14330 | "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; |
| 14331 | "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 14332 | "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14333 | "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;; |
| 14334 | "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; |
| 14335 | "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; |
| 14336 | "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;; |
Hidenori Takeshima | 0307f6d | 2002-03-23 20:18:11 +0000 | [diff] [blame] | 14337 | "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;; |
Eric Pouech | bed67fc | 2002-05-22 02:00:05 +0000 | [diff] [blame] | 14338 | "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;; |
Hidenori Takeshima | bcb9c46 | 2002-03-22 19:16:10 +0000 | [diff] [blame] | 14339 | "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;; |
Eric Pouech | b706b23 | 2002-06-04 17:53:46 +0000 | [diff] [blame] | 14340 | "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14341 | "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
| 14342 | "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; |
Mike McCormack | f6be044 | 2002-04-08 23:56:14 +0000 | [diff] [blame] | 14343 | "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14344 | "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14345 | "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; |
Uwe Bonnes | a768fa3 | 2002-10-30 23:49:03 +0000 | [diff] [blame] | 14346 | "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14347 | "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; |
| 14348 | "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;; |
Michael Günnewig | 288b8ee | 2002-10-08 00:40:05 +0000 | [diff] [blame] | 14349 | "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14350 | "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
Andriy Palamarchuk | b812c90 | 2002-09-11 02:35:17 +0000 | [diff] [blame] | 14351 | "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14352 | "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; |
Jon Griffiths | 1da2971 | 2002-08-15 22:08:40 +0000 | [diff] [blame] | 14353 | "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14354 | "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; |
| 14355 | "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; |
| 14356 | "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 14357 | "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14358 | "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;; |
| 14359 | "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; |
| 14360 | "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; |
| 14361 | "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;; |
| 14362 | "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; |
| 14363 | "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; |
| 14364 | "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
| 14365 | "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; |
| 14366 | "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
| 14367 | "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;; |
| 14368 | "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; |
Greg Turner | ac89cc2 | 2002-10-07 21:54:07 +0000 | [diff] [blame] | 14369 | "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14370 | "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; |
| 14371 | "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; |
| 14372 | "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; |
| 14373 | "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; |
Andriy Palamarchuk | 5b5bea0 | 2002-08-27 01:34:33 +0000 | [diff] [blame] | 14374 | "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14375 | "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; |
| 14376 | "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 14377 | "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;; |
Patrik Stridvall | 4c692b9 | 2002-04-29 18:43:35 +0000 | [diff] [blame] | 14378 | "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14379 | "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
| 14380 | "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
| 14381 | "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;; |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 14382 | "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14383 | "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
| 14384 | "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; |
Patrik Stridvall | 9398d9c | 2002-11-12 01:13:10 +0000 | [diff] [blame] | 14385 | "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14386 | "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 14387 | "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14388 | "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; |
| 14389 | "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;; |
| 14390 | "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;; |
| 14391 | "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; |
| 14392 | "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;; |
| 14393 | "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 14394 | "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14395 | "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; |
| 14396 | "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; |
| 14397 | "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;; |
| 14398 | "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;; |
| 14399 | "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;; |
| 14400 | "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;; |
| 14401 | "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;; |
| 14402 | "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;; |
Francois Gouget | 4ce2837 | 2002-11-04 23:47:49 +0000 | [diff] [blame] | 14403 | "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14404 | "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;; |
Eric Pouech | a120ce0 | 2002-06-28 17:40:16 +0000 | [diff] [blame] | 14405 | "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14406 | "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14407 | "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;; |
| 14408 | "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14409 | "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
| 14410 | "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;; |
| 14411 | "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 14412 | "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14413 | "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;; |
| 14414 | "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; |
| 14415 | "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; |
| 14416 | "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; |
| 14417 | "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;; |
| 14418 | "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14419 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
| 14420 | "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14421 | "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14422 | "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;; |
| 14423 | "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; |
| 14424 | "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;; |
| 14425 | "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; |
| 14426 | "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
| 14427 | "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; |
Alexandre Julliard | acfda14 | 2002-05-20 19:18:16 +0000 | [diff] [blame] | 14428 | "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14429 | "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
| 14430 | "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;; |
| 14431 | "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
| 14432 | "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;; |
Andriy Palamarchuk | 4e2e176 | 2002-04-11 23:58:40 +0000 | [diff] [blame] | 14433 | "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; |
Andriy Palamarchuk | 2f0d85c | 2002-04-29 23:47:39 +0000 | [diff] [blame] | 14434 | "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14435 | "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;; |
Alberto Massari | 15e8e0a | 2002-11-15 01:41:20 +0000 | [diff] [blame] | 14436 | "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14437 | "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; |
| 14438 | "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; |
| 14439 | "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; |
| 14440 | "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; |
Alexandre Julliard | f264bd3 | 2002-09-13 17:54:27 +0000 | [diff] [blame] | 14441 | "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;; |
Alexandre Julliard | 65a4216 | 2002-06-04 21:29:40 +0000 | [diff] [blame] | 14442 | "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14443 | "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; |
Mike Wetherell | 0d8a9fa | 2002-05-05 20:31:54 +0000 | [diff] [blame] | 14444 | "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14445 | "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; |
| 14446 | "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14447 | "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
| 14448 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
Alexandre Julliard | 7d4ee77 | 2002-07-16 03:20:45 +0000 | [diff] [blame] | 14449 | "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14450 | "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;; |
| 14451 | "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
| 14452 | "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; |
| 14453 | "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; |
Alexandre Julliard | b7d3c79 | 2002-07-16 02:33:10 +0000 | [diff] [blame] | 14454 | "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14455 | "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14456 | "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 14457 | "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14458 | "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;; |
| 14459 | "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;; |
| 14460 | "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;; |
| 14461 | "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;; |
| 14462 | "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;; |
| 14463 | "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;; |
| 14464 | "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;; |
| 14465 | "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;; |
| 14466 | "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;; |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 14467 | "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;; |
| 14468 | "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;; |
| 14469 | "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14470 | "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
| 14471 | "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;; |
| 14472 | "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
| 14473 | "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 14474 | "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;; |
| 14475 | "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;; |
| 14476 | "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;; |
| 14477 | "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14478 | "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 14479 | "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;; |
| 14480 | "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;; |
| 14481 | "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;; |
| 14482 | "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;; |
| 14483 | "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;; |
| 14484 | "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;; |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 14485 | "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 14486 | "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 14487 | "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;; |
| 14488 | "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;; |
| 14489 | "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;; |
| 14490 | "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14491 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14492 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14493 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 14494 | { (exit 1); exit 1; }; };; |
| 14495 | esac |
| 14496 | done |
| 14497 | |
| 14498 | # If the user did not use the arguments to specify the items to instantiate, |
| 14499 | # then the envvar interface is used. Set only those that are not. |
| 14500 | # We use the long form for the default assignment because of an extremely |
| 14501 | # bizarre bug on SunOS 4.1.3. |
| 14502 | if $ac_need_defaults; then |
| 14503 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14504 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 14505 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14506 | fi |
| 14507 | |
| 14508 | # Create a temporary directory, and hook for its removal unless debugging. |
| 14509 | $debug || |
| 14510 | { |
| 14511 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 14512 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 14513 | } |
| 14514 | |
| 14515 | # Create a (secure) tmp directory for tmp files. |
| 14516 | : ${TMPDIR=/tmp} |
| 14517 | { |
| 14518 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 14519 | test -n "$tmp" && test -d "$tmp" |
| 14520 | } || |
| 14521 | { |
| 14522 | tmp=$TMPDIR/cs$$-$RANDOM |
| 14523 | (umask 077 && mkdir $tmp) |
| 14524 | } || |
| 14525 | { |
| 14526 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 14527 | { (exit 1); exit 1; } |
| 14528 | } |
| 14529 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14530 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14531 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14532 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14533 | |
| 14534 | # |
| 14535 | # CONFIG_FILES section. |
| 14536 | # |
| 14537 | |
| 14538 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 14539 | # This happens for instance when ./config.status config.h |
| 14540 | if test -n "\$CONFIG_FILES"; then |
| 14541 | # Protect against being on the right side of a sed subst in config.status. |
| 14542 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 14543 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 14544 | s,@SHELL@,$SHELL,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14545 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 14546 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 14547 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 14548 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 14549 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 14550 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14551 | s,@exec_prefix@,$exec_prefix,;t t |
| 14552 | s,@prefix@,$prefix,;t t |
| 14553 | s,@program_transform_name@,$program_transform_name,;t t |
| 14554 | s,@bindir@,$bindir,;t t |
| 14555 | s,@sbindir@,$sbindir,;t t |
| 14556 | s,@libexecdir@,$libexecdir,;t t |
| 14557 | s,@datadir@,$datadir,;t t |
| 14558 | s,@sysconfdir@,$sysconfdir,;t t |
| 14559 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 14560 | s,@localstatedir@,$localstatedir,;t t |
| 14561 | s,@libdir@,$libdir,;t t |
| 14562 | s,@includedir@,$includedir,;t t |
| 14563 | s,@oldincludedir@,$oldincludedir,;t t |
| 14564 | s,@infodir@,$infodir,;t t |
| 14565 | s,@mandir@,$mandir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14566 | s,@build_alias@,$build_alias,;t t |
| 14567 | s,@host_alias@,$host_alias,;t t |
| 14568 | s,@target_alias@,$target_alias,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14569 | s,@DEFS@,$DEFS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14570 | s,@ECHO_C@,$ECHO_C,;t t |
| 14571 | s,@ECHO_N@,$ECHO_N,;t t |
| 14572 | s,@ECHO_T@,$ECHO_T,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14573 | s,@LIBS@,$LIBS,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14574 | s,@LIBEXT@,$LIBEXT,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14575 | s,@OPTIONS@,$OPTIONS,;t t |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 14576 | s,@WIN16_FILES@,$WIN16_FILES,;t t |
| 14577 | s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14578 | s,@build@,$build,;t t |
| 14579 | s,@build_cpu@,$build_cpu,;t t |
| 14580 | s,@build_vendor@,$build_vendor,;t t |
| 14581 | s,@build_os@,$build_os,;t t |
| 14582 | s,@host@,$host,;t t |
| 14583 | s,@host_cpu@,$host_cpu,;t t |
| 14584 | s,@host_vendor@,$host_vendor,;t t |
| 14585 | s,@host_os@,$host_os,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14586 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 14587 | s,@CC@,$CC,;t t |
| 14588 | s,@CFLAGS@,$CFLAGS,;t t |
| 14589 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 14590 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 14591 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 14592 | s,@EXEEXT@,$EXEEXT,;t t |
| 14593 | s,@OBJEXT@,$OBJEXT,;t t |
| 14594 | s,@CPP@,$CPP,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14595 | s,@TOOLSDIR@,$TOOLSDIR,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14596 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 14597 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 14598 | s,@X_LIBS@,$X_LIBS,;t t |
| 14599 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 14600 | s,@YACC@,$YACC,;t t |
| 14601 | s,@LEX@,$LEX,;t t |
| 14602 | s,@LEXLIB@,$LEXLIB,;t t |
| 14603 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 14604 | s,@XYACC@,$XYACC,;t t |
| 14605 | s,@XLEX@,$XLEX,;t t |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 14606 | s,@LD@,$LD,;t t |
| 14607 | s,@ac_ct_LD@,$ac_ct_LD,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14608 | s,@AR@,$AR,;t t |
| 14609 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14610 | s,@RANLIB@,$RANLIB,;t t |
| 14611 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14612 | s,@STRIP@,$STRIP,;t t |
| 14613 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 14614 | s,@WINDRES@,$WINDRES,;t t |
| 14615 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14616 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 14617 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 14618 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 14619 | s,@LN_S@,$LN_S,;t t |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 14620 | s,@LN@,$LN,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14621 | s,@C2MAN@,$C2MAN,;t t |
| 14622 | s,@LDCONFIG@,$LDCONFIG,;t t |
| 14623 | s,@LINT@,$LINT,;t t |
| 14624 | s,@LINTFLAGS@,$LINTFLAGS,;t t |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame^] | 14625 | s,@DB2HTML@,$DB2HTML,;t t |
| 14626 | s,@DB2PDF@,$DB2PDF,;t t |
| 14627 | s,@DB2PS@,$DB2PS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14628 | s,@JPEGLIB@,$JPEGLIB,;t t |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14629 | s,@EGREP@,$EGREP,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14630 | s,@XLIB@,$XLIB,;t t |
| 14631 | s,@XFILES@,$XFILES,;t t |
| 14632 | s,@OPENGLFILES@,$OPENGLFILES,;t t |
| 14633 | s,@GLU32FILES@,$GLU32FILES,;t t |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 14634 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 14635 | s,@NASLIBS@,$NASLIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14636 | s,@CURSESLIBS@,$CURSESLIBS,;t t |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 14637 | s,@sane_devel@,$sane_devel,;t t |
| 14638 | s,@SANELIBS@,$SANELIBS,;t t |
| 14639 | s,@SANEINCL@,$SANEINCL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14640 | s,@ft_devel@,$ft_devel,;t t |
| 14641 | s,@ft_devel2@,$ft_devel2,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14642 | s,@FREETYPEINCL@,$FREETYPEINCL,;t t |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 14643 | s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t |
| 14644 | s,@ARTSLIBS@,$ARTSLIBS,;t t |
| 14645 | s,@ARTSINCL@,$ARTSINCL,;t t |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 14646 | s,@ALSALIBS@,$ALSALIBS,;t t |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 14647 | s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14648 | s,@DLLEXT@,$DLLEXT,;t t |
| 14649 | s,@DLLFLAGS@,$DLLFLAGS,;t t |
| 14650 | s,@DLLIBS@,$DLLIBS,;t t |
| 14651 | s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t |
| 14652 | s,@LDSHARED@,$LDSHARED,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14653 | s,@DLLWRAP@,$DLLWRAP,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14654 | s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 14655 | s,@CROSSTEST@,$CROSSTEST,;t t |
| 14656 | s,@CROSSCC@,$CROSSCC,;t t |
| 14657 | s,@DLLTOOL@,$DLLTOOL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14658 | s,@LDPATH@,$LDPATH,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14659 | s,@CRTLIBS@,$CRTLIBS,;t t |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14660 | s,@LDD@,$LDD,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14661 | s,@ALLOCA@,$ALLOCA,;t t |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14662 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 14663 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14664 | /@MAKE_RULES@/r $MAKE_RULES |
| 14665 | s,@MAKE_RULES@,,;t t |
| 14666 | /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES |
| 14667 | s,@MAKE_DLL_RULES@,,;t t |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 14668 | /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES |
| 14669 | s,@MAKE_TEST_RULES@,,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14670 | /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES |
| 14671 | s,@MAKE_PROG_RULES@,,;t t |
| 14672 | CEOF |
| 14673 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14674 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14675 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14676 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14677 | # Split the substitutions into bite-sized pieces for seds with |
| 14678 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 14679 | ac_max_sed_lines=48 |
| 14680 | ac_sed_frag=1 # Number of current file. |
| 14681 | ac_beg=1 # First line for current file. |
| 14682 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 14683 | ac_more_lines=: |
| 14684 | ac_sed_cmds= |
| 14685 | while $ac_more_lines; do |
| 14686 | if test $ac_beg -gt 1; then |
| 14687 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 14688 | else |
| 14689 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 14690 | fi |
| 14691 | if test ! -s $tmp/subs.frag; then |
| 14692 | ac_more_lines=false |
| 14693 | else |
| 14694 | # The purpose of the label and of the branching condition is to |
| 14695 | # speed up the sed processing (if there are no `@' at all, there |
| 14696 | # is no need to browse any of the substitutions). |
| 14697 | # These are the two extra sed commands mentioned above. |
| 14698 | (echo ':t |
| 14699 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 14700 | if test -z "$ac_sed_cmds"; then |
| 14701 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 14702 | else |
| 14703 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 14704 | fi |
| 14705 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 14706 | ac_beg=$ac_end |
| 14707 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 14708 | fi |
| 14709 | done |
| 14710 | if test -z "$ac_sed_cmds"; then |
| 14711 | ac_sed_cmds=cat |
| 14712 | fi |
| 14713 | fi # test -n "$CONFIG_FILES" |
| 14714 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14715 | _ACEOF |
| 14716 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14717 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 14718 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 14719 | case $ac_file in |
| 14720 | - | *:- | *:-:* ) # input from stdin |
| 14721 | cat >$tmp/stdin |
| 14722 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 14723 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 14724 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 14725 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 14726 | * ) ac_file_in=$ac_file.in ;; |
| 14727 | esac |
| 14728 | |
| 14729 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14730 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 14731 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14732 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14733 | X"$ac_file" : 'X\(//\)$' \| \ |
| 14734 | X"$ac_file" : 'X\(/\)' \| \ |
| 14735 | . : '\(.\)' 2>/dev/null || |
| 14736 | echo X"$ac_file" | |
| 14737 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 14738 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 14739 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 14740 | /^X\(\/\).*/{ s//\1/; q; } |
| 14741 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14742 | { if $as_mkdir_p; then |
| 14743 | mkdir -p "$ac_dir" |
| 14744 | else |
| 14745 | as_dir="$ac_dir" |
| 14746 | as_dirs= |
| 14747 | while test ! -d "$as_dir"; do |
| 14748 | as_dirs="$as_dir $as_dirs" |
| 14749 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 14750 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14751 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14752 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14753 | X"$as_dir" : 'X\(/\)' \| \ |
| 14754 | . : '\(.\)' 2>/dev/null || |
| 14755 | echo X"$as_dir" | |
| 14756 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 14757 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 14758 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 14759 | /^X\(\/\).*/{ s//\1/; q; } |
| 14760 | s/.*/./; q'` |
| 14761 | done |
| 14762 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 14763 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 14764 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 14765 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14766 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14767 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14768 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14769 | if test "$ac_dir" != .; then |
| 14770 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 14771 | # A "../" for each directory in $ac_dir_suffix. |
| 14772 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 14773 | else |
| 14774 | ac_dir_suffix= ac_top_builddir= |
| 14775 | fi |
| 14776 | |
| 14777 | case $srcdir in |
| 14778 | .) # No --srcdir option. We are building in place. |
| 14779 | ac_srcdir=. |
| 14780 | if test -z "$ac_top_builddir"; then |
| 14781 | ac_top_srcdir=. |
| 14782 | else |
| 14783 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 14784 | fi ;; |
| 14785 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 14786 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 14787 | ac_top_srcdir=$srcdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14788 | *) # Relative path. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14789 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 14790 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 14791 | esac |
| 14792 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 14793 | # absolute. |
| 14794 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14795 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14796 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 14797 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 14798 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14799 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14800 | case $INSTALL in |
| 14801 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14802 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 14803 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 14804 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14805 | if test x"$ac_file" != x-; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14806 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14807 | echo "$as_me: creating $ac_file" >&6;} |
| 14808 | rm -f "$ac_file" |
| 14809 | fi |
| 14810 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14811 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14812 | # /* config.h. Generated by config.status. */ |
| 14813 | if test x"$ac_file" = x-; then |
| 14814 | configure_input= |
| 14815 | else |
| 14816 | configure_input="$ac_file. " |
| 14817 | fi |
| 14818 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 14819 | sed 's,.*/,,'` by configure." |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 14820 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14821 | # First look for the input files in the build tree, otherwise in the |
| 14822 | # src tree. |
| 14823 | ac_file_inputs=`IFS=: |
| 14824 | for f in $ac_file_in; do |
| 14825 | case $f in |
| 14826 | -) echo $tmp/stdin ;; |
| 14827 | [\\/$]*) |
| 14828 | # Absolute (can't be DOS-style, as IFS=:) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14829 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14830 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 14831 | { (exit 1); exit 1; }; } |
| 14832 | echo $f;; |
| 14833 | *) # Relative |
| 14834 | if test -f "$f"; then |
| 14835 | # Build tree |
| 14836 | echo $f |
| 14837 | elif test -f "$srcdir/$f"; then |
| 14838 | # Source tree |
| 14839 | echo $srcdir/$f |
| 14840 | else |
| 14841 | # /dev/null tree |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14842 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14843 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 14844 | { (exit 1); exit 1; }; } |
| 14845 | fi;; |
| 14846 | esac |
| 14847 | done` || { (exit 1); exit 1; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14848 | _ACEOF |
| 14849 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14850 | sed "$ac_vpsub |
| 14851 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14852 | _ACEOF |
| 14853 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14854 | :t |
| 14855 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 14856 | s,@configure_input@,$configure_input,;t t |
| 14857 | s,@srcdir@,$ac_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14858 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14859 | s,@top_srcdir@,$ac_top_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14860 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 14861 | s,@builddir@,$ac_builddir,;t t |
| 14862 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 14863 | s,@top_builddir@,$ac_top_builddir,;t t |
| 14864 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14865 | s,@INSTALL@,$ac_INSTALL,;t t |
| 14866 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 14867 | rm -f $tmp/stdin |
| 14868 | if test x"$ac_file" != x-; then |
| 14869 | mv $tmp/out $ac_file |
| 14870 | else |
| 14871 | cat $tmp/out |
| 14872 | rm -f $tmp/out |
| 14873 | fi |
| 14874 | |
| 14875 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14876 | _ACEOF |
| 14877 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14878 | |
| 14879 | # |
| 14880 | # CONFIG_HEADER section. |
| 14881 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 14882 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 14883 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 14884 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 14885 | # |
| 14886 | # ac_d sets the value in "#define NAME VALUE" lines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14887 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 14888 | ac_dB='[ ].*$,\1#\2' |
| 14889 | ac_dC=' ' |
| 14890 | ac_dD=',;t' |
| 14891 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 14892 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 14893 | ac_uB='$,\1#\2define\3' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 14894 | ac_uC=' ' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14895 | ac_uD=',;t' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 14896 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14897 | 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] | 14898 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14899 | case $ac_file in |
| 14900 | - | *:- | *:-:* ) # input from stdin |
| 14901 | cat >$tmp/stdin |
| 14902 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 14903 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 14904 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 14905 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 14906 | * ) ac_file_in=$ac_file.in ;; |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 14907 | esac |
| 14908 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14909 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14910 | echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 14911 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14912 | # First look for the input files in the build tree, otherwise in the |
| 14913 | # src tree. |
| 14914 | ac_file_inputs=`IFS=: |
| 14915 | for f in $ac_file_in; do |
| 14916 | case $f in |
| 14917 | -) echo $tmp/stdin ;; |
| 14918 | [\\/$]*) |
| 14919 | # Absolute (can't be DOS-style, as IFS=:) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14920 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14921 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 14922 | { (exit 1); exit 1; }; } |
| 14923 | echo $f;; |
| 14924 | *) # Relative |
| 14925 | if test -f "$f"; then |
| 14926 | # Build tree |
| 14927 | echo $f |
| 14928 | elif test -f "$srcdir/$f"; then |
| 14929 | # Source tree |
| 14930 | echo $srcdir/$f |
| 14931 | else |
| 14932 | # /dev/null tree |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14933 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14934 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 14935 | { (exit 1); exit 1; }; } |
| 14936 | fi;; |
| 14937 | esac |
| 14938 | done` || { (exit 1); exit 1; } |
| 14939 | # Remove the trailing spaces. |
| 14940 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 14941 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14942 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 14943 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14944 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 14945 | # `conftest.undefs', that substitutes the proper values into |
| 14946 | # config.h.in to produce config.h. The first handles `#define' |
| 14947 | # templates, and the second `#undef' templates. |
| 14948 | # And first: Protect against being on the right side of a sed subst in |
| 14949 | # config.status. Protect against being in an unquoted here document |
| 14950 | # in config.status. |
| 14951 | rm -f conftest.defines conftest.undefs |
| 14952 | # Using a here document instead of a string reduces the quoting nightmare. |
| 14953 | # Putting comments in sed scripts is not portable. |
| 14954 | # |
| 14955 | # `end' is used to avoid that the second main sed command (meant for |
| 14956 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 14957 | # See the Autoconf documentation for `clear'. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14958 | cat >confdef2sed.sed <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14959 | s/[\\&,]/\\&/g |
| 14960 | s,[\\$`],\\&,g |
| 14961 | t clear |
| 14962 | : clear |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14963 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14964 | t end |
| 14965 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 14966 | : end |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14967 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14968 | # If some macros were called several times there might be several times |
| 14969 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 14970 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 14971 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 14972 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 14973 | rm -f confdef2sed.sed |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 14974 | |
| 14975 | # This sed command replaces #undef with comments. This is necessary, for |
| 14976 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 14977 | # on some systems where configure will not decide to define it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14978 | cat >>conftest.undefs <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14979 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14980 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 14981 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14982 | # Break up conftest.defines because some shells have a limit on the size |
| 14983 | # of here documents, and old seds have small limits too (100 cmds). |
| 14984 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14985 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14986 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 14987 | echo ' :' >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 14988 | rm -f conftest.tail |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14989 | while grep . conftest.defines >/dev/null |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 14990 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14991 | # Write a limited-size here document to $tmp/defines.sed. |
| 14992 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 14993 | # Speed up: don't consider the non `#define' lines. |
| 14994 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 14995 | # Work around the forget-to-reset-the-flag bug. |
| 14996 | echo 't clr' >>$CONFIG_STATUS |
| 14997 | echo ': clr' >>$CONFIG_STATUS |
| 14998 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 14999 | echo 'CEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15000 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 15001 | rm -f $tmp/in |
| 15002 | mv $tmp/out $tmp/in |
| 15003 | ' >>$CONFIG_STATUS |
| 15004 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 15005 | rm -f conftest.defines |
| 15006 | mv conftest.tail conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15007 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15008 | rm -f conftest.defines |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15009 | echo ' fi # grep' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15010 | echo >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15011 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15012 | # Break up conftest.undefs because some shells have a limit on the size |
| 15013 | # of here documents, and old seds have small limits too (100 cmds). |
| 15014 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 15015 | rm -f conftest.tail |
| 15016 | while grep . conftest.undefs >/dev/null |
| 15017 | do |
| 15018 | # Write a limited-size here document to $tmp/undefs.sed. |
| 15019 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 15020 | # Speed up: don't consider the non `#undef' |
| 15021 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 15022 | # Work around the forget-to-reset-the-flag bug. |
| 15023 | echo 't clr' >>$CONFIG_STATUS |
| 15024 | echo ': clr' >>$CONFIG_STATUS |
| 15025 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 15026 | echo 'CEOF |
| 15027 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 15028 | rm -f $tmp/in |
| 15029 | mv $tmp/out $tmp/in |
| 15030 | ' >>$CONFIG_STATUS |
| 15031 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 15032 | rm -f conftest.undefs |
| 15033 | mv conftest.tail conftest.undefs |
| 15034 | done |
| 15035 | rm -f conftest.undefs |
| 15036 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15037 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15038 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 15039 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15040 | # /* config.h. Generated by config.status. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15041 | if test x"$ac_file" = x-; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15042 | echo "/* Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15043 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15044 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15045 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15046 | cat $tmp/in >>$tmp/config.h |
| 15047 | rm -f $tmp/in |
| 15048 | if test x"$ac_file" != x-; then |
| 15049 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15050 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15051 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 15052 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15053 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 15054 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15055 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 15056 | X"$ac_file" : 'X\(//\)$' \| \ |
| 15057 | X"$ac_file" : 'X\(/\)' \| \ |
| 15058 | . : '\(.\)' 2>/dev/null || |
| 15059 | echo X"$ac_file" | |
| 15060 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 15061 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 15062 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 15063 | /^X\(\/\).*/{ s//\1/; q; } |
| 15064 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15065 | { if $as_mkdir_p; then |
| 15066 | mkdir -p "$ac_dir" |
| 15067 | else |
| 15068 | as_dir="$ac_dir" |
| 15069 | as_dirs= |
| 15070 | while test ! -d "$as_dir"; do |
| 15071 | as_dirs="$as_dir $as_dirs" |
| 15072 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 15073 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15074 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 15075 | X"$as_dir" : 'X\(//\)$' \| \ |
| 15076 | X"$as_dir" : 'X\(/\)' \| \ |
| 15077 | . : '\(.\)' 2>/dev/null || |
| 15078 | echo X"$as_dir" | |
| 15079 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 15080 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 15081 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 15082 | /^X\(\/\).*/{ s//\1/; q; } |
| 15083 | s/.*/./; q'` |
| 15084 | done |
| 15085 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 15086 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 15087 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 15088 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15089 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15090 | rm -f $ac_file |
| 15091 | mv $tmp/config.h $ac_file |
| 15092 | fi |
| 15093 | else |
| 15094 | cat $tmp/config.h |
| 15095 | rm -f $tmp/config.h |
| 15096 | fi |
| 15097 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15098 | _ACEOF |
| 15099 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15100 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15101 | # |
| 15102 | # CONFIG_COMMANDS section. |
| 15103 | # |
| 15104 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 15105 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 15106 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15107 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 15108 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15109 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 15110 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 15111 | X"$ac_dest" : 'X\(/\)' \| \ |
| 15112 | . : '\(.\)' 2>/dev/null || |
| 15113 | echo X"$ac_dest" | |
| 15114 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 15115 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 15116 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 15117 | /^X\(\/\).*/{ s//\1/; q; } |
| 15118 | s/.*/./; q'` |
| 15119 | ac_builddir=. |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 15120 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15121 | if test "$ac_dir" != .; then |
| 15122 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 15123 | # A "../" for each directory in $ac_dir_suffix. |
| 15124 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15125 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15126 | ac_dir_suffix= ac_top_builddir= |
| 15127 | fi |
| 15128 | |
| 15129 | case $srcdir in |
| 15130 | .) # No --srcdir option. We are building in place. |
| 15131 | ac_srcdir=. |
| 15132 | if test -z "$ac_top_builddir"; then |
| 15133 | ac_top_srcdir=. |
| 15134 | else |
| 15135 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 15136 | fi ;; |
| 15137 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 15138 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 15139 | ac_top_srcdir=$srcdir ;; |
| 15140 | *) # Relative path. |
| 15141 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 15142 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 15143 | esac |
| 15144 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 15145 | # absolute. |
| 15146 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15147 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15148 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 15149 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 15150 | |
| 15151 | |
| 15152 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 15153 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 15154 | case $ac_dest in |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15155 | controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5 |
| 15156 | echo "$as_me: creating controls" >&6;} && mkdir "controls") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15157 | dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5 |
| 15158 | echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;; |
| 15159 | dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5 |
| 15160 | echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;; |
| 15161 | dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5 |
| 15162 | echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;; |
| 15163 | dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5 |
| 15164 | echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;; |
| 15165 | dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5 |
| 15166 | echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;; |
| 15167 | dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5 |
| 15168 | echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;; |
| 15169 | dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5 |
| 15170 | echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;; |
| 15171 | dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5 |
| 15172 | echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;; |
| 15173 | dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5 |
| 15174 | echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;; |
| 15175 | dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5 |
| 15176 | echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;; |
| 15177 | dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5 |
| 15178 | echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;; |
| 15179 | dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5 |
| 15180 | echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;; |
| 15181 | dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5 |
| 15182 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15183 | dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5 |
| 15184 | echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;; |
| 15185 | dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
| 15186 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15187 | dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5 |
| 15188 | echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15189 | files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5 |
| 15190 | echo "$as_me: creating files" >&6;} && mkdir "files") ;; |
| 15191 | graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5 |
| 15192 | echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;; |
| 15193 | graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5 |
| 15194 | echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;; |
| 15195 | if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5 |
| 15196 | echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15197 | include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
| 15198 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15199 | loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5 |
| 15200 | echo "$as_me: creating loader" >&6;} && mkdir "loader") ;; |
| 15201 | loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5 |
| 15202 | echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;; |
| 15203 | memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5 |
| 15204 | echo "$as_me: creating memory" >&6;} && mkdir "memory") ;; |
| 15205 | misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5 |
| 15206 | echo "$as_me: creating misc" >&6;} && mkdir "misc") ;; |
| 15207 | msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5 |
| 15208 | echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;; |
| 15209 | objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5 |
| 15210 | echo "$as_me: creating objects" >&6;} && mkdir "objects") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15211 | programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5 |
| 15212 | echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 15213 | programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5 |
| 15214 | echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15215 | relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5 |
| 15216 | echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;; |
| 15217 | scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5 |
| 15218 | echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;; |
| 15219 | win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5 |
| 15220 | echo "$as_me: creating win32" >&6;} && mkdir "win32") ;; |
| 15221 | windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5 |
| 15222 | echo "$as_me: creating windows" >&6;} && mkdir "windows") ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15223 | esac |
| 15224 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15225 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15226 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15227 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 15228 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15229 | { (exit 0); exit 0; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15230 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15231 | chmod +x $CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15232 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15233 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15234 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15235 | # configure is writing to config.log, and then calls config.status. |
| 15236 | # config.status does its own redirection, appending to config.log. |
| 15237 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15238 | # by configure, so config.status won't be able to write to it; its |
| 15239 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15240 | # effectively closing config.log, so it can be properly (re)opened and |
| 15241 | # appended to by config.status. When coming back to configure, we |
| 15242 | # need to make the FD available again. |
| 15243 | if test "$no_create" != yes; then |
| 15244 | ac_cs_success=: |
| 15245 | exec 5>/dev/null |
| 15246 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 15247 | exec 5>>config.log |
| 15248 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15249 | # would make configure fail if this is the last instruction. |
| 15250 | $ac_cs_success || { (exit 1); exit 1; } |
| 15251 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15252 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15253 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 15254 | if test "$have_x" = "no" |
| 15255 | then |
| 15256 | echo |
| 15257 | echo "*** Warning: X development files not found. Wine will be built without" |
| 15258 | echo "*** X support, which currently does not work, and would probably not be" |
| 15259 | 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] | 15260 | echo "*** Xlib/Xfree86 at the very least." |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 15261 | fi |
| 15262 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 15263 | if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes" |
| 15264 | then |
| 15265 | echo |
| 15266 | echo "*** Warning: resizeterm not found in ncurses. Wine will be built without" |
| 15267 | echo "*** terminal resize support. Consider upgrading ncurses." |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 15268 | fi |
| 15269 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15270 | if test "$wine_cv_libc_reentrant" = "no" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 15271 | then |
| 15272 | echo |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15273 | echo "*** Warning: non-reentrant libc detected. Wine will be built without" |
| 15274 | echo "*** threading support. Consider upgrading libc to a more recent" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 15275 | echo "*** reentrant version of libc." |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 15276 | fi |
| 15277 | |
Alexandre Julliard | 867fb9d | 2002-04-24 22:24:43 +0000 | [diff] [blame] | 15278 | if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes" |
| 15279 | then |
| 15280 | echo |
| 15281 | echo "*** Warning: non-reentrant X11 library detected. Multi-threaded" |
| 15282 | echo "*** applications won't work properly. You should upgrade your X11 library." |
| 15283 | fi |
| 15284 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 15285 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 15286 | then |
| 15287 | echo |
| 15288 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 15289 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." |
| 15290 | fi |
| 15291 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 15292 | if test "$wine_cv_msg_freetype" = "yes" |
| 15293 | then |
| 15294 | echo |
| 15295 | echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15296 | echo "*** installed, but 'freetype-config' is not in your PATH. Install the" |
| 15297 | echo "*** freetype-devel package (or its equivalent on your distribution) to" |
| 15298 | echo "*** enable Wine to use TrueType fonts." |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 15299 | fi |
| 15300 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15301 | echo |
Steffen Moeller | 1511bae | 1999-02-17 15:27:03 +0000 | [diff] [blame] | 15302 | echo "Configure finished. Do 'make depend && make' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15303 | echo |
| 15304 | |