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 | 8087fca | 2004-09-14 22:11:36 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for Wine 20040914. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4 | # |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5 | # Report bugs to <wine-devel@winehq.org>. |
| 6 | # |
| 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10 | ## --------------------- ## |
| 11 | ## M4sh Initialization. ## |
| 12 | ## --------------------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13 | |
| 14 | # Be Bourne compatible |
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22 | set -o posix |
| 23 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 24 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 25 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 26 | # Support unset when possible. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 28 | as_unset=unset |
| 29 | else |
| 30 | as_unset=false |
| 31 | fi |
| 32 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 33 | |
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35 | $as_unset ENV MAIL MAILPATH |
| 36 | PS1='$ ' |
| 37 | PS2='> ' |
| 38 | PS4='+ ' |
| 39 | |
| 40 | # NLS nuisances. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 41 | for as_var in \ |
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 44 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 45 | do |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 47 | eval $as_var=C; export $as_var |
| 48 | else |
| 49 | $as_unset $as_var |
| 50 | fi |
| 51 | done |
| 52 | |
| 53 | # Required to use basename. |
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 55 | as_expr=expr |
| 56 | else |
| 57 | as_expr=false |
| 58 | fi |
| 59 | |
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 61 | as_basename=basename |
| 62 | else |
| 63 | as_basename=false |
| 64 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 65 | |
| 66 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 67 | # Name of the executable. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 68 | as_me=`$as_basename "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 70 | X"$0" : 'X\(//\)$' \| \ |
| 71 | X"$0" : 'X\(/\)$' \| \ |
| 72 | . : '\(.\)' 2>/dev/null || |
| 73 | echo X/"$0" | |
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 77 | s/.*/./; q'` |
| 78 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 79 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 80 | # PATH needs CR, and LINENO needs CR and PATH. |
| 81 | # Avoid depending upon Character Ranges. |
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 85 | as_cr_digits='0123456789' |
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 87 | |
| 88 | # The user is always right. |
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 90 | echo "#! /bin/sh" >conf$$.sh |
| 91 | echo "exit 0" >>conf$$.sh |
| 92 | chmod +x conf$$.sh |
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 94 | PATH_SEPARATOR=';' |
| 95 | else |
| 96 | PATH_SEPARATOR=: |
| 97 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 98 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 99 | fi |
| 100 | |
| 101 | |
| 102 | as_lineno_1=$LINENO |
| 103 | as_lineno_2=$LINENO |
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 107 | # Find who we are. Look in the path if we contain no path at all |
| 108 | # relative or not. |
| 109 | case $0 in |
| 110 | *[\\/]* ) as_myself=$0 ;; |
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 112 | for as_dir in $PATH |
| 113 | do |
| 114 | IFS=$as_save_IFS |
| 115 | test -z "$as_dir" && as_dir=. |
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 117 | done |
| 118 | |
| 119 | ;; |
| 120 | esac |
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 122 | # in which case we are not to be found in the path. |
| 123 | if test "x$as_myself" = x; then |
| 124 | as_myself=$0 |
| 125 | fi |
| 126 | if test ! -f "$as_myself"; then |
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 128 | { (exit 1); exit 1; }; } |
| 129 | fi |
| 130 | case $CONFIG_SHELL in |
| 131 | '') |
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 134 | do |
| 135 | IFS=$as_save_IFS |
| 136 | test -z "$as_dir" && as_dir=. |
| 137 | for as_base in sh bash ksh sh5; do |
| 138 | case $as_dir in |
| 139 | /*) |
| 140 | if ("$as_dir/$as_base" -c ' |
| 141 | as_lineno_1=$LINENO |
| 142 | as_lineno_2=$LINENO |
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 145 | 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] | 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 148 | CONFIG_SHELL=$as_dir/$as_base |
| 149 | export CONFIG_SHELL |
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 151 | fi;; |
| 152 | esac |
| 153 | done |
| 154 | done |
| 155 | ;; |
| 156 | esac |
| 157 | |
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 160 | # line-number line before each line; the second 'sed' does the real |
| 161 | # work. The second script uses 'N' to pair each line-number line |
| 162 | # with the numbered line, and appends trailing '-' during |
| 163 | # substitution so that $LINENO is not a special case at line end. |
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 166 | sed '=' <$as_myself | |
| 167 | sed ' |
| 168 | N |
| 169 | s,$,-, |
| 170 | : loop |
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 172 | t loop |
| 173 | s,-$,, |
| 174 | s,^['$as_cr_digits']*\n,, |
| 175 | ' >$as_me.lineno && |
| 176 | chmod +x $as_me.lineno || |
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 178 | { (exit 1); exit 1; }; } |
| 179 | |
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 181 | # (the dirname of $[0] is not the place where we might find the |
| 182 | # original and so on. Autoconf is especially sensible to this). |
| 183 | . ./$as_me.lineno |
| 184 | # Exit status is that of the last command. |
| 185 | exit |
| 186 | } |
| 187 | |
| 188 | |
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
| 191 | ' ECHO_T=' ' ;; |
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 194 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 195 | |
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 197 | as_expr=expr |
| 198 | else |
| 199 | as_expr=false |
| 200 | fi |
| 201 | |
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
| 203 | echo >conf$$.file |
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 207 | if test -f conf$$.exe; then |
| 208 | # Don't use ln at all; we don't have any links |
| 209 | as_ln_s='cp -p' |
| 210 | else |
| 211 | as_ln_s='ln -s' |
| 212 | fi |
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 214 | as_ln_s=ln |
| 215 | else |
| 216 | as_ln_s='cp -p' |
| 217 | fi |
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
| 219 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 220 | if mkdir -p . 2>/dev/null; then |
| 221 | as_mkdir_p=: |
| 222 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 223 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 224 | as_mkdir_p=false |
| 225 | fi |
| 226 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 227 | as_executable_p="test -f" |
| 228 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 229 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 231 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 232 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 234 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 235 | |
| 236 | # IFS |
| 237 | # We need space, tab and new line, in precisely that order. |
| 238 | as_nl=' |
| 239 | ' |
| 240 | IFS=" $as_nl" |
| 241 | |
| 242 | # CDPATH. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 243 | $as_unset CDPATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 244 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 245 | |
| 246 | # Name of the host. |
| 247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 248 | # so uname gets run too. |
| 249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 250 | |
| 251 | exec 6>&1 |
| 252 | |
| 253 | # |
| 254 | # Initializations. |
| 255 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 256 | ac_default_prefix=/usr/local |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 257 | ac_config_libobj_dir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 258 | cross_compiling=no |
| 259 | subdirs= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 260 | MFLAGS= |
| 261 | MAKEFLAGS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 262 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 263 | |
| 264 | # Maximum number of lines to put in a shell here document. |
| 265 | # This variable seems obsolete. It should probably be removed, and |
| 266 | # only ac_max_sed_lines should be used. |
| 267 | : ${ac_max_here_lines=38} |
| 268 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 269 | # Identity of this package. |
| 270 | PACKAGE_NAME='Wine' |
| 271 | PACKAGE_TARNAME='wine' |
Alexandre Julliard | 8087fca | 2004-09-14 22:11:36 +0000 | [diff] [blame] | 272 | PACKAGE_VERSION='20040914' |
| 273 | PACKAGE_STRING='Wine 20040914' |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 274 | PACKAGE_BUGREPORT='wine-devel@winehq.org' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 275 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 276 | ac_unique_file="server/atom.c" |
| 277 | # Factoring default headers for most tests. |
| 278 | ac_includes_default="\ |
| 279 | #include <stdio.h> |
| 280 | #if HAVE_SYS_TYPES_H |
| 281 | # include <sys/types.h> |
| 282 | #endif |
| 283 | #if HAVE_SYS_STAT_H |
| 284 | # include <sys/stat.h> |
| 285 | #endif |
| 286 | #if STDC_HEADERS |
| 287 | # include <stdlib.h> |
| 288 | # include <stddef.h> |
| 289 | #else |
| 290 | # if HAVE_STDLIB_H |
| 291 | # include <stdlib.h> |
| 292 | # endif |
| 293 | #endif |
| 294 | #if HAVE_STRING_H |
| 295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 296 | # include <memory.h> |
| 297 | # endif |
| 298 | # include <string.h> |
| 299 | #endif |
| 300 | #if HAVE_STRINGS_H |
| 301 | # include <strings.h> |
| 302 | #endif |
| 303 | #if HAVE_INTTYPES_H |
| 304 | # include <inttypes.h> |
| 305 | #else |
| 306 | # if HAVE_STDINT_H |
| 307 | # include <stdint.h> |
| 308 | # endif |
| 309 | #endif |
| 310 | #if HAVE_UNISTD_H |
| 311 | # include <unistd.h> |
| 312 | #endif" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 313 | |
Hans Leidekker | 5164757 | 2004-09-22 04:08:38 +0000 | [diff] [blame] | 314 | 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 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 CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT FONTFORGE LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPELIBS FREETYPEINCL FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS LCMSLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDLIBWINEFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS' |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 315 | ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 316 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 317 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 318 | ac_init_help= |
| 319 | ac_init_version=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 320 | # The variables have the same names as the options, with |
| 321 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 322 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 323 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 324 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 325 | no_recursion= |
| 326 | prefix=NONE |
| 327 | program_prefix=NONE |
| 328 | program_suffix=NONE |
| 329 | program_transform_name=s,x,x, |
| 330 | silent= |
| 331 | site= |
| 332 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 333 | verbose= |
| 334 | x_includes=NONE |
| 335 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 336 | |
| 337 | # Installation directory options. |
| 338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 339 | # and all the variables that are supposed to be based on exec_prefix |
| 340 | # by default will actually change. |
| 341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 342 | bindir='${exec_prefix}/bin' |
| 343 | sbindir='${exec_prefix}/sbin' |
| 344 | libexecdir='${exec_prefix}/libexec' |
| 345 | datadir='${prefix}/share' |
| 346 | sysconfdir='${prefix}/etc' |
| 347 | sharedstatedir='${prefix}/com' |
| 348 | localstatedir='${prefix}/var' |
| 349 | libdir='${exec_prefix}/lib' |
| 350 | includedir='${prefix}/include' |
| 351 | oldincludedir='/usr/include' |
| 352 | infodir='${prefix}/info' |
| 353 | mandir='${prefix}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 354 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 355 | ac_prev= |
| 356 | for ac_option |
| 357 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 358 | # If the previous option needs an argument, assign it. |
| 359 | if test -n "$ac_prev"; then |
| 360 | eval "$ac_prev=\$ac_option" |
| 361 | ac_prev= |
| 362 | continue |
| 363 | fi |
| 364 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 366 | |
| 367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 368 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 369 | case $ac_option in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 370 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 372 | ac_prev=bindir ;; |
| 373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 374 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 375 | |
| 376 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 377 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 379 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 380 | |
| 381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 383 | ac_prev=cache_file ;; |
| 384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 386 | cache_file=$ac_optarg ;; |
| 387 | |
| 388 | --config-cache | -C) |
| 389 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 390 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 392 | ac_prev=datadir ;; |
| 393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 394 | | --da=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 395 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 396 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 397 | -disable-* | --disable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 399 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 402 | { (exit 1); exit 1; }; } |
| 403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 404 | eval "enable_$ac_feature=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 405 | |
| 406 | -enable-* | --enable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 408 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 411 | { (exit 1); exit 1; }; } |
| 412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 413 | case $ac_option in |
| 414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 415 | *) ac_optarg=yes ;; |
| 416 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 418 | |
| 419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 421 | | --exec | --exe | --ex) |
| 422 | ac_prev=exec_prefix ;; |
| 423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 425 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 426 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 427 | |
| 428 | -gas | --gas | --ga | --g) |
| 429 | # Obsolete; use --with-gas. |
| 430 | with_gas=yes ;; |
| 431 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 432 | -help | --help | --hel | --he | -h) |
| 433 | ac_init_help=long ;; |
| 434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 435 | ac_init_help=recursive ;; |
| 436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 437 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 438 | |
| 439 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 440 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 441 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 442 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 443 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 444 | -includedir | --includedir | --includedi | --included | --include \ |
| 445 | | --includ | --inclu | --incl | --inc) |
| 446 | ac_prev=includedir ;; |
| 447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 449 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 450 | |
| 451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 452 | ac_prev=infodir ;; |
| 453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 454 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 455 | |
| 456 | -libdir | --libdir | --libdi | --libd) |
| 457 | ac_prev=libdir ;; |
| 458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 459 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 460 | |
| 461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 462 | | --libexe | --libex | --libe) |
| 463 | ac_prev=libexecdir ;; |
| 464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 465 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 466 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 467 | |
| 468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 469 | | --localstate | --localstat | --localsta | --localst \ |
| 470 | | --locals | --local | --loca | --loc | --lo) |
| 471 | ac_prev=localstatedir ;; |
| 472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 475 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 476 | |
| 477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 478 | ac_prev=mandir ;; |
| 479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 480 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 481 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 482 | -nfp | --nfp | --nf) |
| 483 | # Obsolete; use --without-fp. |
| 484 | with_fp=no ;; |
| 485 | |
| 486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 487 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 488 | no_create=yes ;; |
| 489 | |
| 490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 492 | no_recursion=yes ;; |
| 493 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 496 | | --oldin | --oldi | --old | --ol | --o) |
| 497 | ac_prev=oldincludedir ;; |
| 498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 501 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 502 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 504 | ac_prev=prefix ;; |
| 505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 506 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 507 | |
| 508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 509 | | --program-pre | --program-pr | --program-p) |
| 510 | ac_prev=program_prefix ;; |
| 511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 513 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 514 | |
| 515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 516 | | --program-suf | --program-su | --program-s) |
| 517 | ac_prev=program_suffix ;; |
| 518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 520 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 521 | |
| 522 | -program-transform-name | --program-transform-name \ |
| 523 | | --program-transform-nam | --program-transform-na \ |
| 524 | | --program-transform-n | --program-transform- \ |
| 525 | | --program-transform | --program-transfor \ |
| 526 | | --program-transfo | --program-transf \ |
| 527 | | --program-trans | --program-tran \ |
| 528 | | --progr-tra | --program-tr | --program-t) |
| 529 | ac_prev=program_transform_name ;; |
| 530 | -program-transform-name=* | --program-transform-name=* \ |
| 531 | | --program-transform-nam=* | --program-transform-na=* \ |
| 532 | | --program-transform-n=* | --program-transform-=* \ |
| 533 | | --program-transform=* | --program-transfor=* \ |
| 534 | | --program-transfo=* | --program-transf=* \ |
| 535 | | --program-trans=* | --program-tran=* \ |
| 536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 537 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 538 | |
| 539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 540 | | -silent | --silent | --silen | --sile | --sil) |
| 541 | silent=yes ;; |
| 542 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 544 | ac_prev=sbindir ;; |
| 545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 546 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 547 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 548 | |
| 549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 551 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 552 | | --sha | --sh) |
| 553 | ac_prev=sharedstatedir ;; |
| 554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 557 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 558 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 559 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 560 | -site | --site | --sit) |
| 561 | ac_prev=site ;; |
| 562 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 563 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 564 | |
| 565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 566 | ac_prev=srcdir ;; |
| 567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 568 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 569 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 571 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 572 | ac_prev=sysconfdir ;; |
| 573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 575 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 576 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 578 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 580 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 581 | |
| 582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 583 | verbose=yes ;; |
| 584 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 585 | -version | --version | --versio | --versi | --vers | -V) |
| 586 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 587 | |
| 588 | -with-* | --with-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 590 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 593 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 595 | case $ac_option in |
| 596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 597 | *) ac_optarg=yes ;; |
| 598 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 599 | eval "with_$ac_package='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 600 | |
| 601 | -without-* | --without-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 603 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 606 | { (exit 1); exit 1; }; } |
| 607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 608 | eval "with_$ac_package=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 609 | |
| 610 | --x) |
| 611 | # Obsolete; use --with-x. |
| 612 | with_x=yes ;; |
| 613 | |
| 614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 615 | | --x-incl | --x-inc | --x-in | --x-i) |
| 616 | ac_prev=x_includes ;; |
| 617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 619 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 620 | |
| 621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 623 | ac_prev=x_libraries ;; |
| 624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 626 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 627 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 629 | Try \`$0 --help' for more information." >&2 |
| 630 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 631 | ;; |
| 632 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 633 | *=*) |
| 634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 635 | # Reject names that are not valid shell variable names. |
| 636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 638 | { (exit 1); exit 1; }; } |
| 639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 640 | eval "$ac_envvar='$ac_optarg'" |
| 641 | export $ac_envvar ;; |
| 642 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 643 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 644 | # FIXME: should be removed in autoconf 3.0. |
| 645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 649 | ;; |
| 650 | |
| 651 | esac |
| 652 | done |
| 653 | |
| 654 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 657 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 658 | fi |
| 659 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 660 | # Be sure to have absolute paths. |
| 661 | for ac_var in exec_prefix prefix |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 662 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 663 | eval ac_val=$`echo $ac_var` |
| 664 | case $ac_val in |
| 665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 666 | *) { 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] | 667 | { (exit 1); exit 1; }; };; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 668 | esac |
| 669 | done |
| 670 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 671 | # Be sure to have absolute paths. |
| 672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 673 | localstatedir libdir includedir oldincludedir infodir mandir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 674 | do |
| 675 | eval ac_val=$`echo $ac_var` |
| 676 | case $ac_val in |
| 677 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 678 | *) { 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] | 679 | { (exit 1); exit 1; }; };; |
| 680 | esac |
| 681 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 682 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 683 | # There might be people who depend on the old broken behavior: `$host' |
| 684 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 685 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 686 | build=$build_alias |
| 687 | host=$host_alias |
| 688 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 689 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 690 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 691 | if test "x$host_alias" != x; then |
| 692 | if test "x$build_alias" = x; then |
| 693 | cross_compiling=maybe |
| 694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 696 | elif test "x$build_alias" != "x$host_alias"; then |
| 697 | cross_compiling=yes |
| 698 | fi |
| 699 | fi |
| 700 | |
| 701 | ac_tool_prefix= |
| 702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 703 | |
| 704 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 705 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 706 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 707 | # Find the source files, if location was not specified. |
| 708 | if test -z "$srcdir"; then |
| 709 | ac_srcdir_defaulted=yes |
| 710 | # Try the directory containing this script, then its parent. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 713 | X"$0" : 'X\(//\)[^/]' \| \ |
| 714 | X"$0" : 'X\(//\)$' \| \ |
| 715 | X"$0" : 'X\(/\)' \| \ |
| 716 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 717 | echo X"$0" | |
| 718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 720 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 721 | /^X\(\/\).*/{ s//\1/; q; } |
| 722 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 723 | srcdir=$ac_confdir |
| 724 | if test ! -r $srcdir/$ac_unique_file; then |
| 725 | srcdir=.. |
| 726 | fi |
| 727 | else |
| 728 | ac_srcdir_defaulted=no |
| 729 | fi |
| 730 | if test ! -r $srcdir/$ac_unique_file; then |
| 731 | if test "$ac_srcdir_defaulted" = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 732 | { 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] | 733 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 734 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 735 | { 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] | 736 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 737 | fi |
| 738 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 741 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 743 | ac_env_build_alias_set=${build_alias+set} |
| 744 | ac_env_build_alias_value=$build_alias |
| 745 | ac_cv_env_build_alias_set=${build_alias+set} |
| 746 | ac_cv_env_build_alias_value=$build_alias |
| 747 | ac_env_host_alias_set=${host_alias+set} |
| 748 | ac_env_host_alias_value=$host_alias |
| 749 | ac_cv_env_host_alias_set=${host_alias+set} |
| 750 | ac_cv_env_host_alias_value=$host_alias |
| 751 | ac_env_target_alias_set=${target_alias+set} |
| 752 | ac_env_target_alias_value=$target_alias |
| 753 | ac_cv_env_target_alias_set=${target_alias+set} |
| 754 | ac_cv_env_target_alias_value=$target_alias |
| 755 | ac_env_CC_set=${CC+set} |
| 756 | ac_env_CC_value=$CC |
| 757 | ac_cv_env_CC_set=${CC+set} |
| 758 | ac_cv_env_CC_value=$CC |
| 759 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_env_CFLAGS_value=$CFLAGS |
| 761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 762 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 771 | ac_env_CXX_set=${CXX+set} |
| 772 | ac_env_CXX_value=$CXX |
| 773 | ac_cv_env_CXX_set=${CXX+set} |
| 774 | ac_cv_env_CXX_value=$CXX |
| 775 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 776 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 777 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 778 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 779 | ac_env_CPP_set=${CPP+set} |
| 780 | ac_env_CPP_value=$CPP |
| 781 | ac_cv_env_CPP_set=${CPP+set} |
| 782 | ac_cv_env_CPP_value=$CPP |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 783 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 784 | # |
| 785 | # Report the --help message. |
| 786 | # |
| 787 | if test "$ac_init_help" = "long"; then |
| 788 | # Omit some internal or obsolete options to make the list less imposing. |
| 789 | # 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] | 790 | cat <<_ACEOF |
Alexandre Julliard | 8087fca | 2004-09-14 22:11:36 +0000 | [diff] [blame] | 791 | \`configure' configures Wine 20040914 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 792 | |
| 793 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 794 | |
| 795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 796 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 797 | |
| 798 | Defaults for the options are specified in brackets. |
| 799 | |
| 800 | Configuration: |
| 801 | -h, --help display this help and exit |
| 802 | --help=short display options specific to this package |
| 803 | --help=recursive display the short help of all the included packages |
| 804 | -V, --version display version information and exit |
| 805 | -q, --quiet, --silent do not print \`checking...' messages |
| 806 | --cache-file=FILE cache test results in FILE [disabled] |
| 807 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 808 | -n, --no-create do not create output files |
| 809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 810 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 811 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 812 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 813 | cat <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 814 | Installation directories: |
| 815 | --prefix=PREFIX install architecture-independent files in PREFIX |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 816 | [$ac_default_prefix] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 818 | [PREFIX] |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 819 | |
| 820 | By default, \`make install' will install all the files in |
| 821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 823 | for instance \`--prefix=\$HOME'. |
| 824 | |
| 825 | For better control, use the options below. |
| 826 | |
| 827 | Fine tuning of the installation directories: |
| 828 | --bindir=DIR user executables [EPREFIX/bin] |
| 829 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 830 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 835 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 836 | --includedir=DIR C header files [PREFIX/include] |
| 837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 838 | --infodir=DIR info documentation [PREFIX/info] |
| 839 | --mandir=DIR man documentation [PREFIX/man] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 840 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 841 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 842 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 843 | |
| 844 | X features: |
| 845 | --x-includes=DIR X include files are in DIR |
| 846 | --x-libraries=DIR X library files are in DIR |
| 847 | |
| 848 | System types: |
| 849 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 850 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 851 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 852 | fi |
| 853 | |
| 854 | if test -n "$ac_init_help"; then |
| 855 | case $ac_init_help in |
Alexandre Julliard | 8087fca | 2004-09-14 22:11:36 +0000 | [diff] [blame] | 856 | short | recursive ) echo "Configuration of Wine 20040914:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 857 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 858 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 859 | |
| 860 | Optional Features: |
| 861 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 862 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 863 | --disable-win16 do not include Win16 support |
| 864 | --disable-debug compile out all debugging messages |
| 865 | --disable-trace compile out TRACE messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 866 | |
| 867 | Optional Packages: |
| 868 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 869 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 870 | --without-opengl do not use OpenGL |
| 871 | --without-curses do not use curses |
| 872 | --with-wine-tools=<dir> use Wine tools from directory <dir> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 873 | --with-x use the X Window System |
| 874 | |
| 875 | Some influential environment variables: |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 876 | CC C compiler command |
| 877 | CFLAGS C compiler flags |
| 878 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 879 | nonstandard directory <lib dir> |
| 880 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 881 | headers in a nonstandard directory <include dir> |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 882 | CXX C++ compiler command |
| 883 | CXXFLAGS C++ compiler flags |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 884 | CPP C preprocessor |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 885 | |
| 886 | Use these variables to override the choices made by `configure' or to help |
| 887 | it to find libraries and programs with nonstandard names/locations. |
| 888 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 889 | Report bugs to <wine-devel@winehq.org>. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 890 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 891 | fi |
| 892 | |
| 893 | if test "$ac_init_help" = "recursive"; then |
| 894 | # If there are subdirs, report their specific --help. |
| 895 | ac_popdir=`pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 896 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 897 | test -d $ac_dir || continue |
| 898 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 899 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 900 | if test "$ac_dir" != .; then |
| 901 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 902 | # A "../" for each directory in $ac_dir_suffix. |
| 903 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 904 | else |
| 905 | ac_dir_suffix= ac_top_builddir= |
| 906 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 907 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 908 | case $srcdir in |
| 909 | .) # No --srcdir option. We are building in place. |
| 910 | ac_srcdir=. |
| 911 | if test -z "$ac_top_builddir"; then |
| 912 | ac_top_srcdir=. |
| 913 | else |
| 914 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 915 | fi ;; |
| 916 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 917 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 918 | ac_top_srcdir=$srcdir ;; |
| 919 | *) # Relative path. |
| 920 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 921 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 922 | esac |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 923 | |
| 924 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 925 | # the directories may not exist. |
| 926 | case `pwd` in |
| 927 | .) ac_abs_builddir="$ac_dir";; |
| 928 | *) |
| 929 | case "$ac_dir" in |
| 930 | .) ac_abs_builddir=`pwd`;; |
| 931 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 932 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 933 | esac;; |
| 934 | esac |
| 935 | case $ac_abs_builddir in |
| 936 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 937 | *) |
| 938 | case ${ac_top_builddir}. in |
| 939 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 940 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 941 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 942 | esac;; |
| 943 | esac |
| 944 | case $ac_abs_builddir in |
| 945 | .) ac_abs_srcdir=$ac_srcdir;; |
| 946 | *) |
| 947 | case $ac_srcdir in |
| 948 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 949 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 950 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 951 | esac;; |
| 952 | esac |
| 953 | case $ac_abs_builddir in |
| 954 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 955 | *) |
| 956 | case $ac_top_srcdir in |
| 957 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 958 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 959 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 960 | esac;; |
| 961 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 962 | |
| 963 | cd $ac_dir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 964 | # Check for guested configure; otherwise get Cygnus style configure. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 965 | if test -f $ac_srcdir/configure.gnu; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 966 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 967 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 968 | elif test -f $ac_srcdir/configure; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 969 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 970 | $SHELL $ac_srcdir/configure --help=recursive |
| 971 | elif test -f $ac_srcdir/configure.ac || |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 972 | test -f $ac_srcdir/configure.in; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 973 | echo |
| 974 | $ac_configure --help |
| 975 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 976 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 977 | fi |
Alexandre Julliard | ccc7570 | 2003-09-19 04:36:54 +0000 | [diff] [blame] | 978 | cd "$ac_popdir" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 979 | done |
| 980 | fi |
| 981 | |
| 982 | test -n "$ac_init_help" && exit 0 |
| 983 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 984 | cat <<\_ACEOF |
Alexandre Julliard | 8087fca | 2004-09-14 22:11:36 +0000 | [diff] [blame] | 985 | Wine configure 20040914 |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 986 | generated by GNU Autoconf 2.59 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 987 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 988 | Copyright (C) 2003 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 989 | This configure script is free software; the Free Software Foundation |
| 990 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 991 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 992 | exit 0 |
| 993 | fi |
| 994 | exec 5>config.log |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 995 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 996 | This file contains any messages produced by compilers while |
| 997 | running configure, to aid debugging if configure makes a mistake. |
| 998 | |
Alexandre Julliard | 8087fca | 2004-09-14 22:11:36 +0000 | [diff] [blame] | 999 | It was created by Wine $as_me 20040914, which was |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1000 | generated by GNU Autoconf 2.59. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1001 | |
| 1002 | $ $0 $@ |
| 1003 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1004 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1005 | { |
| 1006 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1007 | ## --------- ## |
| 1008 | ## Platform. ## |
| 1009 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1010 | |
| 1011 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1012 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1013 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1014 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1015 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1016 | |
| 1017 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1018 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1019 | |
| 1020 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1021 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1022 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1023 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1024 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1025 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1026 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1027 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1028 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1029 | |
| 1030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1031 | for as_dir in $PATH |
| 1032 | do |
| 1033 | IFS=$as_save_IFS |
| 1034 | test -z "$as_dir" && as_dir=. |
| 1035 | echo "PATH: $as_dir" |
| 1036 | done |
| 1037 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1038 | } >&5 |
| 1039 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1040 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1041 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1042 | |
| 1043 | ## ----------- ## |
| 1044 | ## Core tests. ## |
| 1045 | ## ----------- ## |
| 1046 | |
| 1047 | _ACEOF |
| 1048 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1049 | |
| 1050 | # Keep a trace of the command line. |
| 1051 | # Strip out --no-create and --no-recursion so they do not pile up. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1052 | # Strip out --silent because we don't want to record it for future runs. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1053 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1054 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1055 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1056 | ac_configure_args0= |
| 1057 | ac_configure_args1= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1058 | ac_sep= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1059 | ac_must_keep_next=false |
| 1060 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1061 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1062 | for ac_arg |
| 1063 | do |
| 1064 | case $ac_arg in |
| 1065 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1066 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1067 | | -silent | --silent | --silen | --sile | --sil) |
| 1068 | continue ;; |
| 1069 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1070 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1071 | esac |
| 1072 | case $ac_pass in |
| 1073 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1074 | 2) |
| 1075 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1076 | if test $ac_must_keep_next = true; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1077 | ac_must_keep_next=false # Got value, back to normal. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1078 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1079 | case $ac_arg in |
| 1080 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1081 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1082 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1083 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1084 | case "$ac_configure_args0 " in |
| 1085 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1086 | esac |
| 1087 | ;; |
| 1088 | -* ) ac_must_keep_next=true ;; |
| 1089 | esac |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1090 | fi |
| 1091 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1092 | # Get rid of the leading space. |
| 1093 | ac_sep=" " |
| 1094 | ;; |
| 1095 | esac |
| 1096 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1097 | done |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1098 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1099 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1100 | |
| 1101 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1102 | # config.log. We remove comments because anyway the quotes in there |
| 1103 | # would cause problems or look ugly. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1104 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1105 | # such as our DU 5.0 friend, will then `close' the trap. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1106 | trap 'exit_status=$? |
| 1107 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1108 | { |
| 1109 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1110 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1111 | cat <<\_ASBOX |
| 1112 | ## ---------------- ## |
| 1113 | ## Cache variables. ## |
| 1114 | ## ---------------- ## |
| 1115 | _ASBOX |
| 1116 | echo |
| 1117 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1118 | { |
| 1119 | (set) 2>&1 | |
| 1120 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1121 | *ac_space=\ *) |
| 1122 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1123 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1124 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1125 | ;; |
| 1126 | *) |
| 1127 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1128 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1129 | ;; |
| 1130 | esac; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1131 | } |
| 1132 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1133 | |
| 1134 | cat <<\_ASBOX |
| 1135 | ## ----------------- ## |
| 1136 | ## Output variables. ## |
| 1137 | ## ----------------- ## |
| 1138 | _ASBOX |
| 1139 | echo |
| 1140 | for ac_var in $ac_subst_vars |
| 1141 | do |
| 1142 | eval ac_val=$`echo $ac_var` |
| 1143 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1144 | done | sort |
| 1145 | echo |
| 1146 | |
| 1147 | if test -n "$ac_subst_files"; then |
| 1148 | cat <<\_ASBOX |
| 1149 | ## ------------- ## |
| 1150 | ## Output files. ## |
| 1151 | ## ------------- ## |
| 1152 | _ASBOX |
| 1153 | echo |
| 1154 | for ac_var in $ac_subst_files |
| 1155 | do |
| 1156 | eval ac_val=$`echo $ac_var` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1157 | echo "$ac_var='"'"'$ac_val'"'"'" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1158 | done | sort |
| 1159 | echo |
| 1160 | fi |
| 1161 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1162 | if test -s confdefs.h; then |
| 1163 | cat <<\_ASBOX |
| 1164 | ## ----------- ## |
| 1165 | ## confdefs.h. ## |
| 1166 | ## ----------- ## |
| 1167 | _ASBOX |
| 1168 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1169 | sed "/^$/d" confdefs.h | sort |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1170 | echo |
| 1171 | fi |
| 1172 | test "$ac_signal" != 0 && |
| 1173 | echo "$as_me: caught signal $ac_signal" |
| 1174 | echo "$as_me: exit $exit_status" |
| 1175 | } >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 1176 | rm -f core *.core && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1177 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1178 | exit $exit_status |
| 1179 | ' 0 |
| 1180 | for ac_signal in 1 2 13 15; do |
| 1181 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1182 | done |
| 1183 | ac_signal=0 |
| 1184 | |
| 1185 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1186 | rm -rf conftest* confdefs.h |
| 1187 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1188 | echo >confdefs.h |
| 1189 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1190 | # Predefined preprocessor variables. |
| 1191 | |
| 1192 | cat >>confdefs.h <<_ACEOF |
| 1193 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1194 | _ACEOF |
| 1195 | |
| 1196 | |
| 1197 | cat >>confdefs.h <<_ACEOF |
| 1198 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1199 | _ACEOF |
| 1200 | |
| 1201 | |
| 1202 | cat >>confdefs.h <<_ACEOF |
| 1203 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1204 | _ACEOF |
| 1205 | |
| 1206 | |
| 1207 | cat >>confdefs.h <<_ACEOF |
| 1208 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1209 | _ACEOF |
| 1210 | |
| 1211 | |
| 1212 | cat >>confdefs.h <<_ACEOF |
| 1213 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1214 | _ACEOF |
| 1215 | |
| 1216 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1217 | # 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] | 1218 | # Prefer explicitly selected file to automatically selected ones. |
| 1219 | if test -z "$CONFIG_SITE"; then |
| 1220 | if test "x$prefix" != xNONE; then |
| 1221 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1222 | else |
| 1223 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1224 | fi |
| 1225 | fi |
| 1226 | for ac_site_file in $CONFIG_SITE; do |
| 1227 | if test -r "$ac_site_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1228 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1229 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1230 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1231 | . "$ac_site_file" |
| 1232 | fi |
| 1233 | done |
| 1234 | |
| 1235 | if test -r "$cache_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1236 | # Some versions of bash will fail to source /dev/null (special |
| 1237 | # files actually), so we avoid doing that. |
| 1238 | if test -f "$cache_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1239 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1240 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1241 | case $cache_file in |
| 1242 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1243 | *) . ./$cache_file;; |
| 1244 | esac |
| 1245 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1246 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1247 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1248 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1249 | >$cache_file |
| 1250 | fi |
| 1251 | |
| 1252 | # Check that the precious variables saved in the cache have kept the same |
| 1253 | # value. |
| 1254 | ac_cache_corrupted=false |
| 1255 | for ac_var in `(set) 2>&1 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1256 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1257 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1258 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1259 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1260 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1261 | case $ac_old_set,$ac_new_set in |
| 1262 | set,) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1263 | { 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] | 1264 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1265 | ac_cache_corrupted=: ;; |
| 1266 | ,set) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1267 | { 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] | 1268 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1269 | ac_cache_corrupted=: ;; |
| 1270 | ,);; |
| 1271 | *) |
| 1272 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1273 | { 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] | 1274 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1275 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1276 | echo "$as_me: former value: $ac_old_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1277 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1278 | echo "$as_me: current value: $ac_new_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1279 | ac_cache_corrupted=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1280 | fi;; |
| 1281 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1282 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1283 | if test "$ac_new_set" = set; then |
| 1284 | case $ac_new_val in |
| 1285 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1286 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1287 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1288 | esac |
| 1289 | case " $ac_configure_args " in |
| 1290 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1291 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1292 | esac |
| 1293 | fi |
| 1294 | done |
| 1295 | if $ac_cache_corrupted; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1296 | { 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] | 1297 | 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] | 1298 | { { 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] | 1299 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1300 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1301 | fi |
| 1302 | |
| 1303 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1304 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1308 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1309 | |
| 1310 | |
| 1311 | |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1334 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1335 | |
| 1336 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1337 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1338 | ac_aux_dir= |
| 1339 | for ac_dir in tools $srcdir/tools; do |
| 1340 | if test -f $ac_dir/install-sh; then |
| 1341 | ac_aux_dir=$ac_dir |
| 1342 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1343 | break |
| 1344 | elif test -f $ac_dir/install.sh; then |
| 1345 | ac_aux_dir=$ac_dir |
| 1346 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1347 | break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1348 | elif test -f $ac_dir/shtool; then |
| 1349 | ac_aux_dir=$ac_dir |
| 1350 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1351 | break |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1352 | fi |
| 1353 | done |
| 1354 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1355 | { { 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] | 1356 | echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;} |
| 1357 | { (exit 1); exit 1; }; } |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1358 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1359 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1360 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1361 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 1362 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1363 | |
| 1364 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1365 | # Check whether --enable-win16 or --disable-win16 was given. |
| 1366 | if test "${enable_win16+set}" = set; then |
| 1367 | enableval="$enable_win16" |
| 1368 | |
| 1369 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1370 | # Check whether --enable-debug or --disable-debug was given. |
| 1371 | if test "${enable_debug+set}" = set; then |
| 1372 | enableval="$enable_debug" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1373 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1374 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1375 | # Check whether --enable-trace or --disable-trace was given. |
| 1376 | if test "${enable_trace+set}" = set; then |
| 1377 | enableval="$enable_trace" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1378 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1379 | fi; |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1380 | |
| 1381 | |
| 1382 | # Check whether --with-opengl or --without-opengl was given. |
| 1383 | if test "${with_opengl+set}" = set; then |
| 1384 | withval="$with_opengl" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1385 | |
| 1386 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1387 | |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1388 | # Check whether --with-curses or --without-curses was given. |
| 1389 | if test "${with_curses+set}" = set; then |
| 1390 | withval="$with_curses" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1391 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1392 | fi; |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1393 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1394 | # Check whether --with-wine-tools or --without-wine-tools was given. |
| 1395 | if test "${with_wine_tools+set}" = set; then |
| 1396 | withval="$with_wine_tools" |
| 1397 | |
| 1398 | fi; |
| 1399 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1400 | WIN16_FILES="\$(WIN16_FILES)" |
| 1401 | |
| 1402 | WIN16_INSTALL="\$(WIN16_INSTALL)" |
| 1403 | |
| 1404 | if test "x$enable_win16" = "xno" |
| 1405 | then |
| 1406 | WIN16_FILES="" |
| 1407 | WIN16_INSTALL="" |
| 1408 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1409 | if test "x$enable_debug" = "xno" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1410 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1411 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1412 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1413 | #define NO_DEBUG_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1414 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1415 | |
| 1416 | fi |
| 1417 | if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1418 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1419 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1420 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1421 | #define NO_TRACE_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1422 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1423 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1424 | fi |
| 1425 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1426 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1427 | # Make sure we can run config.sub. |
| 1428 | $ac_config_sub sun4 >/dev/null 2>&1 || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1429 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1430 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1431 | { (exit 1); exit 1; }; } |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1432 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1433 | echo "$as_me:$LINENO: checking build system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1434 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1435 | if test "${ac_cv_build+set}" = set; then |
| 1436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1437 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1438 | ac_cv_build_alias=$build_alias |
| 1439 | test -z "$ac_cv_build_alias" && |
| 1440 | ac_cv_build_alias=`$ac_config_guess` |
| 1441 | test -z "$ac_cv_build_alias" && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1442 | { { 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] | 1443 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1444 | { (exit 1); exit 1; }; } |
| 1445 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1446 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1447 | 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] | 1448 | { (exit 1); exit 1; }; } |
| 1449 | |
| 1450 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1451 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1452 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1453 | build=$ac_cv_build |
| 1454 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1455 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1456 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1457 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1458 | |
| 1459 | echo "$as_me:$LINENO: checking host system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1460 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1461 | if test "${ac_cv_host+set}" = set; then |
| 1462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1463 | else |
| 1464 | ac_cv_host_alias=$host_alias |
| 1465 | test -z "$ac_cv_host_alias" && |
| 1466 | ac_cv_host_alias=$ac_cv_build_alias |
| 1467 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1468 | { { 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] | 1469 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1470 | { (exit 1); exit 1; }; } |
| 1471 | |
| 1472 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1473 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1474 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1475 | host=$ac_cv_host |
| 1476 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1477 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1478 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1479 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1480 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1481 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1482 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1483 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1484 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1486 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1487 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1488 | all: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1489 | @echo 'ac_maketemp="$(MAKE)"' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1490 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1491 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1492 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1493 | if test -n "$ac_maketemp"; then |
| 1494 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1495 | else |
| 1496 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1497 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1498 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1499 | fi |
| 1500 | 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] | 1501 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1502 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1503 | SET_MAKE= |
| 1504 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1505 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1506 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1507 | SET_MAKE="MAKE=${MAKE-make}" |
| 1508 | fi |
| 1509 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1510 | ac_ext=c |
| 1511 | ac_cpp='$CPP $CPPFLAGS' |
| 1512 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1513 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1514 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1515 | if test -n "$ac_tool_prefix"; then |
| 1516 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1517 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1518 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1520 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1522 | else |
| 1523 | if test -n "$CC"; then |
| 1524 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1525 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1527 | for as_dir in $PATH |
| 1528 | do |
| 1529 | IFS=$as_save_IFS |
| 1530 | test -z "$as_dir" && as_dir=. |
| 1531 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1532 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1533 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1535 | break 2 |
| 1536 | fi |
| 1537 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1538 | done |
| 1539 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1540 | fi |
| 1541 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1542 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1543 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1544 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1545 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1546 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1547 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1548 | echo "${ECHO_T}no" >&6 |
| 1549 | fi |
| 1550 | |
| 1551 | fi |
| 1552 | if test -z "$ac_cv_prog_CC"; then |
| 1553 | ac_ct_CC=$CC |
| 1554 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1555 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1556 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1558 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1560 | else |
| 1561 | if test -n "$ac_ct_CC"; then |
| 1562 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1563 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1565 | for as_dir in $PATH |
| 1566 | do |
| 1567 | IFS=$as_save_IFS |
| 1568 | test -z "$as_dir" && as_dir=. |
| 1569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1570 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1571 | ac_cv_prog_ac_ct_CC="gcc" |
| 1572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1573 | break 2 |
| 1574 | fi |
| 1575 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1576 | done |
| 1577 | |
| 1578 | fi |
| 1579 | fi |
| 1580 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1581 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1582 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1583 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1584 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1585 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1586 | echo "${ECHO_T}no" >&6 |
| 1587 | fi |
| 1588 | |
| 1589 | CC=$ac_ct_CC |
| 1590 | else |
| 1591 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1592 | fi |
| 1593 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1594 | if test -z "$CC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1595 | if test -n "$ac_tool_prefix"; then |
| 1596 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1597 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1598 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1600 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1602 | else |
| 1603 | if test -n "$CC"; then |
| 1604 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1605 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1607 | for as_dir in $PATH |
| 1608 | do |
| 1609 | IFS=$as_save_IFS |
| 1610 | test -z "$as_dir" && as_dir=. |
| 1611 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1612 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1613 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1614 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1615 | break 2 |
| 1616 | fi |
| 1617 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1618 | done |
| 1619 | |
| 1620 | fi |
| 1621 | fi |
| 1622 | CC=$ac_cv_prog_CC |
| 1623 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1624 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1625 | echo "${ECHO_T}$CC" >&6 |
| 1626 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1627 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1628 | echo "${ECHO_T}no" >&6 |
| 1629 | fi |
| 1630 | |
| 1631 | fi |
| 1632 | if test -z "$ac_cv_prog_CC"; then |
| 1633 | ac_ct_CC=$CC |
| 1634 | # Extract the first word of "cc", so it can be a program name with args. |
| 1635 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1636 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1637 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1638 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1640 | else |
| 1641 | if test -n "$ac_ct_CC"; then |
| 1642 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1643 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1645 | for as_dir in $PATH |
| 1646 | do |
| 1647 | IFS=$as_save_IFS |
| 1648 | test -z "$as_dir" && as_dir=. |
| 1649 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1650 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1651 | ac_cv_prog_ac_ct_CC="cc" |
| 1652 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1653 | break 2 |
| 1654 | fi |
| 1655 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1656 | done |
| 1657 | |
| 1658 | fi |
| 1659 | fi |
| 1660 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1661 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1662 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1663 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1664 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1665 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1666 | echo "${ECHO_T}no" >&6 |
| 1667 | fi |
| 1668 | |
| 1669 | CC=$ac_ct_CC |
| 1670 | else |
| 1671 | CC="$ac_cv_prog_CC" |
| 1672 | fi |
| 1673 | |
| 1674 | fi |
| 1675 | if test -z "$CC"; then |
| 1676 | # Extract the first word of "cc", so it can be a program name with args. |
| 1677 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1678 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1680 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1682 | else |
| 1683 | if test -n "$CC"; then |
| 1684 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1685 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1686 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1688 | for as_dir in $PATH |
| 1689 | do |
| 1690 | IFS=$as_save_IFS |
| 1691 | test -z "$as_dir" && as_dir=. |
| 1692 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1694 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1695 | ac_prog_rejected=yes |
| 1696 | continue |
| 1697 | fi |
| 1698 | ac_cv_prog_CC="cc" |
| 1699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1700 | break 2 |
| 1701 | fi |
| 1702 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1703 | done |
| 1704 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1705 | if test $ac_prog_rejected = yes; then |
| 1706 | # We found a bogon in the path, so make sure we never use it. |
| 1707 | set dummy $ac_cv_prog_CC |
| 1708 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1709 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1710 | # We chose a different compiler from the bogus one. |
| 1711 | # However, it has the same basename, so the bogon will be chosen |
| 1712 | # first if we set CC to just the basename; use the full file name. |
| 1713 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1714 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1715 | fi |
| 1716 | fi |
| 1717 | fi |
| 1718 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1719 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1720 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1721 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1722 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1723 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1724 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1725 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1726 | fi |
| 1727 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1728 | fi |
| 1729 | if test -z "$CC"; then |
| 1730 | if test -n "$ac_tool_prefix"; then |
| 1731 | for ac_prog in cl |
| 1732 | do |
| 1733 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1734 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1735 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1737 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1739 | else |
| 1740 | if test -n "$CC"; then |
| 1741 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1742 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1744 | for as_dir in $PATH |
| 1745 | do |
| 1746 | IFS=$as_save_IFS |
| 1747 | test -z "$as_dir" && as_dir=. |
| 1748 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1749 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1750 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1751 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1752 | break 2 |
| 1753 | fi |
| 1754 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1755 | done |
| 1756 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1757 | fi |
| 1758 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1759 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1760 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1761 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1762 | echo "${ECHO_T}$CC" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1763 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1764 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1765 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1766 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1767 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1768 | test -n "$CC" && break |
| 1769 | done |
| 1770 | fi |
| 1771 | if test -z "$CC"; then |
| 1772 | ac_ct_CC=$CC |
| 1773 | for ac_prog in cl |
| 1774 | do |
| 1775 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1776 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1777 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1779 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1781 | else |
| 1782 | if test -n "$ac_ct_CC"; then |
| 1783 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1784 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1786 | for as_dir in $PATH |
| 1787 | do |
| 1788 | IFS=$as_save_IFS |
| 1789 | test -z "$as_dir" && as_dir=. |
| 1790 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1791 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1792 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1794 | break 2 |
| 1795 | fi |
| 1796 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1797 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1798 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1799 | fi |
| 1800 | fi |
| 1801 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1802 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1803 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1804 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1805 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1806 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1807 | echo "${ECHO_T}no" >&6 |
| 1808 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1809 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1810 | test -n "$ac_ct_CC" && break |
| 1811 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1812 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1813 | CC=$ac_ct_CC |
| 1814 | fi |
| 1815 | |
| 1816 | fi |
| 1817 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1818 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1819 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1820 | See \`config.log' for more details." >&5 |
| 1821 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1822 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1823 | { (exit 1); exit 1; }; } |
| 1824 | |
| 1825 | # Provide some information about the compiler. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1826 | echo "$as_me:$LINENO:" \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1827 | "checking for C compiler version" >&5 |
| 1828 | ac_compiler=`set X $ac_compile; echo $2` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1829 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1830 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1831 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1833 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1834 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1835 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1836 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1838 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1839 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1840 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1841 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1843 | (exit $ac_status); } |
| 1844 | |
| 1845 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1846 | /* confdefs.h. */ |
| 1847 | _ACEOF |
| 1848 | cat confdefs.h >>conftest.$ac_ext |
| 1849 | cat >>conftest.$ac_ext <<_ACEOF |
| 1850 | /* end confdefs.h. */ |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1851 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1852 | int |
| 1853 | main () |
| 1854 | { |
| 1855 | |
| 1856 | ; |
| 1857 | return 0; |
| 1858 | } |
| 1859 | _ACEOF |
| 1860 | ac_clean_files_save=$ac_clean_files |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1861 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1862 | # Try to create an executable without -o first, disregard a.out. |
| 1863 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1864 | # of exeext. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1865 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1866 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1867 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1868 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1869 | (eval $ac_link_default) 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 | # Find the output, starting from the most likely. This scheme is |
| 1874 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1875 | # resort. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1876 | |
| 1877 | # Be careful to initialize this variable, since it used to be cached. |
| 1878 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1879 | ac_cv_exeext= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1880 | # b.out is created by i960 compilers. |
| 1881 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1882 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1883 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1884 | case $ac_file in |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1885 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1886 | ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1887 | conftest.$ac_ext ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1888 | # This is the source file. |
| 1889 | ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1890 | [ab].out ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1891 | # We found the default executable, but exeext='' is most |
| 1892 | # certainly right. |
| 1893 | break;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1894 | *.* ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1895 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1896 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1897 | # but it would be cool to find out if it's true. Does anybody |
| 1898 | # maintain Libtool? --akim. |
| 1899 | export ac_cv_exeext |
| 1900 | break;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1901 | * ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1902 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1903 | esac |
| 1904 | done |
| 1905 | else |
| 1906 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1907 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1908 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1909 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1910 | See \`config.log' for more details." >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1911 | echo "$as_me: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1912 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1913 | { (exit 77); exit 77; }; } |
| 1914 | fi |
| 1915 | |
| 1916 | ac_exeext=$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1917 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1918 | echo "${ECHO_T}$ac_file" >&6 |
| 1919 | |
| 1920 | # Check the compiler produces executables we can run. If not, either |
| 1921 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1922 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1923 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1924 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1925 | # If not cross compiling, check that we can run a simple program. |
| 1926 | if test "$cross_compiling" != yes; then |
| 1927 | if { ac_try='./$ac_file' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1929 | (eval $ac_try) 2>&5 |
| 1930 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1932 | (exit $ac_status); }; }; then |
| 1933 | cross_compiling=no |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1934 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1935 | if test "$cross_compiling" = maybe; then |
| 1936 | cross_compiling=yes |
| 1937 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1938 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1939 | If you meant to cross compile, use \`--host'. |
| 1940 | See \`config.log' for more details." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1941 | echo "$as_me: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1942 | If you meant to cross compile, use \`--host'. |
| 1943 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1944 | { (exit 1); exit 1; }; } |
| 1945 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1946 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1947 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1948 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1949 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1950 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1951 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1952 | ac_clean_files=$ac_clean_files_save |
| 1953 | # Check the compiler produces executables we can run. If not, either |
| 1954 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1955 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1956 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1957 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1958 | echo "${ECHO_T}$cross_compiling" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1959 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1960 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1961 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1963 | (eval $ac_link) 2>&5 |
| 1964 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1966 | (exit $ac_status); }; then |
| 1967 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1968 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1969 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1970 | # `rm'. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1971 | for ac_file in conftest.exe conftest conftest.*; do |
| 1972 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1973 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1974 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1975 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1976 | export ac_cv_exeext |
| 1977 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1978 | * ) break;; |
| 1979 | esac |
| 1980 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1981 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1982 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1983 | See \`config.log' for more details." >&5 |
| 1984 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1985 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1986 | { (exit 1); exit 1; }; } |
| 1987 | fi |
| 1988 | |
| 1989 | rm -f conftest$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1990 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1991 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1992 | |
| 1993 | rm -f conftest.$ac_ext |
| 1994 | EXEEXT=$ac_cv_exeext |
| 1995 | ac_exeext=$EXEEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1996 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1997 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1998 | if test "${ac_cv_objext+set}" = set; then |
| 1999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2000 | else |
| 2001 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2002 | /* confdefs.h. */ |
| 2003 | _ACEOF |
| 2004 | cat confdefs.h >>conftest.$ac_ext |
| 2005 | cat >>conftest.$ac_ext <<_ACEOF |
| 2006 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2007 | |
| 2008 | int |
| 2009 | main () |
| 2010 | { |
| 2011 | |
| 2012 | ; |
| 2013 | return 0; |
| 2014 | } |
| 2015 | _ACEOF |
| 2016 | rm -f conftest.o conftest.obj |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2018 | (eval $ac_compile) 2>&5 |
| 2019 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2021 | (exit $ac_status); }; then |
| 2022 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2023 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2024 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2025 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2026 | break;; |
| 2027 | esac |
| 2028 | done |
| 2029 | else |
| 2030 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2032 | |
| 2033 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2034 | See \`config.log' for more details." >&5 |
| 2035 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2036 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2037 | { (exit 1); exit 1; }; } |
| 2038 | fi |
| 2039 | |
| 2040 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2041 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2042 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2043 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2044 | OBJEXT=$ac_cv_objext |
| 2045 | ac_objext=$OBJEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2046 | 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] | 2047 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2048 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2050 | else |
| 2051 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2052 | /* confdefs.h. */ |
| 2053 | _ACEOF |
| 2054 | cat confdefs.h >>conftest.$ac_ext |
| 2055 | cat >>conftest.$ac_ext <<_ACEOF |
| 2056 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2057 | |
| 2058 | int |
| 2059 | main () |
| 2060 | { |
| 2061 | #ifndef __GNUC__ |
| 2062 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2063 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2064 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2065 | ; |
| 2066 | return 0; |
| 2067 | } |
| 2068 | _ACEOF |
| 2069 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2071 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2072 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2074 | rm -f conftest.er1 |
| 2075 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2077 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2078 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2080 | (eval $ac_try) 2>&5 |
| 2081 | ac_status=$? |
| 2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2083 | (exit $ac_status); }; } && |
| 2084 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2086 | (eval $ac_try) 2>&5 |
| 2087 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2089 | (exit $ac_status); }; }; then |
| 2090 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2091 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2092 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2094 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2095 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2096 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2098 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2099 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2100 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2101 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2102 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2103 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2104 | ac_test_CFLAGS=${CFLAGS+set} |
| 2105 | ac_save_CFLAGS=$CFLAGS |
| 2106 | CFLAGS="-g" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2107 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2108 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2109 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2111 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2112 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2113 | /* confdefs.h. */ |
| 2114 | _ACEOF |
| 2115 | cat confdefs.h >>conftest.$ac_ext |
| 2116 | cat >>conftest.$ac_ext <<_ACEOF |
| 2117 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2118 | |
| 2119 | int |
| 2120 | main () |
| 2121 | { |
| 2122 | |
| 2123 | ; |
| 2124 | return 0; |
| 2125 | } |
| 2126 | _ACEOF |
| 2127 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2129 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2130 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2132 | rm -f conftest.er1 |
| 2133 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2135 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2136 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2138 | (eval $ac_try) 2>&5 |
| 2139 | ac_status=$? |
| 2140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2141 | (exit $ac_status); }; } && |
| 2142 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2144 | (eval $ac_try) 2>&5 |
| 2145 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2147 | (exit $ac_status); }; }; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2148 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2149 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2150 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2152 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2153 | ac_cv_prog_cc_g=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2154 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2156 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2157 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2158 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2159 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2160 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2161 | elif test $ac_cv_prog_cc_g = yes; then |
| 2162 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2163 | CFLAGS="-g -O2" |
| 2164 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2165 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2166 | fi |
| 2167 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2168 | if test "$GCC" = yes; then |
| 2169 | CFLAGS="-O2" |
| 2170 | else |
| 2171 | CFLAGS= |
| 2172 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2173 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2174 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2175 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2176 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2178 | else |
| 2179 | ac_cv_prog_cc_stdc=no |
| 2180 | ac_save_CC=$CC |
| 2181 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2182 | /* confdefs.h. */ |
| 2183 | _ACEOF |
| 2184 | cat confdefs.h >>conftest.$ac_ext |
| 2185 | cat >>conftest.$ac_ext <<_ACEOF |
| 2186 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2187 | #include <stdarg.h> |
| 2188 | #include <stdio.h> |
| 2189 | #include <sys/types.h> |
| 2190 | #include <sys/stat.h> |
| 2191 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2192 | struct buf { int x; }; |
| 2193 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2194 | static char *e (p, i) |
| 2195 | char **p; |
| 2196 | int i; |
| 2197 | { |
| 2198 | return p[i]; |
| 2199 | } |
| 2200 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2201 | { |
| 2202 | char *s; |
| 2203 | va_list v; |
| 2204 | va_start (v,p); |
| 2205 | s = g (p, va_arg (v,int)); |
| 2206 | va_end (v); |
| 2207 | return s; |
| 2208 | } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2209 | |
| 2210 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2211 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2212 | These don't provoke an error unfortunately, instead are silently treated |
| 2213 | as 'x'. The following induces an error, until -std1 is added to get |
| 2214 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2215 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2216 | that's true only with -std1. */ |
| 2217 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2218 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2219 | int test (int i, double x); |
| 2220 | struct s1 {int (*f) (int a);}; |
| 2221 | struct s2 {int (*f) (double a);}; |
| 2222 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2223 | int argc; |
| 2224 | char **argv; |
| 2225 | int |
| 2226 | main () |
| 2227 | { |
| 2228 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2229 | ; |
| 2230 | return 0; |
| 2231 | } |
| 2232 | _ACEOF |
| 2233 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2234 | # breaks some systems' header files. |
| 2235 | # AIX -qlanglvl=ansi |
| 2236 | # Ultrix and OSF/1 -std1 |
| 2237 | # HP-UX 10.20 and later -Ae |
| 2238 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2239 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2240 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2241 | do |
| 2242 | CC="$ac_save_CC $ac_arg" |
| 2243 | rm -f conftest.$ac_objext |
| 2244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2245 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2246 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2248 | rm -f conftest.er1 |
| 2249 | cat conftest.err >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2251 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2254 | (eval $ac_try) 2>&5 |
| 2255 | ac_status=$? |
| 2256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2257 | (exit $ac_status); }; } && |
| 2258 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2260 | (eval $ac_try) 2>&5 |
| 2261 | ac_status=$? |
| 2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2263 | (exit $ac_status); }; }; then |
| 2264 | ac_cv_prog_cc_stdc=$ac_arg |
| 2265 | break |
| 2266 | else |
| 2267 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2269 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2270 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2271 | rm -f conftest.err conftest.$ac_objext |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2272 | done |
| 2273 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2274 | CC=$ac_save_CC |
| 2275 | |
| 2276 | fi |
| 2277 | |
| 2278 | case "x$ac_cv_prog_cc_stdc" in |
| 2279 | x|xno) |
| 2280 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2281 | echo "${ECHO_T}none needed" >&6 ;; |
| 2282 | *) |
| 2283 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2284 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2285 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2286 | esac |
| 2287 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2288 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2289 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2290 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2291 | # the declaration of exit, since it's the most demanding environment. |
| 2292 | cat >conftest.$ac_ext <<_ACEOF |
| 2293 | #ifndef __cplusplus |
| 2294 | choke me |
| 2295 | #endif |
| 2296 | _ACEOF |
| 2297 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2299 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2300 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2302 | rm -f conftest.er1 |
| 2303 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2305 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2306 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2308 | (eval $ac_try) 2>&5 |
| 2309 | ac_status=$? |
| 2310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2311 | (exit $ac_status); }; } && |
| 2312 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2314 | (eval $ac_try) 2>&5 |
| 2315 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2317 | (exit $ac_status); }; }; then |
| 2318 | for ac_declaration in \ |
Alexandre Julliard | 90b1c2c | 2003-06-18 20:35:38 +0000 | [diff] [blame] | 2319 | '' \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2320 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2321 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2322 | 'extern "C" void exit (int) throw ();' \ |
| 2323 | 'extern "C" void exit (int);' \ |
Alexandre Julliard | 90b1c2c | 2003-06-18 20:35:38 +0000 | [diff] [blame] | 2324 | 'void exit (int);' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2325 | do |
| 2326 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2327 | /* confdefs.h. */ |
| 2328 | _ACEOF |
| 2329 | cat confdefs.h >>conftest.$ac_ext |
| 2330 | cat >>conftest.$ac_ext <<_ACEOF |
| 2331 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2332 | $ac_declaration |
Alexandre Julliard | 90b1c2c | 2003-06-18 20:35:38 +0000 | [diff] [blame] | 2333 | #include <stdlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2334 | int |
| 2335 | main () |
| 2336 | { |
| 2337 | exit (42); |
| 2338 | ; |
| 2339 | return 0; |
| 2340 | } |
| 2341 | _ACEOF |
| 2342 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2344 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2345 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2347 | rm -f conftest.er1 |
| 2348 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2350 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2351 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2353 | (eval $ac_try) 2>&5 |
| 2354 | ac_status=$? |
| 2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2356 | (exit $ac_status); }; } && |
| 2357 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2359 | (eval $ac_try) 2>&5 |
| 2360 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2362 | (exit $ac_status); }; }; then |
| 2363 | : |
| 2364 | else |
| 2365 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2367 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2368 | continue |
| 2369 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2371 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2372 | /* confdefs.h. */ |
| 2373 | _ACEOF |
| 2374 | cat confdefs.h >>conftest.$ac_ext |
| 2375 | cat >>conftest.$ac_ext <<_ACEOF |
| 2376 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2377 | $ac_declaration |
| 2378 | int |
| 2379 | main () |
| 2380 | { |
| 2381 | exit (42); |
| 2382 | ; |
| 2383 | return 0; |
| 2384 | } |
| 2385 | _ACEOF |
| 2386 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2388 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2389 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2391 | rm -f conftest.er1 |
| 2392 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2394 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2395 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2397 | (eval $ac_try) 2>&5 |
| 2398 | ac_status=$? |
| 2399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2400 | (exit $ac_status); }; } && |
| 2401 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2403 | (eval $ac_try) 2>&5 |
| 2404 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2406 | (exit $ac_status); }; }; then |
| 2407 | break |
| 2408 | else |
| 2409 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2411 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2412 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2414 | done |
| 2415 | rm -f conftest* |
| 2416 | if test -n "$ac_declaration"; then |
| 2417 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2418 | echo $ac_declaration >>confdefs.h |
| 2419 | echo '#endif' >>confdefs.h |
| 2420 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2421 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2422 | else |
| 2423 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2425 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2426 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2428 | ac_ext=c |
| 2429 | ac_cpp='$CPP $CPPFLAGS' |
| 2430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2433 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2434 | ac_ext=cc |
| 2435 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2436 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2437 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2438 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2439 | if test -n "$ac_tool_prefix"; then |
| 2440 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2441 | do |
| 2442 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2443 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2444 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2446 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2448 | else |
| 2449 | if test -n "$CXX"; then |
| 2450 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2451 | else |
| 2452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2453 | for as_dir in $PATH |
| 2454 | do |
| 2455 | IFS=$as_save_IFS |
| 2456 | test -z "$as_dir" && as_dir=. |
| 2457 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2459 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2461 | break 2 |
| 2462 | fi |
| 2463 | done |
| 2464 | done |
| 2465 | |
| 2466 | fi |
| 2467 | fi |
| 2468 | CXX=$ac_cv_prog_CXX |
| 2469 | if test -n "$CXX"; then |
| 2470 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2471 | echo "${ECHO_T}$CXX" >&6 |
| 2472 | else |
| 2473 | echo "$as_me:$LINENO: result: no" >&5 |
| 2474 | echo "${ECHO_T}no" >&6 |
| 2475 | fi |
| 2476 | |
| 2477 | test -n "$CXX" && break |
| 2478 | done |
| 2479 | fi |
| 2480 | if test -z "$CXX"; then |
| 2481 | ac_ct_CXX=$CXX |
| 2482 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2483 | do |
| 2484 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2485 | set dummy $ac_prog; ac_word=$2 |
| 2486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2488 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2490 | else |
| 2491 | if test -n "$ac_ct_CXX"; then |
| 2492 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2493 | else |
| 2494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2495 | for as_dir in $PATH |
| 2496 | do |
| 2497 | IFS=$as_save_IFS |
| 2498 | test -z "$as_dir" && as_dir=. |
| 2499 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2501 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2503 | break 2 |
| 2504 | fi |
| 2505 | done |
| 2506 | done |
| 2507 | |
| 2508 | fi |
| 2509 | fi |
| 2510 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2511 | if test -n "$ac_ct_CXX"; then |
| 2512 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2513 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 2514 | else |
| 2515 | echo "$as_me:$LINENO: result: no" >&5 |
| 2516 | echo "${ECHO_T}no" >&6 |
| 2517 | fi |
| 2518 | |
| 2519 | test -n "$ac_ct_CXX" && break |
| 2520 | done |
| 2521 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2522 | |
| 2523 | CXX=$ac_ct_CXX |
| 2524 | fi |
| 2525 | |
| 2526 | |
| 2527 | # Provide some information about the compiler. |
| 2528 | echo "$as_me:$LINENO:" \ |
| 2529 | "checking for C++ compiler version" >&5 |
| 2530 | ac_compiler=`set X $ac_compile; echo $2` |
| 2531 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2532 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2533 | ac_status=$? |
| 2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2535 | (exit $ac_status); } |
| 2536 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2537 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2538 | ac_status=$? |
| 2539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2540 | (exit $ac_status); } |
| 2541 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2542 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2543 | ac_status=$? |
| 2544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2545 | (exit $ac_status); } |
| 2546 | |
| 2547 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2548 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2549 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2551 | else |
| 2552 | cat >conftest.$ac_ext <<_ACEOF |
| 2553 | /* confdefs.h. */ |
| 2554 | _ACEOF |
| 2555 | cat confdefs.h >>conftest.$ac_ext |
| 2556 | cat >>conftest.$ac_ext <<_ACEOF |
| 2557 | /* end confdefs.h. */ |
| 2558 | |
| 2559 | int |
| 2560 | main () |
| 2561 | { |
| 2562 | #ifndef __GNUC__ |
| 2563 | choke me |
| 2564 | #endif |
| 2565 | |
| 2566 | ; |
| 2567 | return 0; |
| 2568 | } |
| 2569 | _ACEOF |
| 2570 | rm -f conftest.$ac_objext |
| 2571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2572 | (eval $ac_compile) 2>conftest.er1 |
| 2573 | ac_status=$? |
| 2574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2575 | rm -f conftest.er1 |
| 2576 | cat conftest.err >&5 |
| 2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2578 | (exit $ac_status); } && |
| 2579 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2581 | (eval $ac_try) 2>&5 |
| 2582 | ac_status=$? |
| 2583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2584 | (exit $ac_status); }; } && |
| 2585 | { ac_try='test -s conftest.$ac_objext' |
| 2586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2587 | (eval $ac_try) 2>&5 |
| 2588 | ac_status=$? |
| 2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2590 | (exit $ac_status); }; }; then |
| 2591 | ac_compiler_gnu=yes |
| 2592 | else |
| 2593 | echo "$as_me: failed program was:" >&5 |
| 2594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2595 | |
| 2596 | ac_compiler_gnu=no |
| 2597 | fi |
| 2598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2599 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2600 | |
| 2601 | fi |
| 2602 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2603 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2604 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2605 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2606 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2607 | CXXFLAGS="-g" |
| 2608 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2609 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2610 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2612 | else |
| 2613 | cat >conftest.$ac_ext <<_ACEOF |
| 2614 | /* confdefs.h. */ |
| 2615 | _ACEOF |
| 2616 | cat confdefs.h >>conftest.$ac_ext |
| 2617 | cat >>conftest.$ac_ext <<_ACEOF |
| 2618 | /* end confdefs.h. */ |
| 2619 | |
| 2620 | int |
| 2621 | main () |
| 2622 | { |
| 2623 | |
| 2624 | ; |
| 2625 | return 0; |
| 2626 | } |
| 2627 | _ACEOF |
| 2628 | rm -f conftest.$ac_objext |
| 2629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2630 | (eval $ac_compile) 2>conftest.er1 |
| 2631 | ac_status=$? |
| 2632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2633 | rm -f conftest.er1 |
| 2634 | cat conftest.err >&5 |
| 2635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2636 | (exit $ac_status); } && |
| 2637 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2639 | (eval $ac_try) 2>&5 |
| 2640 | ac_status=$? |
| 2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2642 | (exit $ac_status); }; } && |
| 2643 | { ac_try='test -s conftest.$ac_objext' |
| 2644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2645 | (eval $ac_try) 2>&5 |
| 2646 | ac_status=$? |
| 2647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2648 | (exit $ac_status); }; }; then |
| 2649 | ac_cv_prog_cxx_g=yes |
| 2650 | else |
| 2651 | echo "$as_me: failed program was:" >&5 |
| 2652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2653 | |
| 2654 | ac_cv_prog_cxx_g=no |
| 2655 | fi |
| 2656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2657 | fi |
| 2658 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2659 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2660 | if test "$ac_test_CXXFLAGS" = set; then |
| 2661 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2662 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2663 | if test "$GXX" = yes; then |
| 2664 | CXXFLAGS="-g -O2" |
| 2665 | else |
| 2666 | CXXFLAGS="-g" |
| 2667 | fi |
| 2668 | else |
| 2669 | if test "$GXX" = yes; then |
| 2670 | CXXFLAGS="-O2" |
| 2671 | else |
| 2672 | CXXFLAGS= |
| 2673 | fi |
| 2674 | fi |
| 2675 | for ac_declaration in \ |
| 2676 | '' \ |
| 2677 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2678 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2679 | 'extern "C" void exit (int) throw ();' \ |
| 2680 | 'extern "C" void exit (int);' \ |
| 2681 | 'void exit (int);' |
| 2682 | do |
| 2683 | cat >conftest.$ac_ext <<_ACEOF |
| 2684 | /* confdefs.h. */ |
| 2685 | _ACEOF |
| 2686 | cat confdefs.h >>conftest.$ac_ext |
| 2687 | cat >>conftest.$ac_ext <<_ACEOF |
| 2688 | /* end confdefs.h. */ |
| 2689 | $ac_declaration |
| 2690 | #include <stdlib.h> |
| 2691 | int |
| 2692 | main () |
| 2693 | { |
| 2694 | exit (42); |
| 2695 | ; |
| 2696 | return 0; |
| 2697 | } |
| 2698 | _ACEOF |
| 2699 | rm -f conftest.$ac_objext |
| 2700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2701 | (eval $ac_compile) 2>conftest.er1 |
| 2702 | ac_status=$? |
| 2703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2704 | rm -f conftest.er1 |
| 2705 | cat conftest.err >&5 |
| 2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2707 | (exit $ac_status); } && |
| 2708 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2710 | (eval $ac_try) 2>&5 |
| 2711 | ac_status=$? |
| 2712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2713 | (exit $ac_status); }; } && |
| 2714 | { ac_try='test -s conftest.$ac_objext' |
| 2715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2716 | (eval $ac_try) 2>&5 |
| 2717 | ac_status=$? |
| 2718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2719 | (exit $ac_status); }; }; then |
| 2720 | : |
| 2721 | else |
| 2722 | echo "$as_me: failed program was:" >&5 |
| 2723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2724 | |
| 2725 | continue |
| 2726 | fi |
| 2727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2728 | cat >conftest.$ac_ext <<_ACEOF |
| 2729 | /* confdefs.h. */ |
| 2730 | _ACEOF |
| 2731 | cat confdefs.h >>conftest.$ac_ext |
| 2732 | cat >>conftest.$ac_ext <<_ACEOF |
| 2733 | /* end confdefs.h. */ |
| 2734 | $ac_declaration |
| 2735 | int |
| 2736 | main () |
| 2737 | { |
| 2738 | exit (42); |
| 2739 | ; |
| 2740 | return 0; |
| 2741 | } |
| 2742 | _ACEOF |
| 2743 | rm -f conftest.$ac_objext |
| 2744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2745 | (eval $ac_compile) 2>conftest.er1 |
| 2746 | ac_status=$? |
| 2747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2748 | rm -f conftest.er1 |
| 2749 | cat conftest.err >&5 |
| 2750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2751 | (exit $ac_status); } && |
| 2752 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2754 | (eval $ac_try) 2>&5 |
| 2755 | ac_status=$? |
| 2756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2757 | (exit $ac_status); }; } && |
| 2758 | { ac_try='test -s conftest.$ac_objext' |
| 2759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2760 | (eval $ac_try) 2>&5 |
| 2761 | ac_status=$? |
| 2762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2763 | (exit $ac_status); }; }; then |
| 2764 | break |
| 2765 | else |
| 2766 | echo "$as_me: failed program was:" >&5 |
| 2767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2768 | |
| 2769 | fi |
| 2770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2771 | done |
| 2772 | rm -f conftest* |
| 2773 | if test -n "$ac_declaration"; then |
| 2774 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2775 | echo $ac_declaration >>confdefs.h |
| 2776 | echo '#endif' >>confdefs.h |
| 2777 | fi |
| 2778 | |
| 2779 | ac_ext=c |
| 2780 | ac_cpp='$CPP $CPPFLAGS' |
| 2781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2784 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2785 | if test -n "$ac_tool_prefix"; then |
| 2786 | # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. |
| 2787 | set dummy ${ac_tool_prefix}cpp; ac_word=$2 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2788 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2790 | if test "${ac_cv_prog_CPPBIN+set}" = set; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2792 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2793 | if test -n "$CPPBIN"; then |
| 2794 | ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test. |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2795 | else |
| 2796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2797 | for as_dir in $PATH |
| 2798 | do |
| 2799 | IFS=$as_save_IFS |
| 2800 | test -z "$as_dir" && as_dir=. |
| 2801 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2802 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2803 | ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2804 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2805 | break 2 |
| 2806 | fi |
| 2807 | done |
| 2808 | done |
| 2809 | |
| 2810 | fi |
| 2811 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2812 | CPPBIN=$ac_cv_prog_CPPBIN |
| 2813 | if test -n "$CPPBIN"; then |
| 2814 | echo "$as_me:$LINENO: result: $CPPBIN" >&5 |
| 2815 | echo "${ECHO_T}$CPPBIN" >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2816 | else |
| 2817 | echo "$as_me:$LINENO: result: no" >&5 |
| 2818 | echo "${ECHO_T}no" >&6 |
| 2819 | fi |
| 2820 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2821 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2822 | if test -z "$ac_cv_prog_CPPBIN"; then |
| 2823 | ac_ct_CPPBIN=$CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2824 | # Extract the first word of "cpp", so it can be a program name with args. |
| 2825 | set dummy cpp; ac_word=$2 |
| 2826 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2828 | if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2830 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2831 | if test -n "$ac_ct_CPPBIN"; then |
| 2832 | ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test. |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2833 | else |
| 2834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2835 | for as_dir in $PATH |
| 2836 | do |
| 2837 | IFS=$as_save_IFS |
| 2838 | test -z "$as_dir" && as_dir=. |
| 2839 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2840 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2841 | ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2843 | break 2 |
| 2844 | fi |
| 2845 | done |
| 2846 | done |
| 2847 | |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2848 | test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2849 | fi |
| 2850 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2851 | ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN |
| 2852 | if test -n "$ac_ct_CPPBIN"; then |
| 2853 | echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5 |
| 2854 | echo "${ECHO_T}$ac_ct_CPPBIN" >&6 |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2855 | else |
| 2856 | echo "$as_me:$LINENO: result: no" >&5 |
| 2857 | echo "${ECHO_T}no" >&6 |
| 2858 | fi |
| 2859 | |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2860 | CPPBIN=$ac_ct_CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2861 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2862 | CPPBIN="$ac_cv_prog_CPPBIN" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2863 | fi |
| 2864 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2865 | |
| 2866 | echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
| 2867 | echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6 |
| 2868 | if test "${wine_cv_toolsdir+set}" = set; then |
| 2869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2870 | else |
| 2871 | if test -z "$with_wine_tools"; then |
| 2872 | if test "$cross_compiling" = "yes"; then |
| 2873 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 |
| 2874 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} |
| 2875 | { (exit 1); exit 1; }; } |
| 2876 | else |
| 2877 | wine_cv_toolsdir="\$(TOPOBJDIR)" |
| 2878 | fi |
| 2879 | elif test -d "$with_wine_tools/tools/winebuild"; then |
| 2880 | case $with_wine_tools in |
| 2881 | /*) wine_cv_toolsdir="$with_wine_tools" ;; |
| 2882 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; |
| 2883 | esac |
| 2884 | else |
| 2885 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 |
| 2886 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} |
| 2887 | { (exit 1); exit 1; }; } |
| 2888 | fi |
| 2889 | fi |
| 2890 | echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 |
| 2891 | echo "${ECHO_T}$wine_cv_toolsdir" >&6 |
| 2892 | TOOLSDIR=$wine_cv_toolsdir |
| 2893 | |
| 2894 | |
| 2895 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2896 | ac_ext=c |
| 2897 | ac_cpp='$CPP $CPPFLAGS' |
| 2898 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2899 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2900 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2901 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2902 | 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] | 2903 | # On Suns, sometimes $CPP names a directory. |
| 2904 | if test -n "$CPP" && test -d "$CPP"; then |
| 2905 | CPP= |
| 2906 | fi |
| 2907 | if test -z "$CPP"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2908 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2910 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2911 | # Double quotes because CPP needs to be expanded |
| 2912 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2913 | do |
| 2914 | ac_preproc_ok=false |
| 2915 | for ac_c_preproc_warn_flag in '' yes |
| 2916 | do |
| 2917 | # Use a header file that comes with gcc, so configuring glibc |
| 2918 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2919 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2920 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2921 | # 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] | 2922 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2923 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2924 | /* confdefs.h. */ |
| 2925 | _ACEOF |
| 2926 | cat confdefs.h >>conftest.$ac_ext |
| 2927 | cat >>conftest.$ac_ext <<_ACEOF |
| 2928 | /* end confdefs.h. */ |
| 2929 | #ifdef __STDC__ |
| 2930 | # include <limits.h> |
| 2931 | #else |
| 2932 | # include <assert.h> |
| 2933 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2934 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2935 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2936 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2937 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2938 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2939 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2940 | rm -f conftest.er1 |
| 2941 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2943 | (exit $ac_status); } >/dev/null; then |
| 2944 | if test -s conftest.err; then |
| 2945 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2946 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2947 | else |
| 2948 | ac_cpp_err= |
| 2949 | fi |
| 2950 | else |
| 2951 | ac_cpp_err=yes |
| 2952 | fi |
| 2953 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2954 | : |
| 2955 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2956 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2958 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2959 | # Broken: fails on valid input. |
| 2960 | continue |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2961 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2962 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2963 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2964 | # OK, works on sane cases. Now check whether non-existent headers |
| 2965 | # can be detected and how. |
| 2966 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2967 | /* confdefs.h. */ |
| 2968 | _ACEOF |
| 2969 | cat confdefs.h >>conftest.$ac_ext |
| 2970 | cat >>conftest.$ac_ext <<_ACEOF |
| 2971 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2972 | #include <ac_nonexistent.h> |
| 2973 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2974 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2975 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2976 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2977 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2978 | rm -f conftest.er1 |
| 2979 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2981 | (exit $ac_status); } >/dev/null; then |
| 2982 | if test -s conftest.err; then |
| 2983 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2984 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2985 | else |
| 2986 | ac_cpp_err= |
| 2987 | fi |
| 2988 | else |
| 2989 | ac_cpp_err=yes |
| 2990 | fi |
| 2991 | if test -z "$ac_cpp_err"; then |
| 2992 | # Broken: success on invalid input. |
| 2993 | continue |
| 2994 | else |
| 2995 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2997 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2998 | # Passes both tests. |
| 2999 | ac_preproc_ok=: |
| 3000 | break |
| 3001 | fi |
| 3002 | rm -f conftest.err conftest.$ac_ext |
| 3003 | |
| 3004 | done |
| 3005 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3006 | rm -f conftest.err conftest.$ac_ext |
| 3007 | if $ac_preproc_ok; then |
| 3008 | break |
| 3009 | fi |
| 3010 | |
| 3011 | done |
| 3012 | ac_cv_prog_CPP=$CPP |
| 3013 | |
| 3014 | fi |
| 3015 | CPP=$ac_cv_prog_CPP |
| 3016 | else |
| 3017 | ac_cv_prog_CPP=$CPP |
| 3018 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3019 | echo "$as_me:$LINENO: result: $CPP" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3020 | echo "${ECHO_T}$CPP" >&6 |
| 3021 | ac_preproc_ok=false |
| 3022 | for ac_c_preproc_warn_flag in '' yes |
| 3023 | do |
| 3024 | # Use a header file that comes with gcc, so configuring glibc |
| 3025 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3026 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3027 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3028 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3029 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3030 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3031 | /* confdefs.h. */ |
| 3032 | _ACEOF |
| 3033 | cat confdefs.h >>conftest.$ac_ext |
| 3034 | cat >>conftest.$ac_ext <<_ACEOF |
| 3035 | /* end confdefs.h. */ |
| 3036 | #ifdef __STDC__ |
| 3037 | # include <limits.h> |
| 3038 | #else |
| 3039 | # include <assert.h> |
| 3040 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3041 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3042 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3043 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3044 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3045 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3046 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3047 | rm -f conftest.er1 |
| 3048 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3050 | (exit $ac_status); } >/dev/null; then |
| 3051 | if test -s conftest.err; then |
| 3052 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3053 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3054 | else |
| 3055 | ac_cpp_err= |
| 3056 | fi |
| 3057 | else |
| 3058 | ac_cpp_err=yes |
| 3059 | fi |
| 3060 | if test -z "$ac_cpp_err"; then |
| 3061 | : |
| 3062 | else |
| 3063 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3065 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3066 | # Broken: fails on valid input. |
| 3067 | continue |
| 3068 | fi |
| 3069 | rm -f conftest.err conftest.$ac_ext |
| 3070 | |
| 3071 | # OK, works on sane cases. Now check whether non-existent headers |
| 3072 | # can be detected and how. |
| 3073 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3074 | /* confdefs.h. */ |
| 3075 | _ACEOF |
| 3076 | cat confdefs.h >>conftest.$ac_ext |
| 3077 | cat >>conftest.$ac_ext <<_ACEOF |
| 3078 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3079 | #include <ac_nonexistent.h> |
| 3080 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3081 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3083 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3084 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3085 | rm -f conftest.er1 |
| 3086 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3088 | (exit $ac_status); } >/dev/null; then |
| 3089 | if test -s conftest.err; then |
| 3090 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3091 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3092 | else |
| 3093 | ac_cpp_err= |
| 3094 | fi |
| 3095 | else |
| 3096 | ac_cpp_err=yes |
| 3097 | fi |
| 3098 | if test -z "$ac_cpp_err"; then |
| 3099 | # Broken: success on invalid input. |
| 3100 | continue |
| 3101 | else |
| 3102 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3104 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3105 | # Passes both tests. |
| 3106 | ac_preproc_ok=: |
| 3107 | break |
| 3108 | fi |
| 3109 | rm -f conftest.err conftest.$ac_ext |
| 3110 | |
| 3111 | done |
| 3112 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3113 | rm -f conftest.err conftest.$ac_ext |
| 3114 | if $ac_preproc_ok; then |
| 3115 | : |
| 3116 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3117 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3118 | See \`config.log' for more details." >&5 |
| 3119 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3120 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3121 | { (exit 1); exit 1; }; } |
| 3122 | fi |
| 3123 | |
| 3124 | ac_ext=c |
| 3125 | ac_cpp='$CPP $CPPFLAGS' |
| 3126 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3127 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3128 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3129 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3130 | |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3131 | |
| 3132 | if test "x$ac_path_x_has_been_run" != xyes; then |
| 3133 | echo "$as_me:$LINENO: checking for X" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3134 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3135 | |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3136 | ac_path_x_has_been_run=yes |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3137 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3138 | # Check whether --with-x or --without-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3139 | if test "${with_x+set}" = set; then |
| 3140 | withval="$with_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3141 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3142 | fi; |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3143 | # $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] | 3144 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3145 | # The user explicitly disabled X. |
| 3146 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3147 | else |
| 3148 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3149 | # Both variables are already set. |
| 3150 | have_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3151 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3152 | if test "${ac_cv_have_x+set}" = set; then |
| 3153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3154 | else |
| 3155 | # 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] | 3156 | ac_x_includes=no ac_x_libraries=no |
| 3157 | rm -fr conftest.dir |
| 3158 | if mkdir conftest.dir; then |
| 3159 | cd conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3160 | # 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] | 3161 | cat >Imakefile <<'_ACEOF' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3162 | acfindx: |
| 3163 | @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] | 3164 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3165 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3166 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3167 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3168 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 3169 | for ac_extension in a so sl; do |
| 3170 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3171 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 3172 | ac_im_usrlibdir=$ac_im_libdir; break |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3173 | fi |
| 3174 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3175 | # Screen out bogus values from the imake configuration. They are |
| 3176 | # bogus both because they are the default anyway, and because |
| 3177 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3178 | case $ac_im_incroot in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3179 | /usr/include) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3180 | *) 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] | 3181 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3182 | case $ac_im_usrlibdir in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3183 | /usr/lib | /lib) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3184 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3185 | esac |
| 3186 | fi |
| 3187 | cd .. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3188 | rm -fr conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3189 | fi |
| 3190 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3191 | # Standard set of common directories for X headers. |
| 3192 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 3193 | ac_x_header_dirs=' |
| 3194 | /usr/X11/include |
| 3195 | /usr/X11R6/include |
| 3196 | /usr/X11R5/include |
| 3197 | /usr/X11R4/include |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3198 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3199 | /usr/include/X11 |
| 3200 | /usr/include/X11R6 |
| 3201 | /usr/include/X11R5 |
| 3202 | /usr/include/X11R4 |
| 3203 | |
| 3204 | /usr/local/X11/include |
| 3205 | /usr/local/X11R6/include |
| 3206 | /usr/local/X11R5/include |
| 3207 | /usr/local/X11R4/include |
| 3208 | |
| 3209 | /usr/local/include/X11 |
| 3210 | /usr/local/include/X11R6 |
| 3211 | /usr/local/include/X11R5 |
| 3212 | /usr/local/include/X11R4 |
| 3213 | |
| 3214 | /usr/X386/include |
| 3215 | /usr/x386/include |
| 3216 | /usr/XFree86/include/X11 |
| 3217 | |
| 3218 | /usr/include |
| 3219 | /usr/local/include |
| 3220 | /usr/unsupported/include |
| 3221 | /usr/athena/include |
| 3222 | /usr/local/x11r5/include |
| 3223 | /usr/lpp/Xamples/include |
| 3224 | |
| 3225 | /usr/openwin/include |
| 3226 | /usr/openwin/share/include' |
| 3227 | |
| 3228 | if test "$ac_x_includes" = no; then |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3229 | # Guess where to find include files, by looking for a specified header file. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3230 | # First, try using that file with no special directory specified. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3231 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3232 | /* confdefs.h. */ |
| 3233 | _ACEOF |
| 3234 | cat confdefs.h >>conftest.$ac_ext |
| 3235 | cat >>conftest.$ac_ext <<_ACEOF |
| 3236 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3237 | #include <X11/Intrinsic.h> |
| 3238 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3239 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3240 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3241 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3242 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3243 | rm -f conftest.er1 |
| 3244 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3246 | (exit $ac_status); } >/dev/null; then |
| 3247 | if test -s conftest.err; then |
| 3248 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3249 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3250 | else |
| 3251 | ac_cpp_err= |
| 3252 | fi |
| 3253 | else |
| 3254 | ac_cpp_err=yes |
| 3255 | fi |
| 3256 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3257 | # We can compile using X headers with no special include directory. |
| 3258 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3259 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3260 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3262 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3263 | for ac_dir in $ac_x_header_dirs; do |
| 3264 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 3265 | ac_x_includes=$ac_dir |
| 3266 | break |
| 3267 | fi |
| 3268 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3269 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3270 | rm -f conftest.err conftest.$ac_ext |
| 3271 | fi # $ac_x_includes = no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3272 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3273 | if test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3274 | # Check for the libraries. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3275 | # See if we find them without any special options. |
| 3276 | # Don't add to $LIBS permanently. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3277 | ac_save_LIBS=$LIBS |
| 3278 | LIBS="-lXt $LIBS" |
| 3279 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3280 | /* confdefs.h. */ |
| 3281 | _ACEOF |
| 3282 | cat confdefs.h >>conftest.$ac_ext |
| 3283 | cat >>conftest.$ac_ext <<_ACEOF |
| 3284 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3285 | #include <X11/Intrinsic.h> |
| 3286 | int |
| 3287 | main () |
| 3288 | { |
| 3289 | XtMalloc (0) |
| 3290 | ; |
| 3291 | return 0; |
| 3292 | } |
| 3293 | _ACEOF |
| 3294 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3296 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3297 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3299 | rm -f conftest.er1 |
| 3300 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3302 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3305 | (eval $ac_try) 2>&5 |
| 3306 | ac_status=$? |
| 3307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3308 | (exit $ac_status); }; } && |
| 3309 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3311 | (eval $ac_try) 2>&5 |
| 3312 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3314 | (exit $ac_status); }; }; then |
| 3315 | LIBS=$ac_save_LIBS |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3316 | # We can link X programs with no special library path. |
| 3317 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3318 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3319 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3321 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3322 | LIBS=$ac_save_LIBS |
| 3323 | 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] | 3324 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3325 | # 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] | 3326 | for ac_extension in a so sl; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3327 | if test -r $ac_dir/libXt.$ac_extension; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3328 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3329 | break 2 |
| 3330 | fi |
| 3331 | done |
| 3332 | done |
| 3333 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3334 | rm -f conftest.err conftest.$ac_objext \ |
| 3335 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3336 | fi # $ac_x_libraries = no |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3337 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3338 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3339 | # Didn't find X anywhere. Cache the known absence of X. |
| 3340 | ac_cv_have_x="have_x=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3341 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3342 | # Record where we found X for the cache. |
| 3343 | ac_cv_have_x="have_x=yes \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3344 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3345 | fi |
| 3346 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3347 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3348 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3349 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3350 | fi # $with_x != no |
| 3351 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3352 | if test "$have_x" != yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3353 | echo "$as_me:$LINENO: result: $have_x" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3354 | echo "${ECHO_T}$have_x" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3355 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3356 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3357 | # 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] | 3358 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 3359 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3360 | # Update the cache value to reflect the command line values. |
| 3361 | ac_cv_have_x="have_x=yes \ |
| 3362 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3363 | # It might be that x_includes is empty (headers are found in the |
| 3364 | # standard search path. Then output the corresponding message |
| 3365 | ac_out_x_includes=$x_includes |
| 3366 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" |
| 3367 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 |
| 3368 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3369 | fi |
| 3370 | |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3371 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3372 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3373 | # 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] | 3374 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3375 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3376 | #define X_DISPLAY_MISSING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3377 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3378 | |
| 3379 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3380 | else |
| 3381 | if test -n "$x_includes"; then |
| 3382 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 3383 | fi |
| 3384 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3385 | # It would also be nice to do this for all -L options, not just this one. |
| 3386 | if test -n "$x_libraries"; then |
| 3387 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3388 | # For Solaris; some versions of Sun CC require a space after -R and |
| 3389 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3390 | case `(uname -sr) 2>/dev/null` in |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3391 | "SunOS 5"*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3392 | 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] | 3393 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 3394 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 3395 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3396 | /* confdefs.h. */ |
| 3397 | _ACEOF |
| 3398 | cat confdefs.h >>conftest.$ac_ext |
| 3399 | cat >>conftest.$ac_ext <<_ACEOF |
| 3400 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3401 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3402 | int |
| 3403 | main () |
| 3404 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3405 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3406 | ; |
| 3407 | return 0; |
| 3408 | } |
| 3409 | _ACEOF |
| 3410 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3412 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3413 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3414 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3415 | rm -f conftest.er1 |
| 3416 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3418 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3419 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3421 | (eval $ac_try) 2>&5 |
| 3422 | ac_status=$? |
| 3423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3424 | (exit $ac_status); }; } && |
| 3425 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3427 | (eval $ac_try) 2>&5 |
| 3428 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3430 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3431 | ac_R_nospace=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3432 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3433 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3434 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3435 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3436 | ac_R_nospace=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3437 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3438 | rm -f conftest.err conftest.$ac_objext \ |
| 3439 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3440 | if test $ac_R_nospace = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3441 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3442 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3443 | X_LIBS="$X_LIBS -R$x_libraries" |
| 3444 | else |
| 3445 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3446 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3447 | /* confdefs.h. */ |
| 3448 | _ACEOF |
| 3449 | cat confdefs.h >>conftest.$ac_ext |
| 3450 | cat >>conftest.$ac_ext <<_ACEOF |
| 3451 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3452 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3453 | int |
| 3454 | main () |
| 3455 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3456 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3457 | ; |
| 3458 | return 0; |
| 3459 | } |
| 3460 | _ACEOF |
| 3461 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3463 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3464 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3466 | rm -f conftest.er1 |
| 3467 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3469 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3472 | (eval $ac_try) 2>&5 |
| 3473 | ac_status=$? |
| 3474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3475 | (exit $ac_status); }; } && |
| 3476 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3478 | (eval $ac_try) 2>&5 |
| 3479 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3481 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3482 | ac_R_space=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3483 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3484 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3486 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3487 | ac_R_space=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3488 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3489 | rm -f conftest.err conftest.$ac_objext \ |
| 3490 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3491 | if test $ac_R_space = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3492 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3493 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3494 | X_LIBS="$X_LIBS -R $x_libraries" |
| 3495 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3496 | echo "$as_me:$LINENO: result: neither works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3497 | echo "${ECHO_T}neither works" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3498 | fi |
| 3499 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3500 | LIBS=$ac_xsave_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3501 | esac |
| 3502 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3503 | |
| 3504 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3505 | # Do this before checking for the system-independent R6 libraries |
| 3506 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3507 | |
| 3508 | if test "$ISC" = yes; then |
| 3509 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 3510 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3511 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 3512 | # libraries were built with DECnet support. And Karl Berry says |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3513 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3514 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 3515 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3516 | /* confdefs.h. */ |
| 3517 | _ACEOF |
| 3518 | cat confdefs.h >>conftest.$ac_ext |
| 3519 | cat >>conftest.$ac_ext <<_ACEOF |
| 3520 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3521 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3522 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3523 | #ifdef __cplusplus |
| 3524 | extern "C" |
| 3525 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3526 | /* 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] | 3527 | builtin and then its argument prototype would still apply. */ |
| 3528 | char XOpenDisplay (); |
| 3529 | int |
| 3530 | main () |
| 3531 | { |
| 3532 | XOpenDisplay (); |
| 3533 | ; |
| 3534 | return 0; |
| 3535 | } |
| 3536 | _ACEOF |
| 3537 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3539 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3540 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3542 | rm -f conftest.er1 |
| 3543 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3545 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3548 | (eval $ac_try) 2>&5 |
| 3549 | ac_status=$? |
| 3550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3551 | (exit $ac_status); }; } && |
| 3552 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3554 | (eval $ac_try) 2>&5 |
| 3555 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3557 | (exit $ac_status); }; }; then |
| 3558 | : |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3559 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3560 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3561 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3562 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3563 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3564 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 3565 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 3566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3567 | else |
| 3568 | ac_check_lib_save_LIBS=$LIBS |
| 3569 | LIBS="-ldnet $LIBS" |
| 3570 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3571 | /* confdefs.h. */ |
| 3572 | _ACEOF |
| 3573 | cat confdefs.h >>conftest.$ac_ext |
| 3574 | cat >>conftest.$ac_ext <<_ACEOF |
| 3575 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3576 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3577 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3578 | #ifdef __cplusplus |
| 3579 | extern "C" |
| 3580 | #endif |
| 3581 | /* We use char because int might match the return type of a gcc2 |
| 3582 | builtin and then its argument prototype would still apply. */ |
| 3583 | char dnet_ntoa (); |
| 3584 | int |
| 3585 | main () |
| 3586 | { |
| 3587 | dnet_ntoa (); |
| 3588 | ; |
| 3589 | return 0; |
| 3590 | } |
| 3591 | _ACEOF |
| 3592 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3594 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3595 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3596 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3597 | rm -f conftest.er1 |
| 3598 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3600 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3601 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3603 | (eval $ac_try) 2>&5 |
| 3604 | ac_status=$? |
| 3605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3606 | (exit $ac_status); }; } && |
| 3607 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3609 | (eval $ac_try) 2>&5 |
| 3610 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3612 | (exit $ac_status); }; }; then |
| 3613 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 3614 | else |
| 3615 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3617 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3618 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3619 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3620 | rm -f conftest.err conftest.$ac_objext \ |
| 3621 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3622 | LIBS=$ac_check_lib_save_LIBS |
| 3623 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3624 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3625 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 3626 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3627 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3628 | fi |
| 3629 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3630 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3631 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3632 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 3633 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 3634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3635 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3636 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3637 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3638 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3639 | /* confdefs.h. */ |
| 3640 | _ACEOF |
| 3641 | cat confdefs.h >>conftest.$ac_ext |
| 3642 | cat >>conftest.$ac_ext <<_ACEOF |
| 3643 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3644 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3645 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3646 | #ifdef __cplusplus |
| 3647 | extern "C" |
| 3648 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3649 | /* 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] | 3650 | builtin and then its argument prototype would still apply. */ |
| 3651 | char dnet_ntoa (); |
| 3652 | int |
| 3653 | main () |
| 3654 | { |
| 3655 | dnet_ntoa (); |
| 3656 | ; |
| 3657 | return 0; |
| 3658 | } |
| 3659 | _ACEOF |
| 3660 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3662 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3663 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3665 | rm -f conftest.er1 |
| 3666 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3668 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3671 | (eval $ac_try) 2>&5 |
| 3672 | ac_status=$? |
| 3673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3674 | (exit $ac_status); }; } && |
| 3675 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3677 | (eval $ac_try) 2>&5 |
| 3678 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3680 | (exit $ac_status); }; }; then |
| 3681 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3682 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3683 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3685 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3686 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3687 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3688 | rm -f conftest.err conftest.$ac_objext \ |
| 3689 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3690 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3691 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3692 | 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] | 3693 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 3694 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3695 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3696 | fi |
| 3697 | |
| 3698 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3699 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3700 | rm -f conftest.err conftest.$ac_objext \ |
| 3701 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3702 | LIBS="$ac_xsave_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3703 | |
| 3704 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 3705 | # to get the SysV transport functions. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3706 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3707 | # needs -lnsl. |
| 3708 | # The nsl library prevents programs from opening the X display |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3709 | # on Irix 5.2, according to T.E. Dickey. |
| 3710 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 3711 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3712 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3713 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 3714 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 3715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3716 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3717 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3718 | /* confdefs.h. */ |
| 3719 | _ACEOF |
| 3720 | cat confdefs.h >>conftest.$ac_ext |
| 3721 | cat >>conftest.$ac_ext <<_ACEOF |
| 3722 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3723 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 3724 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3725 | #define gethostbyname innocuous_gethostbyname |
| 3726 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3727 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3728 | which can conflict with char gethostbyname (); below. |
| 3729 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3730 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3731 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3732 | #ifdef __STDC__ |
| 3733 | # include <limits.h> |
| 3734 | #else |
| 3735 | # include <assert.h> |
| 3736 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3737 | |
| 3738 | #undef gethostbyname |
| 3739 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3740 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3741 | #ifdef __cplusplus |
| 3742 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3743 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3744 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3745 | /* 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] | 3746 | builtin and then its argument prototype would still apply. */ |
| 3747 | char gethostbyname (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3748 | /* The GNU C library defines this for functions which it implements |
| 3749 | to always fail with ENOSYS. Some functions are actually named |
| 3750 | something starting with __ and the normal name is an alias. */ |
| 3751 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 3752 | choke me |
| 3753 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3754 | char (*f) () = gethostbyname; |
| 3755 | #endif |
| 3756 | #ifdef __cplusplus |
| 3757 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3758 | #endif |
| 3759 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3760 | int |
| 3761 | main () |
| 3762 | { |
| 3763 | return f != gethostbyname; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3764 | ; |
| 3765 | return 0; |
| 3766 | } |
| 3767 | _ACEOF |
| 3768 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3770 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3771 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3773 | rm -f conftest.er1 |
| 3774 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3776 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3779 | (eval $ac_try) 2>&5 |
| 3780 | ac_status=$? |
| 3781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3782 | (exit $ac_status); }; } && |
| 3783 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3785 | (eval $ac_try) 2>&5 |
| 3786 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3788 | (exit $ac_status); }; }; then |
| 3789 | ac_cv_func_gethostbyname=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3790 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3791 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3793 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3794 | ac_cv_func_gethostbyname=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3795 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3796 | rm -f conftest.err conftest.$ac_objext \ |
| 3797 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3798 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3799 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3800 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3801 | |
| 3802 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3803 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3804 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 3805 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 3806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3807 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3808 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3809 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3810 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3811 | /* confdefs.h. */ |
| 3812 | _ACEOF |
| 3813 | cat confdefs.h >>conftest.$ac_ext |
| 3814 | cat >>conftest.$ac_ext <<_ACEOF |
| 3815 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3816 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3817 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3818 | #ifdef __cplusplus |
| 3819 | extern "C" |
| 3820 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3821 | /* 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] | 3822 | builtin and then its argument prototype would still apply. */ |
| 3823 | char gethostbyname (); |
| 3824 | int |
| 3825 | main () |
| 3826 | { |
| 3827 | gethostbyname (); |
| 3828 | ; |
| 3829 | return 0; |
| 3830 | } |
| 3831 | _ACEOF |
| 3832 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3834 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3835 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3837 | rm -f conftest.er1 |
| 3838 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3840 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3841 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3843 | (eval $ac_try) 2>&5 |
| 3844 | ac_status=$? |
| 3845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3846 | (exit $ac_status); }; } && |
| 3847 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3849 | (eval $ac_try) 2>&5 |
| 3850 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3852 | (exit $ac_status); }; }; then |
| 3853 | ac_cv_lib_nsl_gethostbyname=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3854 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3855 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3856 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3857 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3858 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3859 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3860 | rm -f conftest.err conftest.$ac_objext \ |
| 3861 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3862 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3863 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3864 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3865 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 3866 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3867 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3868 | fi |
| 3869 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3870 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3871 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3872 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 3873 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 3874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3875 | else |
| 3876 | ac_check_lib_save_LIBS=$LIBS |
| 3877 | LIBS="-lbsd $LIBS" |
| 3878 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3879 | /* confdefs.h. */ |
| 3880 | _ACEOF |
| 3881 | cat confdefs.h >>conftest.$ac_ext |
| 3882 | cat >>conftest.$ac_ext <<_ACEOF |
| 3883 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3884 | |
| 3885 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3886 | #ifdef __cplusplus |
| 3887 | extern "C" |
| 3888 | #endif |
| 3889 | /* We use char because int might match the return type of a gcc2 |
| 3890 | builtin and then its argument prototype would still apply. */ |
| 3891 | char gethostbyname (); |
| 3892 | int |
| 3893 | main () |
| 3894 | { |
| 3895 | gethostbyname (); |
| 3896 | ; |
| 3897 | return 0; |
| 3898 | } |
| 3899 | _ACEOF |
| 3900 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3902 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3903 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3905 | rm -f conftest.er1 |
| 3906 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3908 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3909 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3911 | (eval $ac_try) 2>&5 |
| 3912 | ac_status=$? |
| 3913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3914 | (exit $ac_status); }; } && |
| 3915 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3917 | (eval $ac_try) 2>&5 |
| 3918 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3920 | (exit $ac_status); }; }; then |
| 3921 | ac_cv_lib_bsd_gethostbyname=yes |
| 3922 | else |
| 3923 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3925 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3926 | ac_cv_lib_bsd_gethostbyname=no |
| 3927 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3928 | rm -f conftest.err conftest.$ac_objext \ |
| 3929 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3930 | LIBS=$ac_check_lib_save_LIBS |
| 3931 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3932 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3933 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 3934 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 3935 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 3936 | fi |
| 3937 | |
| 3938 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3939 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3940 | |
| 3941 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3942 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 3943 | # 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] | 3944 | # on later versions), says Simon Leinen: it contains gethostby* |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3945 | # variants that don't use the name server (or something). -lsocket |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3946 | # must be given before -lnsl if both are needed. We assume that |
| 3947 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3948 | echo "$as_me:$LINENO: checking for connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3949 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 3950 | if test "${ac_cv_func_connect+set}" = set; then |
| 3951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3952 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3953 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3954 | /* confdefs.h. */ |
| 3955 | _ACEOF |
| 3956 | cat confdefs.h >>conftest.$ac_ext |
| 3957 | cat >>conftest.$ac_ext <<_ACEOF |
| 3958 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3959 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 3960 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3961 | #define connect innocuous_connect |
| 3962 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3963 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3964 | which can conflict with char connect (); below. |
| 3965 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3966 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3967 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3968 | #ifdef __STDC__ |
| 3969 | # include <limits.h> |
| 3970 | #else |
| 3971 | # include <assert.h> |
| 3972 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3973 | |
| 3974 | #undef connect |
| 3975 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3976 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3977 | #ifdef __cplusplus |
| 3978 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3979 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3980 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3981 | /* 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] | 3982 | builtin and then its argument prototype would still apply. */ |
| 3983 | char connect (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3984 | /* The GNU C library defines this for functions which it implements |
| 3985 | to always fail with ENOSYS. Some functions are actually named |
| 3986 | something starting with __ and the normal name is an alias. */ |
| 3987 | #if defined (__stub_connect) || defined (__stub___connect) |
| 3988 | choke me |
| 3989 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3990 | char (*f) () = connect; |
| 3991 | #endif |
| 3992 | #ifdef __cplusplus |
| 3993 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3994 | #endif |
| 3995 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3996 | int |
| 3997 | main () |
| 3998 | { |
| 3999 | return f != connect; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4000 | ; |
| 4001 | return 0; |
| 4002 | } |
| 4003 | _ACEOF |
| 4004 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4006 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4007 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4008 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4009 | rm -f conftest.er1 |
| 4010 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4012 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4015 | (eval $ac_try) 2>&5 |
| 4016 | ac_status=$? |
| 4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4018 | (exit $ac_status); }; } && |
| 4019 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4021 | (eval $ac_try) 2>&5 |
| 4022 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4024 | (exit $ac_status); }; }; then |
| 4025 | ac_cv_func_connect=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4026 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4027 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4028 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4029 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4030 | ac_cv_func_connect=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4031 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4032 | rm -f conftest.err conftest.$ac_objext \ |
| 4033 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4034 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4035 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4036 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4037 | |
| 4038 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4039 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4040 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 4041 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 4042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4043 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4044 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4045 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4046 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4047 | /* confdefs.h. */ |
| 4048 | _ACEOF |
| 4049 | cat confdefs.h >>conftest.$ac_ext |
| 4050 | cat >>conftest.$ac_ext <<_ACEOF |
| 4051 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4052 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 4053 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4054 | #ifdef __cplusplus |
| 4055 | extern "C" |
| 4056 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4057 | /* 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] | 4058 | builtin and then its argument prototype would still apply. */ |
| 4059 | char connect (); |
| 4060 | int |
| 4061 | main () |
| 4062 | { |
| 4063 | connect (); |
| 4064 | ; |
| 4065 | return 0; |
| 4066 | } |
| 4067 | _ACEOF |
| 4068 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4070 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4071 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4073 | rm -f conftest.er1 |
| 4074 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4076 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4077 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4079 | (eval $ac_try) 2>&5 |
| 4080 | ac_status=$? |
| 4081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4082 | (exit $ac_status); }; } && |
| 4083 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4085 | (eval $ac_try) 2>&5 |
| 4086 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4088 | (exit $ac_status); }; }; then |
| 4089 | ac_cv_lib_socket_connect=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4090 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4091 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4093 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4094 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4095 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4096 | rm -f conftest.err conftest.$ac_objext \ |
| 4097 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4098 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4099 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4100 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4101 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 4102 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4103 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4104 | fi |
| 4105 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4106 | fi |
| 4107 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4108 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4109 | echo "$as_me:$LINENO: checking for remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4110 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 4111 | if test "${ac_cv_func_remove+set}" = set; then |
| 4112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4113 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4114 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4115 | /* confdefs.h. */ |
| 4116 | _ACEOF |
| 4117 | cat confdefs.h >>conftest.$ac_ext |
| 4118 | cat >>conftest.$ac_ext <<_ACEOF |
| 4119 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4120 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 4121 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4122 | #define remove innocuous_remove |
| 4123 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4124 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4125 | which can conflict with char remove (); below. |
| 4126 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4127 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4128 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4129 | #ifdef __STDC__ |
| 4130 | # include <limits.h> |
| 4131 | #else |
| 4132 | # include <assert.h> |
| 4133 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4134 | |
| 4135 | #undef remove |
| 4136 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4137 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4138 | #ifdef __cplusplus |
| 4139 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4140 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4141 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4142 | /* 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] | 4143 | builtin and then its argument prototype would still apply. */ |
| 4144 | char remove (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4145 | /* The GNU C library defines this for functions which it implements |
| 4146 | to always fail with ENOSYS. Some functions are actually named |
| 4147 | something starting with __ and the normal name is an alias. */ |
| 4148 | #if defined (__stub_remove) || defined (__stub___remove) |
| 4149 | choke me |
| 4150 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4151 | char (*f) () = remove; |
| 4152 | #endif |
| 4153 | #ifdef __cplusplus |
| 4154 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4155 | #endif |
| 4156 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4157 | int |
| 4158 | main () |
| 4159 | { |
| 4160 | return f != remove; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4161 | ; |
| 4162 | return 0; |
| 4163 | } |
| 4164 | _ACEOF |
| 4165 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4166 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4167 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4168 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4170 | rm -f conftest.er1 |
| 4171 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4173 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4174 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4176 | (eval $ac_try) 2>&5 |
| 4177 | ac_status=$? |
| 4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4179 | (exit $ac_status); }; } && |
| 4180 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4182 | (eval $ac_try) 2>&5 |
| 4183 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4185 | (exit $ac_status); }; }; then |
| 4186 | ac_cv_func_remove=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4187 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4188 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4190 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4191 | ac_cv_func_remove=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4192 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4193 | rm -f conftest.err conftest.$ac_objext \ |
| 4194 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4195 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4196 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4197 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4198 | |
| 4199 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4200 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4201 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 4202 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 4203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4204 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4205 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4206 | LIBS="-lposix $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4207 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4208 | /* confdefs.h. */ |
| 4209 | _ACEOF |
| 4210 | cat confdefs.h >>conftest.$ac_ext |
| 4211 | cat >>conftest.$ac_ext <<_ACEOF |
| 4212 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4213 | |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4214 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4215 | #ifdef __cplusplus |
| 4216 | extern "C" |
| 4217 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4218 | /* 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] | 4219 | builtin and then its argument prototype would still apply. */ |
| 4220 | char remove (); |
| 4221 | int |
| 4222 | main () |
| 4223 | { |
| 4224 | remove (); |
| 4225 | ; |
| 4226 | return 0; |
| 4227 | } |
| 4228 | _ACEOF |
| 4229 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4231 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4232 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4234 | rm -f conftest.er1 |
| 4235 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4237 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4240 | (eval $ac_try) 2>&5 |
| 4241 | ac_status=$? |
| 4242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4243 | (exit $ac_status); }; } && |
| 4244 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4246 | (eval $ac_try) 2>&5 |
| 4247 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4249 | (exit $ac_status); }; }; then |
| 4250 | ac_cv_lib_posix_remove=yes |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4251 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4252 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4254 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4255 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4256 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4257 | rm -f conftest.err conftest.$ac_objext \ |
| 4258 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4259 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4260 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4261 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4262 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 4263 | if test $ac_cv_lib_posix_remove = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4264 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4265 | fi |
| 4266 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4267 | fi |
| 4268 | |
| 4269 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4270 | echo "$as_me:$LINENO: checking for shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4271 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 4272 | if test "${ac_cv_func_shmat+set}" = set; then |
| 4273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4274 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4275 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4276 | /* confdefs.h. */ |
| 4277 | _ACEOF |
| 4278 | cat confdefs.h >>conftest.$ac_ext |
| 4279 | cat >>conftest.$ac_ext <<_ACEOF |
| 4280 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4281 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 4282 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4283 | #define shmat innocuous_shmat |
| 4284 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4285 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4286 | which can conflict with char shmat (); below. |
| 4287 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4288 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4289 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4290 | #ifdef __STDC__ |
| 4291 | # include <limits.h> |
| 4292 | #else |
| 4293 | # include <assert.h> |
| 4294 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4295 | |
| 4296 | #undef shmat |
| 4297 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4298 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4299 | #ifdef __cplusplus |
| 4300 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4301 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4302 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4303 | /* 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] | 4304 | builtin and then its argument prototype would still apply. */ |
| 4305 | char shmat (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4306 | /* The GNU C library defines this for functions which it implements |
| 4307 | to always fail with ENOSYS. Some functions are actually named |
| 4308 | something starting with __ and the normal name is an alias. */ |
| 4309 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 4310 | choke me |
| 4311 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4312 | char (*f) () = shmat; |
| 4313 | #endif |
| 4314 | #ifdef __cplusplus |
| 4315 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4316 | #endif |
| 4317 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4318 | int |
| 4319 | main () |
| 4320 | { |
| 4321 | return f != shmat; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4322 | ; |
| 4323 | return 0; |
| 4324 | } |
| 4325 | _ACEOF |
| 4326 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4328 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4329 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4331 | rm -f conftest.er1 |
| 4332 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4334 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4337 | (eval $ac_try) 2>&5 |
| 4338 | ac_status=$? |
| 4339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4340 | (exit $ac_status); }; } && |
| 4341 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4343 | (eval $ac_try) 2>&5 |
| 4344 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4346 | (exit $ac_status); }; }; then |
| 4347 | ac_cv_func_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4348 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4349 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4351 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4352 | ac_cv_func_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4353 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4354 | rm -f conftest.err conftest.$ac_objext \ |
| 4355 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4356 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4357 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4358 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4359 | |
| 4360 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4361 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4362 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 4363 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 4364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4365 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4366 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4367 | LIBS="-lipc $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4368 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4369 | /* confdefs.h. */ |
| 4370 | _ACEOF |
| 4371 | cat confdefs.h >>conftest.$ac_ext |
| 4372 | cat >>conftest.$ac_ext <<_ACEOF |
| 4373 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4374 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4375 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4376 | #ifdef __cplusplus |
| 4377 | extern "C" |
| 4378 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4379 | /* 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] | 4380 | builtin and then its argument prototype would still apply. */ |
| 4381 | char shmat (); |
| 4382 | int |
| 4383 | main () |
| 4384 | { |
| 4385 | shmat (); |
| 4386 | ; |
| 4387 | return 0; |
| 4388 | } |
| 4389 | _ACEOF |
| 4390 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4392 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4393 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4395 | rm -f conftest.er1 |
| 4396 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4398 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4399 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4401 | (eval $ac_try) 2>&5 |
| 4402 | ac_status=$? |
| 4403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4404 | (exit $ac_status); }; } && |
| 4405 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4407 | (eval $ac_try) 2>&5 |
| 4408 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4410 | (exit $ac_status); }; }; then |
| 4411 | ac_cv_lib_ipc_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4412 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4413 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4415 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4416 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4417 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4418 | rm -f conftest.err conftest.$ac_objext \ |
| 4419 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4420 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4421 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4422 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4423 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 4424 | if test $ac_cv_lib_ipc_shmat = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4425 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4426 | fi |
| 4427 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4428 | fi |
| 4429 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4430 | |
| 4431 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4432 | ac_save_LDFLAGS=$LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4433 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 4434 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 4435 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 4436 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 4437 | # These have to be linked with before -lX11, unlike the other |
| 4438 | # libraries we check for below, so use a different variable. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4439 | # John Interrante, Karl Berry |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4440 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4441 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 4442 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 4443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4444 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4445 | ac_check_lib_save_LIBS=$LIBS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 4446 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4447 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4448 | /* confdefs.h. */ |
| 4449 | _ACEOF |
| 4450 | cat confdefs.h >>conftest.$ac_ext |
| 4451 | cat >>conftest.$ac_ext <<_ACEOF |
| 4452 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4453 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4454 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4455 | #ifdef __cplusplus |
| 4456 | extern "C" |
| 4457 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4458 | /* 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] | 4459 | builtin and then its argument prototype would still apply. */ |
| 4460 | char IceConnectionNumber (); |
| 4461 | int |
| 4462 | main () |
| 4463 | { |
| 4464 | IceConnectionNumber (); |
| 4465 | ; |
| 4466 | return 0; |
| 4467 | } |
| 4468 | _ACEOF |
| 4469 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4471 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4472 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4474 | rm -f conftest.er1 |
| 4475 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4477 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4478 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4480 | (eval $ac_try) 2>&5 |
| 4481 | ac_status=$? |
| 4482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4483 | (exit $ac_status); }; } && |
| 4484 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4486 | (eval $ac_try) 2>&5 |
| 4487 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4489 | (exit $ac_status); }; }; then |
| 4490 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4491 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4492 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4494 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4495 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4496 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4497 | rm -f conftest.err conftest.$ac_objext \ |
| 4498 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4499 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4500 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4501 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4502 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 4503 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4504 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4505 | fi |
| 4506 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4507 | LDFLAGS=$ac_save_LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4508 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4509 | fi |
| 4510 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4511 | for ac_prog in flex lex |
| 4512 | do |
| 4513 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4514 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4515 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4517 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 4518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4519 | else |
| 4520 | if test -n "$LEX"; then |
| 4521 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 4522 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4524 | for as_dir in $PATH |
| 4525 | do |
| 4526 | IFS=$as_save_IFS |
| 4527 | test -z "$as_dir" && as_dir=. |
| 4528 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4529 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4530 | ac_cv_prog_LEX="$ac_prog" |
| 4531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4532 | break 2 |
| 4533 | fi |
| 4534 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4535 | done |
| 4536 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4537 | fi |
| 4538 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4539 | LEX=$ac_cv_prog_LEX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4540 | if test -n "$LEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4541 | echo "$as_me:$LINENO: result: $LEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4542 | echo "${ECHO_T}$LEX" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4543 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4544 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4545 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4546 | fi |
| 4547 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4548 | test -n "$LEX" && break |
| 4549 | done |
| 4550 | test -n "$LEX" || LEX=":" |
| 4551 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4552 | if test -z "$LEXLIB" |
| 4553 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4554 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4555 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 4556 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 4557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4558 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4559 | ac_check_lib_save_LIBS=$LIBS |
| 4560 | LIBS="-lfl $LIBS" |
| 4561 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4562 | /* confdefs.h. */ |
| 4563 | _ACEOF |
| 4564 | cat confdefs.h >>conftest.$ac_ext |
| 4565 | cat >>conftest.$ac_ext <<_ACEOF |
| 4566 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4567 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 4568 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4569 | #ifdef __cplusplus |
| 4570 | extern "C" |
| 4571 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4572 | /* 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] | 4573 | builtin and then its argument prototype would still apply. */ |
| 4574 | char yywrap (); |
| 4575 | int |
| 4576 | main () |
| 4577 | { |
| 4578 | yywrap (); |
| 4579 | ; |
| 4580 | return 0; |
| 4581 | } |
| 4582 | _ACEOF |
| 4583 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4585 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4586 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4588 | rm -f conftest.er1 |
| 4589 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4591 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4592 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4594 | (eval $ac_try) 2>&5 |
| 4595 | ac_status=$? |
| 4596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4597 | (exit $ac_status); }; } && |
| 4598 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4600 | (eval $ac_try) 2>&5 |
| 4601 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4603 | (exit $ac_status); }; }; then |
| 4604 | ac_cv_lib_fl_yywrap=yes |
| 4605 | else |
| 4606 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4608 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4609 | ac_cv_lib_fl_yywrap=no |
| 4610 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4611 | rm -f conftest.err conftest.$ac_objext \ |
| 4612 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4613 | LIBS=$ac_check_lib_save_LIBS |
| 4614 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4615 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4616 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 4617 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 4618 | LEXLIB="-lfl" |
| 4619 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4620 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4621 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 4622 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 4623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4624 | else |
| 4625 | ac_check_lib_save_LIBS=$LIBS |
| 4626 | LIBS="-ll $LIBS" |
| 4627 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4628 | /* confdefs.h. */ |
| 4629 | _ACEOF |
| 4630 | cat confdefs.h >>conftest.$ac_ext |
| 4631 | cat >>conftest.$ac_ext <<_ACEOF |
| 4632 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4633 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4634 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4635 | #ifdef __cplusplus |
| 4636 | extern "C" |
| 4637 | #endif |
| 4638 | /* We use char because int might match the return type of a gcc2 |
| 4639 | builtin and then its argument prototype would still apply. */ |
| 4640 | char yywrap (); |
| 4641 | int |
| 4642 | main () |
| 4643 | { |
| 4644 | yywrap (); |
| 4645 | ; |
| 4646 | return 0; |
| 4647 | } |
| 4648 | _ACEOF |
| 4649 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4651 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4652 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4654 | rm -f conftest.er1 |
| 4655 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4657 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4660 | (eval $ac_try) 2>&5 |
| 4661 | ac_status=$? |
| 4662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4663 | (exit $ac_status); }; } && |
| 4664 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4666 | (eval $ac_try) 2>&5 |
| 4667 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4669 | (exit $ac_status); }; }; then |
| 4670 | ac_cv_lib_l_yywrap=yes |
| 4671 | else |
| 4672 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4674 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4675 | ac_cv_lib_l_yywrap=no |
| 4676 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4677 | rm -f conftest.err conftest.$ac_objext \ |
| 4678 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4679 | LIBS=$ac_check_lib_save_LIBS |
| 4680 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4681 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4682 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 4683 | if test $ac_cv_lib_l_yywrap = yes; then |
| 4684 | LEXLIB="-ll" |
| 4685 | fi |
| 4686 | |
| 4687 | fi |
| 4688 | |
| 4689 | fi |
| 4690 | |
| 4691 | if test "x$LEX" != "x:"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4692 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4693 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 4694 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 4695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4696 | else |
| 4697 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 4698 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4699 | cat >conftest.l <<_ACEOF |
| 4700 | %% |
| 4701 | %% |
| 4702 | _ACEOF |
| 4703 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 4704 | (eval $LEX conftest.l) 2>&5 |
| 4705 | ac_status=$? |
| 4706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4707 | (exit $ac_status); } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4708 | if test -f lex.yy.c; then |
| 4709 | ac_cv_prog_lex_root=lex.yy |
| 4710 | elif test -f lexyy.c; then |
| 4711 | ac_cv_prog_lex_root=lexyy |
| 4712 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4713 | { { 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] | 4714 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 4715 | { (exit 1); exit 1; }; } |
| 4716 | fi |
| 4717 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4718 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4719 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4720 | rm -f conftest.l |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4721 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 4722 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4723 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4724 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 4725 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 4726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4727 | else |
| 4728 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 4729 | # default is implementation-dependent. Figure out which it is, since |
| 4730 | # not all implementations provide the %pointer and %array declarations. |
| 4731 | ac_cv_prog_lex_yytext_pointer=no |
| 4732 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 4733 | ac_save_LIBS=$LIBS |
| 4734 | LIBS="$LIBS $LEXLIB" |
| 4735 | cat >conftest.$ac_ext <<_ACEOF |
| 4736 | `cat $LEX_OUTPUT_ROOT.c` |
| 4737 | _ACEOF |
| 4738 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4740 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4741 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4743 | rm -f conftest.er1 |
| 4744 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4746 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4747 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4749 | (eval $ac_try) 2>&5 |
| 4750 | ac_status=$? |
| 4751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4752 | (exit $ac_status); }; } && |
| 4753 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4755 | (eval $ac_try) 2>&5 |
| 4756 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4758 | (exit $ac_status); }; }; then |
| 4759 | ac_cv_prog_lex_yytext_pointer=yes |
| 4760 | else |
| 4761 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4763 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4764 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4765 | rm -f conftest.err conftest.$ac_objext \ |
| 4766 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4767 | LIBS=$ac_save_LIBS |
| 4768 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 4769 | |
| 4770 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4771 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4772 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 4773 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 4774 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4775 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4776 | #define YYTEXT_POINTER 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4777 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4778 | |
| 4779 | fi |
| 4780 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4781 | fi |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4782 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4783 | for ac_prog in $LEX flex lex |
| 4784 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4785 | # 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] | 4786 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4787 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4789 | if test "${ac_cv_prog_XLEX+set}" = set; then |
| 4790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4791 | else |
| 4792 | if test -n "$XLEX"; then |
| 4793 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 4794 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4796 | for as_dir in $PATH |
| 4797 | do |
| 4798 | IFS=$as_save_IFS |
| 4799 | test -z "$as_dir" && as_dir=. |
| 4800 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4802 | ac_cv_prog_XLEX="$ac_prog" |
| 4803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4804 | break 2 |
| 4805 | fi |
| 4806 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4807 | done |
| 4808 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4809 | fi |
| 4810 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4811 | XLEX=$ac_cv_prog_XLEX |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4812 | if test -n "$XLEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4813 | echo "$as_me:$LINENO: result: $XLEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4814 | echo "${ECHO_T}$XLEX" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4815 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4816 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4817 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4818 | fi |
| 4819 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4820 | test -n "$XLEX" && break |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4821 | done |
| 4822 | test -n "$XLEX" || XLEX="none" |
| 4823 | |
| 4824 | if test "$XLEX" = "none" |
| 4825 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4826 | { { 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] | 4827 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
| 4828 | { (exit 1); exit 1; }; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4829 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4830 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4831 | for ac_prog in bison |
| 4832 | do |
| 4833 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4834 | set dummy $ac_prog; ac_word=$2 |
| 4835 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4837 | if test "${ac_cv_prog_BISON+set}" = set; then |
| 4838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4839 | else |
| 4840 | if test -n "$BISON"; then |
| 4841 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
| 4842 | else |
| 4843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4844 | for as_dir in $PATH |
| 4845 | do |
| 4846 | IFS=$as_save_IFS |
| 4847 | test -z "$as_dir" && as_dir=. |
| 4848 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4849 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4850 | ac_cv_prog_BISON="$ac_prog" |
| 4851 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4852 | break 2 |
| 4853 | fi |
| 4854 | done |
| 4855 | done |
| 4856 | |
| 4857 | fi |
| 4858 | fi |
| 4859 | BISON=$ac_cv_prog_BISON |
| 4860 | if test -n "$BISON"; then |
| 4861 | echo "$as_me:$LINENO: result: $BISON" >&5 |
| 4862 | echo "${ECHO_T}$BISON" >&6 |
| 4863 | else |
| 4864 | echo "$as_me:$LINENO: result: no" >&5 |
| 4865 | echo "${ECHO_T}no" >&6 |
| 4866 | fi |
| 4867 | |
| 4868 | test -n "$BISON" && break |
| 4869 | done |
| 4870 | test -n "$BISON" || BISON="none" |
| 4871 | |
| 4872 | if test "$BISON" = "none" |
| 4873 | then |
| 4874 | { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5 |
| 4875 | echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;} |
| 4876 | { (exit 1); exit 1; }; } |
| 4877 | fi |
| 4878 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4879 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4880 | for ac_prog in gas as |
| 4881 | do |
| 4882 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4883 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4884 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4885 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4886 | if test "${ac_cv_prog_AS+set}" = set; then |
| 4887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4888 | else |
| 4889 | if test -n "$AS"; then |
| 4890 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 4891 | else |
| 4892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4893 | for as_dir in $PATH |
| 4894 | do |
| 4895 | IFS=$as_save_IFS |
| 4896 | test -z "$as_dir" && as_dir=. |
| 4897 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4898 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4899 | ac_cv_prog_AS="$ac_tool_prefix$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4900 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4901 | break 2 |
| 4902 | fi |
| 4903 | done |
| 4904 | done |
| 4905 | |
| 4906 | fi |
| 4907 | fi |
| 4908 | AS=$ac_cv_prog_AS |
| 4909 | if test -n "$AS"; then |
| 4910 | echo "$as_me:$LINENO: result: $AS" >&5 |
| 4911 | echo "${ECHO_T}$AS" >&6 |
| 4912 | else |
| 4913 | echo "$as_me:$LINENO: result: no" >&5 |
| 4914 | echo "${ECHO_T}no" >&6 |
| 4915 | fi |
| 4916 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4917 | test -n "$AS" && break |
| 4918 | done |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4919 | fi |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4920 | if test -z "$AS"; then |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4921 | ac_ct_AS=$AS |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4922 | for ac_prog in gas as |
| 4923 | do |
| 4924 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4925 | set dummy $ac_prog; ac_word=$2 |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4926 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4928 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
| 4929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4930 | else |
| 4931 | if test -n "$ac_ct_AS"; then |
| 4932 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 4933 | else |
| 4934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4935 | for as_dir in $PATH |
| 4936 | do |
| 4937 | IFS=$as_save_IFS |
| 4938 | test -z "$as_dir" && as_dir=. |
| 4939 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4940 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4941 | ac_cv_prog_ac_ct_AS="$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4942 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4943 | break 2 |
| 4944 | fi |
| 4945 | done |
| 4946 | done |
| 4947 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4948 | fi |
| 4949 | fi |
| 4950 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 4951 | if test -n "$ac_ct_AS"; then |
| 4952 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
| 4953 | echo "${ECHO_T}$ac_ct_AS" >&6 |
| 4954 | else |
| 4955 | echo "$as_me:$LINENO: result: no" >&5 |
| 4956 | echo "${ECHO_T}no" >&6 |
| 4957 | fi |
| 4958 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4959 | test -n "$ac_ct_AS" && break |
| 4960 | done |
| 4961 | test -n "$ac_ct_AS" || ac_ct_AS="as" |
| 4962 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4963 | AS=$ac_ct_AS |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4964 | fi |
| 4965 | |
| 4966 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 4967 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. |
| 4968 | set dummy ${ac_tool_prefix}ld; ac_word=$2 |
| 4969 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4971 | if test "${ac_cv_prog_LD+set}" = set; then |
| 4972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4973 | else |
| 4974 | if test -n "$LD"; then |
| 4975 | ac_cv_prog_LD="$LD" # Let the user override the test. |
| 4976 | else |
| 4977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4978 | for as_dir in $PATH |
| 4979 | do |
| 4980 | IFS=$as_save_IFS |
| 4981 | test -z "$as_dir" && as_dir=. |
| 4982 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4983 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4984 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
| 4985 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4986 | break 2 |
| 4987 | fi |
| 4988 | done |
| 4989 | done |
| 4990 | |
| 4991 | fi |
| 4992 | fi |
| 4993 | LD=$ac_cv_prog_LD |
| 4994 | if test -n "$LD"; then |
| 4995 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 4996 | echo "${ECHO_T}$LD" >&6 |
| 4997 | else |
| 4998 | echo "$as_me:$LINENO: result: no" >&5 |
| 4999 | echo "${ECHO_T}no" >&6 |
| 5000 | fi |
| 5001 | |
| 5002 | fi |
| 5003 | if test -z "$ac_cv_prog_LD"; then |
| 5004 | ac_ct_LD=$LD |
| 5005 | # Extract the first word of "ld", so it can be a program name with args. |
| 5006 | set dummy ld; ac_word=$2 |
| 5007 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5008 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5009 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
| 5010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5011 | else |
| 5012 | if test -n "$ac_ct_LD"; then |
| 5013 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. |
| 5014 | else |
| 5015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5016 | for as_dir in $PATH |
| 5017 | do |
| 5018 | IFS=$as_save_IFS |
| 5019 | test -z "$as_dir" && as_dir=. |
| 5020 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5021 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5022 | ac_cv_prog_ac_ct_LD="ld" |
| 5023 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5024 | break 2 |
| 5025 | fi |
| 5026 | done |
| 5027 | done |
| 5028 | |
| 5029 | test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld" |
| 5030 | fi |
| 5031 | fi |
| 5032 | ac_ct_LD=$ac_cv_prog_ac_ct_LD |
| 5033 | if test -n "$ac_ct_LD"; then |
| 5034 | echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
| 5035 | echo "${ECHO_T}$ac_ct_LD" >&6 |
| 5036 | else |
| 5037 | echo "$as_me:$LINENO: result: no" >&5 |
| 5038 | echo "${ECHO_T}no" >&6 |
| 5039 | fi |
| 5040 | |
| 5041 | LD=$ac_ct_LD |
| 5042 | else |
| 5043 | LD="$ac_cv_prog_LD" |
| 5044 | fi |
| 5045 | |
| 5046 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5047 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5048 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5049 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5050 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5051 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5053 | else |
| 5054 | if test -n "$AR"; then |
| 5055 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5056 | else |
| 5057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5058 | for as_dir in $PATH |
| 5059 | do |
| 5060 | IFS=$as_save_IFS |
| 5061 | test -z "$as_dir" && as_dir=. |
| 5062 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5063 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5064 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5065 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5066 | break 2 |
| 5067 | fi |
| 5068 | done |
| 5069 | done |
| 5070 | |
| 5071 | fi |
| 5072 | fi |
| 5073 | AR=$ac_cv_prog_AR |
| 5074 | if test -n "$AR"; then |
| 5075 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 5076 | echo "${ECHO_T}$AR" >&6 |
| 5077 | else |
| 5078 | echo "$as_me:$LINENO: result: no" >&5 |
| 5079 | echo "${ECHO_T}no" >&6 |
| 5080 | fi |
| 5081 | |
| 5082 | fi |
| 5083 | if test -z "$ac_cv_prog_AR"; then |
| 5084 | ac_ct_AR=$AR |
| 5085 | # Extract the first word of "ar", so it can be a program name with args. |
| 5086 | set dummy ar; ac_word=$2 |
| 5087 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5088 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5089 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5091 | else |
| 5092 | if test -n "$ac_ct_AR"; then |
| 5093 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5094 | else |
| 5095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5096 | for as_dir in $PATH |
| 5097 | do |
| 5098 | IFS=$as_save_IFS |
| 5099 | test -z "$as_dir" && as_dir=. |
| 5100 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5101 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5102 | ac_cv_prog_ac_ct_AR="ar" |
| 5103 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5104 | break 2 |
| 5105 | fi |
| 5106 | done |
| 5107 | done |
| 5108 | |
| 5109 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" |
| 5110 | fi |
| 5111 | fi |
| 5112 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5113 | if test -n "$ac_ct_AR"; then |
| 5114 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5115 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5116 | else |
| 5117 | echo "$as_me:$LINENO: result: no" >&5 |
| 5118 | echo "${ECHO_T}no" >&6 |
| 5119 | fi |
| 5120 | |
| 5121 | AR=$ac_ct_AR |
| 5122 | else |
| 5123 | AR="$ac_cv_prog_AR" |
| 5124 | fi |
| 5125 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5126 | if test -n "$ac_tool_prefix"; then |
| 5127 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5128 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5129 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5131 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5133 | else |
| 5134 | if test -n "$RANLIB"; then |
| 5135 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5136 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5138 | for as_dir in $PATH |
| 5139 | do |
| 5140 | IFS=$as_save_IFS |
| 5141 | test -z "$as_dir" && as_dir=. |
| 5142 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5144 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5146 | break 2 |
| 5147 | fi |
| 5148 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5149 | done |
| 5150 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5151 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5152 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5153 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5154 | if test -n "$RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5155 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5156 | echo "${ECHO_T}$RANLIB" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5157 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5158 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5159 | echo "${ECHO_T}no" >&6 |
| 5160 | fi |
| 5161 | |
| 5162 | fi |
| 5163 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5164 | ac_ct_RANLIB=$RANLIB |
| 5165 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5166 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5167 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5168 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5169 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5171 | else |
| 5172 | if test -n "$ac_ct_RANLIB"; then |
| 5173 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5174 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5176 | for as_dir in $PATH |
| 5177 | do |
| 5178 | IFS=$as_save_IFS |
| 5179 | test -z "$as_dir" && as_dir=. |
| 5180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5181 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5182 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5184 | break 2 |
| 5185 | fi |
| 5186 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5187 | done |
| 5188 | |
| 5189 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5190 | fi |
| 5191 | fi |
| 5192 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5193 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5194 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5195 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5196 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5197 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5198 | echo "${ECHO_T}no" >&6 |
| 5199 | fi |
| 5200 | |
| 5201 | RANLIB=$ac_ct_RANLIB |
| 5202 | else |
| 5203 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5204 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5205 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5206 | if test -n "$ac_tool_prefix"; then |
| 5207 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5208 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5209 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5211 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5213 | else |
| 5214 | if test -n "$STRIP"; then |
| 5215 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5216 | else |
| 5217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5218 | for as_dir in $PATH |
| 5219 | do |
| 5220 | IFS=$as_save_IFS |
| 5221 | test -z "$as_dir" && as_dir=. |
| 5222 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5223 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5224 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5226 | break 2 |
| 5227 | fi |
| 5228 | done |
| 5229 | done |
| 5230 | |
| 5231 | fi |
| 5232 | fi |
| 5233 | STRIP=$ac_cv_prog_STRIP |
| 5234 | if test -n "$STRIP"; then |
| 5235 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5236 | echo "${ECHO_T}$STRIP" >&6 |
| 5237 | else |
| 5238 | echo "$as_me:$LINENO: result: no" >&5 |
| 5239 | echo "${ECHO_T}no" >&6 |
| 5240 | fi |
| 5241 | |
| 5242 | fi |
| 5243 | if test -z "$ac_cv_prog_STRIP"; then |
| 5244 | ac_ct_STRIP=$STRIP |
| 5245 | # Extract the first word of "strip", so it can be a program name with args. |
| 5246 | set dummy strip; ac_word=$2 |
| 5247 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5248 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5249 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5251 | else |
| 5252 | if test -n "$ac_ct_STRIP"; then |
| 5253 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5254 | else |
| 5255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5256 | for as_dir in $PATH |
| 5257 | do |
| 5258 | IFS=$as_save_IFS |
| 5259 | test -z "$as_dir" && as_dir=. |
| 5260 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5261 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5262 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5264 | break 2 |
| 5265 | fi |
| 5266 | done |
| 5267 | done |
| 5268 | |
| 5269 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip" |
| 5270 | fi |
| 5271 | fi |
| 5272 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5273 | if test -n "$ac_ct_STRIP"; then |
| 5274 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5275 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5276 | else |
| 5277 | echo "$as_me:$LINENO: result: no" >&5 |
| 5278 | echo "${ECHO_T}no" >&6 |
| 5279 | fi |
| 5280 | |
| 5281 | STRIP=$ac_ct_STRIP |
| 5282 | else |
| 5283 | STRIP="$ac_cv_prog_STRIP" |
| 5284 | fi |
| 5285 | |
| 5286 | if test -n "$ac_tool_prefix"; then |
| 5287 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 5288 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 5289 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5291 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 5292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5293 | else |
| 5294 | if test -n "$WINDRES"; then |
| 5295 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 5296 | else |
| 5297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5298 | for as_dir in $PATH |
| 5299 | do |
| 5300 | IFS=$as_save_IFS |
| 5301 | test -z "$as_dir" && as_dir=. |
| 5302 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5303 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5304 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 5305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5306 | break 2 |
| 5307 | fi |
| 5308 | done |
| 5309 | done |
| 5310 | |
| 5311 | fi |
| 5312 | fi |
| 5313 | WINDRES=$ac_cv_prog_WINDRES |
| 5314 | if test -n "$WINDRES"; then |
| 5315 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 5316 | echo "${ECHO_T}$WINDRES" >&6 |
| 5317 | else |
| 5318 | echo "$as_me:$LINENO: result: no" >&5 |
| 5319 | echo "${ECHO_T}no" >&6 |
| 5320 | fi |
| 5321 | |
| 5322 | fi |
| 5323 | if test -z "$ac_cv_prog_WINDRES"; then |
| 5324 | ac_ct_WINDRES=$WINDRES |
| 5325 | # Extract the first word of "windres", so it can be a program name with args. |
| 5326 | set dummy windres; ac_word=$2 |
| 5327 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5328 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5329 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 5330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5331 | else |
| 5332 | if test -n "$ac_ct_WINDRES"; then |
| 5333 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 5334 | else |
| 5335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5336 | for as_dir in $PATH |
| 5337 | do |
| 5338 | IFS=$as_save_IFS |
| 5339 | test -z "$as_dir" && as_dir=. |
| 5340 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5341 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5342 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 5343 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5344 | break 2 |
| 5345 | fi |
| 5346 | done |
| 5347 | done |
| 5348 | |
| 5349 | test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false" |
| 5350 | fi |
| 5351 | fi |
| 5352 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 5353 | if test -n "$ac_ct_WINDRES"; then |
| 5354 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 5355 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 |
| 5356 | else |
| 5357 | echo "$as_me:$LINENO: result: no" >&5 |
| 5358 | echo "${ECHO_T}no" >&6 |
| 5359 | fi |
| 5360 | |
| 5361 | WINDRES=$ac_ct_WINDRES |
| 5362 | else |
| 5363 | WINDRES="$ac_cv_prog_WINDRES" |
| 5364 | fi |
| 5365 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5366 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5367 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 5368 | LN_S=$as_ln_s |
| 5369 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5370 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5371 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 5372 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5373 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5374 | echo "${ECHO_T}no, using $LN_S" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 5375 | fi |
| 5376 | |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 5377 | echo "$as_me:$LINENO: checking whether ln works" >&5 |
| 5378 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 |
| 5379 | rm -f conf$$ conf$$.file |
| 5380 | echo >conf$$.file |
| 5381 | if ln conf$$.file conf$$ 2>/dev/null; then |
| 5382 | LN=ln |
| 5383 | |
| 5384 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5385 | echo "${ECHO_T}yes" >&6 |
| 5386 | else |
| 5387 | LN="cp -p" |
| 5388 | |
| 5389 | echo "$as_me:$LINENO: result: no, using $LN" >&5 |
| 5390 | echo "${ECHO_T}no, using $LN" >&6 |
| 5391 | fi |
| 5392 | rm -f conf$$ conf$$.file |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 5393 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 5394 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 5395 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 5396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5397 | else |
| 5398 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 5399 | then ac_cv_prog_egrep='grep -E' |
| 5400 | else ac_cv_prog_egrep='egrep' |
| 5401 | fi |
| 5402 | fi |
| 5403 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 5404 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 5405 | EGREP=$ac_cv_prog_egrep |
| 5406 | |
| 5407 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5408 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 5409 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5410 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5411 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5412 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 5413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5414 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5415 | case $LDCONFIG in |
| 5416 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5417 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 5418 | ;; |
| 5419 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 5421 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5422 | do |
| 5423 | IFS=$as_save_IFS |
| 5424 | test -z "$as_dir" && as_dir=. |
| 5425 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5426 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5427 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5428 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5429 | break 2 |
| 5430 | fi |
| 5431 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5432 | done |
| 5433 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 5434 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5435 | ;; |
| 5436 | esac |
| 5437 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5438 | LDCONFIG=$ac_cv_path_LDCONFIG |
| 5439 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5440 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5441 | echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5442 | echo "${ECHO_T}$LDCONFIG" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5443 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5444 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5445 | echo "${ECHO_T}no" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5446 | fi |
| 5447 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5448 | # Find a good install program. We prefer a C program (faster), |
| 5449 | # so one script is as good as another. But avoid the broken or |
| 5450 | # incompatible versions: |
| 5451 | # SysV /etc/install, /usr/sbin/install |
| 5452 | # SunOS /usr/etc/install |
| 5453 | # IRIX /sbin/install |
| 5454 | # AIX /bin/install |
| 5455 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5456 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5457 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5458 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5459 | # OS/2's system install, which has a completely different semantic |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5460 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5461 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 5462 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 5463 | if test -z "$INSTALL"; then |
| 5464 | if test "${ac_cv_path_install+set}" = set; then |
| 5465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5466 | else |
| 5467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5468 | for as_dir in $PATH |
| 5469 | do |
| 5470 | IFS=$as_save_IFS |
| 5471 | test -z "$as_dir" && as_dir=. |
| 5472 | # Account for people who put trailing slashes in PATH elements. |
| 5473 | case $as_dir/ in |
| 5474 | ./ | .// | /cC/* | \ |
| 5475 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5476 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5477 | /usr/ucb/* ) ;; |
| 5478 | *) |
| 5479 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5480 | # Don't use installbsd from OSF since it installs stuff as root |
| 5481 | # by default. |
| 5482 | for ac_prog in ginstall scoinst install; do |
| 5483 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5484 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 5485 | if test $ac_prog = install && |
| 5486 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5487 | # AIX install. It has an incompatible calling convention. |
| 5488 | : |
| 5489 | elif test $ac_prog = install && |
| 5490 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5491 | # program-specific install script used by HP pwplus--don't use. |
| 5492 | : |
| 5493 | else |
| 5494 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5495 | break 3 |
| 5496 | fi |
| 5497 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5498 | done |
| 5499 | done |
| 5500 | ;; |
| 5501 | esac |
| 5502 | done |
| 5503 | |
| 5504 | |
| 5505 | fi |
| 5506 | if test "${ac_cv_path_install+set}" = set; then |
| 5507 | INSTALL=$ac_cv_path_install |
| 5508 | else |
| 5509 | # As a last resort, use the slow shell script. We don't cache a |
| 5510 | # path for INSTALL within a source directory, because that will |
| 5511 | # break other packages using the cache if that directory is |
| 5512 | # removed, or if the path is relative. |
| 5513 | INSTALL=$ac_install_sh |
| 5514 | fi |
| 5515 | fi |
| 5516 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5517 | echo "${ECHO_T}$INSTALL" >&6 |
| 5518 | |
| 5519 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5520 | # It thinks the first close brace ends the variable substitution. |
| 5521 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5522 | |
| 5523 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5524 | |
| 5525 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5526 | |
| 5527 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 5528 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5529 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 5530 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5531 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5532 | for ac_prog in lclint lint |
| 5533 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5534 | # 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] | 5535 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5538 | if test "${ac_cv_prog_LINT+set}" = set; then |
| 5539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5540 | else |
| 5541 | if test -n "$LINT"; then |
| 5542 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 5543 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5545 | for as_dir in $PATH |
| 5546 | do |
| 5547 | IFS=$as_save_IFS |
| 5548 | test -z "$as_dir" && as_dir=. |
| 5549 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5551 | ac_cv_prog_LINT="$ac_prog" |
| 5552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5553 | break 2 |
| 5554 | fi |
| 5555 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5556 | done |
| 5557 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5558 | fi |
| 5559 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5560 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5561 | if test -n "$LINT"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5562 | echo "$as_me:$LINENO: result: $LINT" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5563 | echo "${ECHO_T}$LINT" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5564 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5565 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5566 | echo "${ECHO_T}no" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5567 | fi |
| 5568 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5569 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5570 | done |
| 5571 | |
| 5572 | if test "$LINT" = "lint" |
| 5573 | then |
| 5574 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 5575 | fi |
| 5576 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5577 | |
| 5578 | |
Vincent BĂ©ron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 5579 | for ac_prog in docbook2html db2html |
| 5580 | do |
| 5581 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5582 | set dummy $ac_prog; ac_word=$2 |
| 5583 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5585 | if test "${ac_cv_prog_DB2HTML+set}" = set; then |
| 5586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5587 | else |
| 5588 | if test -n "$DB2HTML"; then |
| 5589 | ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test. |
| 5590 | else |
| 5591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5592 | for as_dir in $PATH |
| 5593 | do |
| 5594 | IFS=$as_save_IFS |
| 5595 | test -z "$as_dir" && as_dir=. |
| 5596 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5597 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5598 | ac_cv_prog_DB2HTML="$ac_prog" |
| 5599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5600 | break 2 |
| 5601 | fi |
| 5602 | done |
| 5603 | done |
| 5604 | |
| 5605 | fi |
| 5606 | fi |
| 5607 | DB2HTML=$ac_cv_prog_DB2HTML |
| 5608 | if test -n "$DB2HTML"; then |
| 5609 | echo "$as_me:$LINENO: result: $DB2HTML" >&5 |
| 5610 | echo "${ECHO_T}$DB2HTML" >&6 |
| 5611 | else |
| 5612 | echo "$as_me:$LINENO: result: no" >&5 |
| 5613 | echo "${ECHO_T}no" >&6 |
| 5614 | fi |
| 5615 | |
| 5616 | test -n "$DB2HTML" && break |
| 5617 | done |
| 5618 | test -n "$DB2HTML" || DB2HTML="false" |
| 5619 | |
Vincent BĂ©ron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 5620 | for ac_prog in docbook2pdf db2pdf |
| 5621 | do |
| 5622 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5623 | set dummy $ac_prog; ac_word=$2 |
| 5624 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5625 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5626 | if test "${ac_cv_prog_DB2PDF+set}" = set; then |
| 5627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5628 | else |
| 5629 | if test -n "$DB2PDF"; then |
| 5630 | ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test. |
| 5631 | else |
| 5632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5633 | for as_dir in $PATH |
| 5634 | do |
| 5635 | IFS=$as_save_IFS |
| 5636 | test -z "$as_dir" && as_dir=. |
| 5637 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5638 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5639 | ac_cv_prog_DB2PDF="$ac_prog" |
| 5640 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5641 | break 2 |
| 5642 | fi |
| 5643 | done |
| 5644 | done |
| 5645 | |
| 5646 | fi |
| 5647 | fi |
| 5648 | DB2PDF=$ac_cv_prog_DB2PDF |
| 5649 | if test -n "$DB2PDF"; then |
| 5650 | echo "$as_me:$LINENO: result: $DB2PDF" >&5 |
| 5651 | echo "${ECHO_T}$DB2PDF" >&6 |
| 5652 | else |
| 5653 | echo "$as_me:$LINENO: result: no" >&5 |
| 5654 | echo "${ECHO_T}no" >&6 |
| 5655 | fi |
| 5656 | |
| 5657 | test -n "$DB2PDF" && break |
| 5658 | done |
| 5659 | test -n "$DB2PDF" || DB2PDF="false" |
| 5660 | |
Vincent BĂ©ron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 5661 | for ac_prog in docbook2ps db2ps |
| 5662 | do |
| 5663 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5664 | set dummy $ac_prog; ac_word=$2 |
| 5665 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5667 | if test "${ac_cv_prog_DB2PS+set}" = set; then |
| 5668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5669 | else |
| 5670 | if test -n "$DB2PS"; then |
| 5671 | ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test. |
| 5672 | else |
| 5673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5674 | for as_dir in $PATH |
| 5675 | do |
| 5676 | IFS=$as_save_IFS |
| 5677 | test -z "$as_dir" && as_dir=. |
| 5678 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5679 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5680 | ac_cv_prog_DB2PS="$ac_prog" |
| 5681 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5682 | break 2 |
| 5683 | fi |
| 5684 | done |
| 5685 | done |
| 5686 | |
| 5687 | fi |
| 5688 | fi |
| 5689 | DB2PS=$ac_cv_prog_DB2PS |
| 5690 | if test -n "$DB2PS"; then |
| 5691 | echo "$as_me:$LINENO: result: $DB2PS" >&5 |
| 5692 | echo "${ECHO_T}$DB2PS" >&6 |
| 5693 | else |
| 5694 | echo "$as_me:$LINENO: result: no" >&5 |
| 5695 | echo "${ECHO_T}no" >&6 |
| 5696 | fi |
| 5697 | |
| 5698 | test -n "$DB2PS" && break |
| 5699 | done |
| 5700 | test -n "$DB2PS" || DB2PS="false" |
| 5701 | |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 5702 | for ac_prog in docbook2txt db2txt |
| 5703 | do |
| 5704 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5705 | set dummy $ac_prog; ac_word=$2 |
| 5706 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5708 | if test "${ac_cv_prog_DB2TXT+set}" = set; then |
| 5709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5710 | else |
| 5711 | if test -n "$DB2TXT"; then |
| 5712 | ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test. |
| 5713 | else |
| 5714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5715 | for as_dir in $PATH |
| 5716 | do |
| 5717 | IFS=$as_save_IFS |
| 5718 | test -z "$as_dir" && as_dir=. |
| 5719 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5721 | ac_cv_prog_DB2TXT="$ac_prog" |
| 5722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5723 | break 2 |
| 5724 | fi |
| 5725 | done |
| 5726 | done |
| 5727 | |
| 5728 | fi |
| 5729 | fi |
| 5730 | DB2TXT=$ac_cv_prog_DB2TXT |
| 5731 | if test -n "$DB2TXT"; then |
| 5732 | echo "$as_me:$LINENO: result: $DB2TXT" >&5 |
| 5733 | echo "${ECHO_T}$DB2TXT" >&6 |
| 5734 | else |
| 5735 | echo "$as_me:$LINENO: result: no" >&5 |
| 5736 | echo "${ECHO_T}no" >&6 |
| 5737 | fi |
| 5738 | |
| 5739 | test -n "$DB2TXT" && break |
| 5740 | done |
| 5741 | test -n "$DB2TXT" || DB2TXT="false" |
| 5742 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 5743 | for ac_prog in fontforge |
| 5744 | do |
| 5745 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5746 | set dummy $ac_prog; ac_word=$2 |
| 5747 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5749 | if test "${ac_cv_prog_FONTFORGE+set}" = set; then |
| 5750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5751 | else |
| 5752 | if test -n "$FONTFORGE"; then |
| 5753 | ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test. |
| 5754 | else |
| 5755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5756 | for as_dir in $PATH |
| 5757 | do |
| 5758 | IFS=$as_save_IFS |
| 5759 | test -z "$as_dir" && as_dir=. |
| 5760 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5761 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5762 | ac_cv_prog_FONTFORGE="$ac_prog" |
| 5763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5764 | break 2 |
| 5765 | fi |
| 5766 | done |
| 5767 | done |
| 5768 | |
| 5769 | fi |
| 5770 | fi |
| 5771 | FONTFORGE=$ac_cv_prog_FONTFORGE |
| 5772 | if test -n "$FONTFORGE"; then |
| 5773 | echo "$as_me:$LINENO: result: $FONTFORGE" >&5 |
| 5774 | echo "${ECHO_T}$FONTFORGE" >&6 |
| 5775 | else |
| 5776 | echo "$as_me:$LINENO: result: no" >&5 |
| 5777 | echo "${ECHO_T}no" >&6 |
| 5778 | fi |
| 5779 | |
| 5780 | test -n "$FONTFORGE" && break |
| 5781 | done |
| 5782 | test -n "$FONTFORGE" || FONTFORGE="false" |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 5783 | |
| 5784 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5785 | |
| 5786 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5787 | echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5788 | echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6 |
| 5789 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
| 5790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5791 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5792 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5793 | LIBS="-li386 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5794 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5795 | /* confdefs.h. */ |
| 5796 | _ACEOF |
| 5797 | cat confdefs.h >>conftest.$ac_ext |
| 5798 | cat >>conftest.$ac_ext <<_ACEOF |
| 5799 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5800 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 5801 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5802 | #ifdef __cplusplus |
| 5803 | extern "C" |
| 5804 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5805 | /* 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] | 5806 | builtin and then its argument prototype would still apply. */ |
| 5807 | char i386_set_ldt (); |
| 5808 | int |
| 5809 | main () |
| 5810 | { |
| 5811 | i386_set_ldt (); |
| 5812 | ; |
| 5813 | return 0; |
| 5814 | } |
| 5815 | _ACEOF |
| 5816 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5818 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5819 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5821 | rm -f conftest.er1 |
| 5822 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5824 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5825 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5827 | (eval $ac_try) 2>&5 |
| 5828 | ac_status=$? |
| 5829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5830 | (exit $ac_status); }; } && |
| 5831 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5833 | (eval $ac_try) 2>&5 |
| 5834 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5836 | (exit $ac_status); }; }; then |
| 5837 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5838 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5839 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5841 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5842 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5843 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5844 | rm -f conftest.err conftest.$ac_objext \ |
| 5845 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5846 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5847 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5848 | 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] | 5849 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6 |
| 5850 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5851 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5852 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5853 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5854 | |
| 5855 | LIBS="-li386 $LIBS" |
| 5856 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5857 | fi |
| 5858 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5859 | |
| 5860 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5861 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
| 5862 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 5863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5864 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5865 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5866 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5867 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5868 | /* confdefs.h. */ |
| 5869 | _ACEOF |
| 5870 | cat confdefs.h >>conftest.$ac_ext |
| 5871 | cat >>conftest.$ac_ext <<_ACEOF |
| 5872 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5873 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5874 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5875 | #ifdef __cplusplus |
| 5876 | extern "C" |
| 5877 | #endif |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5878 | /* 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] | 5879 | builtin and then its argument prototype would still apply. */ |
| 5880 | char _oss_ioctl (); |
| 5881 | int |
| 5882 | main () |
| 5883 | { |
| 5884 | _oss_ioctl (); |
| 5885 | ; |
| 5886 | return 0; |
| 5887 | } |
| 5888 | _ACEOF |
| 5889 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5891 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5892 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5894 | rm -f conftest.er1 |
| 5895 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5897 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5900 | (eval $ac_try) 2>&5 |
| 5901 | ac_status=$? |
| 5902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5903 | (exit $ac_status); }; } && |
| 5904 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5906 | (eval $ac_try) 2>&5 |
| 5907 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5909 | (exit $ac_status); }; }; then |
| 5910 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5911 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5912 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5914 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5915 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5916 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5917 | rm -f conftest.err conftest.$ac_objext \ |
| 5918 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5919 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5920 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5921 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5922 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
| 5923 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5924 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5925 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5926 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5927 | |
| 5928 | LIBS="-lossaudio $LIBS" |
| 5929 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5930 | fi |
| 5931 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5932 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5933 | for ac_func in iswalnum |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5934 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5935 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5936 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5937 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5938 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5940 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5941 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5942 | /* confdefs.h. */ |
| 5943 | _ACEOF |
| 5944 | cat confdefs.h >>conftest.$ac_ext |
| 5945 | cat >>conftest.$ac_ext <<_ACEOF |
| 5946 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5947 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5948 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5949 | #define $ac_func innocuous_$ac_func |
| 5950 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5951 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5952 | which can conflict with char $ac_func (); below. |
| 5953 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5954 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5955 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5956 | #ifdef __STDC__ |
| 5957 | # include <limits.h> |
| 5958 | #else |
| 5959 | # include <assert.h> |
| 5960 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5961 | |
| 5962 | #undef $ac_func |
| 5963 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5964 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5965 | #ifdef __cplusplus |
| 5966 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5967 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5968 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5969 | /* 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] | 5970 | builtin and then its argument prototype would still apply. */ |
| 5971 | char $ac_func (); |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5972 | /* The GNU C library defines this for functions which it implements |
| 5973 | to always fail with ENOSYS. Some functions are actually named |
| 5974 | something starting with __ and the normal name is an alias. */ |
| 5975 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5976 | choke me |
| 5977 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5978 | char (*f) () = $ac_func; |
| 5979 | #endif |
| 5980 | #ifdef __cplusplus |
| 5981 | } |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5982 | #endif |
| 5983 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5984 | int |
| 5985 | main () |
| 5986 | { |
| 5987 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5988 | ; |
| 5989 | return 0; |
| 5990 | } |
| 5991 | _ACEOF |
| 5992 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5994 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5995 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5997 | rm -f conftest.er1 |
| 5998 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6000 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6003 | (eval $ac_try) 2>&5 |
| 6004 | ac_status=$? |
| 6005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6006 | (exit $ac_status); }; } && |
| 6007 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6009 | (eval $ac_try) 2>&5 |
| 6010 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6012 | (exit $ac_status); }; }; then |
| 6013 | eval "$as_ac_var=yes" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6014 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6015 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6017 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6018 | eval "$as_ac_var=no" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6019 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6020 | rm -f conftest.err conftest.$ac_objext \ |
| 6021 | conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6022 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6023 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6024 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6025 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6026 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6027 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6028 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6029 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6030 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6031 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6032 | echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6033 | echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6 |
| 6034 | if test "${ac_cv_lib_w_iswalnum+set}" = set; then |
| 6035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6036 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6037 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6038 | LIBS="-lw $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6039 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6040 | /* confdefs.h. */ |
| 6041 | _ACEOF |
| 6042 | cat confdefs.h >>conftest.$ac_ext |
| 6043 | cat >>conftest.$ac_ext <<_ACEOF |
| 6044 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6045 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6046 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6047 | #ifdef __cplusplus |
| 6048 | extern "C" |
| 6049 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6050 | /* 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] | 6051 | builtin and then its argument prototype would still apply. */ |
| 6052 | char iswalnum (); |
| 6053 | int |
| 6054 | main () |
| 6055 | { |
| 6056 | iswalnum (); |
| 6057 | ; |
| 6058 | return 0; |
| 6059 | } |
| 6060 | _ACEOF |
| 6061 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6063 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6064 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6066 | rm -f conftest.er1 |
| 6067 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6069 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6072 | (eval $ac_try) 2>&5 |
| 6073 | ac_status=$? |
| 6074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6075 | (exit $ac_status); }; } && |
| 6076 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6078 | (eval $ac_try) 2>&5 |
| 6079 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6081 | (exit $ac_status); }; }; then |
| 6082 | ac_cv_lib_w_iswalnum=yes |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6083 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6084 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6086 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6087 | ac_cv_lib_w_iswalnum=no |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6088 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6089 | rm -f conftest.err conftest.$ac_objext \ |
| 6090 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6091 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6092 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6093 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6094 | echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6 |
| 6095 | if test $ac_cv_lib_w_iswalnum = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6096 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6097 | #define HAVE_LIBW 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6098 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6099 | |
| 6100 | LIBS="-lw $LIBS" |
| 6101 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6102 | fi |
| 6103 | |
| 6104 | fi |
| 6105 | done |
| 6106 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6107 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6108 | for ac_func in gethostbyname |
| 6109 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6110 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6111 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6112 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6113 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6115 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6116 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6117 | /* confdefs.h. */ |
| 6118 | _ACEOF |
| 6119 | cat confdefs.h >>conftest.$ac_ext |
| 6120 | cat >>conftest.$ac_ext <<_ACEOF |
| 6121 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6122 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6123 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6124 | #define $ac_func innocuous_$ac_func |
| 6125 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6126 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6127 | which can conflict with char $ac_func (); below. |
| 6128 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6129 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6130 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6131 | #ifdef __STDC__ |
| 6132 | # include <limits.h> |
| 6133 | #else |
| 6134 | # include <assert.h> |
| 6135 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6136 | |
| 6137 | #undef $ac_func |
| 6138 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6139 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6140 | #ifdef __cplusplus |
| 6141 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6142 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6143 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6144 | /* 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] | 6145 | builtin and then its argument prototype would still apply. */ |
| 6146 | char $ac_func (); |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6147 | /* The GNU C library defines this for functions which it implements |
| 6148 | to always fail with ENOSYS. Some functions are actually named |
| 6149 | something starting with __ and the normal name is an alias. */ |
| 6150 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6151 | choke me |
| 6152 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6153 | char (*f) () = $ac_func; |
| 6154 | #endif |
| 6155 | #ifdef __cplusplus |
| 6156 | } |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6157 | #endif |
| 6158 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6159 | int |
| 6160 | main () |
| 6161 | { |
| 6162 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6163 | ; |
| 6164 | return 0; |
| 6165 | } |
| 6166 | _ACEOF |
| 6167 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6169 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6170 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6172 | rm -f conftest.er1 |
| 6173 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6175 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6176 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6178 | (eval $ac_try) 2>&5 |
| 6179 | ac_status=$? |
| 6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6181 | (exit $ac_status); }; } && |
| 6182 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6184 | (eval $ac_try) 2>&5 |
| 6185 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6187 | (exit $ac_status); }; }; then |
| 6188 | eval "$as_ac_var=yes" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6189 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6190 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6192 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6193 | eval "$as_ac_var=no" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6194 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6195 | rm -f conftest.err conftest.$ac_objext \ |
| 6196 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6197 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6198 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6199 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6200 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6201 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6202 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6203 | _ACEOF |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6204 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6205 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6206 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6207 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6208 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 6209 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 6210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6211 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6212 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6213 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6214 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6215 | /* confdefs.h. */ |
| 6216 | _ACEOF |
| 6217 | cat confdefs.h >>conftest.$ac_ext |
| 6218 | cat >>conftest.$ac_ext <<_ACEOF |
| 6219 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6220 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6221 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6222 | #ifdef __cplusplus |
| 6223 | extern "C" |
| 6224 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6225 | /* 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] | 6226 | builtin and then its argument prototype would still apply. */ |
| 6227 | char gethostbyname (); |
| 6228 | int |
| 6229 | main () |
| 6230 | { |
| 6231 | gethostbyname (); |
| 6232 | ; |
| 6233 | return 0; |
| 6234 | } |
| 6235 | _ACEOF |
| 6236 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6238 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6239 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6241 | rm -f conftest.er1 |
| 6242 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6244 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6247 | (eval $ac_try) 2>&5 |
| 6248 | ac_status=$? |
| 6249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6250 | (exit $ac_status); }; } && |
| 6251 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6253 | (eval $ac_try) 2>&5 |
| 6254 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6256 | (exit $ac_status); }; }; then |
| 6257 | ac_cv_lib_nsl_gethostbyname=yes |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6258 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6259 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6261 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6262 | ac_cv_lib_nsl_gethostbyname=no |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6263 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6264 | rm -f conftest.err conftest.$ac_objext \ |
| 6265 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6266 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6267 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6268 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6269 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 6270 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6271 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6272 | #define HAVE_LIBNSL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6273 | _ACEOF |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 6274 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6275 | LIBS="-lnsl $LIBS" |
| 6276 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 6277 | fi |
| 6278 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6279 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 6280 | done |
| 6281 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6282 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6283 | for ac_func in connect |
| 6284 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6285 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6286 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6287 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6288 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6290 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6291 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6292 | /* confdefs.h. */ |
| 6293 | _ACEOF |
| 6294 | cat confdefs.h >>conftest.$ac_ext |
| 6295 | cat >>conftest.$ac_ext <<_ACEOF |
| 6296 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6297 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6298 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6299 | #define $ac_func innocuous_$ac_func |
| 6300 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6301 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6302 | which can conflict with char $ac_func (); below. |
| 6303 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6304 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6305 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6306 | #ifdef __STDC__ |
| 6307 | # include <limits.h> |
| 6308 | #else |
| 6309 | # include <assert.h> |
| 6310 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6311 | |
| 6312 | #undef $ac_func |
| 6313 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6314 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6315 | #ifdef __cplusplus |
| 6316 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6317 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6318 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6319 | /* 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] | 6320 | builtin and then its argument prototype would still apply. */ |
| 6321 | char $ac_func (); |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6322 | /* The GNU C library defines this for functions which it implements |
| 6323 | to always fail with ENOSYS. Some functions are actually named |
| 6324 | something starting with __ and the normal name is an alias. */ |
| 6325 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6326 | choke me |
| 6327 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6328 | char (*f) () = $ac_func; |
| 6329 | #endif |
| 6330 | #ifdef __cplusplus |
| 6331 | } |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6332 | #endif |
| 6333 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6334 | int |
| 6335 | main () |
| 6336 | { |
| 6337 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6338 | ; |
| 6339 | return 0; |
| 6340 | } |
| 6341 | _ACEOF |
| 6342 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6344 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6345 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6347 | rm -f conftest.er1 |
| 6348 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6350 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6351 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6353 | (eval $ac_try) 2>&5 |
| 6354 | ac_status=$? |
| 6355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6356 | (exit $ac_status); }; } && |
| 6357 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6359 | (eval $ac_try) 2>&5 |
| 6360 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6362 | (exit $ac_status); }; }; then |
| 6363 | eval "$as_ac_var=yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6364 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6365 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6367 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6368 | eval "$as_ac_var=no" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6369 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6370 | rm -f conftest.err conftest.$ac_objext \ |
| 6371 | conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6372 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6373 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6374 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6375 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6376 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6377 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6378 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6379 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6380 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6381 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6382 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6383 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 6384 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 6385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6386 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6387 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6388 | LIBS="-lsocket $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6389 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6390 | /* confdefs.h. */ |
| 6391 | _ACEOF |
| 6392 | cat confdefs.h >>conftest.$ac_ext |
| 6393 | cat >>conftest.$ac_ext <<_ACEOF |
| 6394 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6395 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6396 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6397 | #ifdef __cplusplus |
| 6398 | extern "C" |
| 6399 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6400 | /* 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] | 6401 | builtin and then its argument prototype would still apply. */ |
| 6402 | char connect (); |
| 6403 | int |
| 6404 | main () |
| 6405 | { |
| 6406 | connect (); |
| 6407 | ; |
| 6408 | return 0; |
| 6409 | } |
| 6410 | _ACEOF |
| 6411 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6413 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6414 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6415 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6416 | rm -f conftest.er1 |
| 6417 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6419 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6420 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6422 | (eval $ac_try) 2>&5 |
| 6423 | ac_status=$? |
| 6424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6425 | (exit $ac_status); }; } && |
| 6426 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6428 | (eval $ac_try) 2>&5 |
| 6429 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6431 | (exit $ac_status); }; }; then |
| 6432 | ac_cv_lib_socket_connect=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6433 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6434 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6436 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6437 | ac_cv_lib_socket_connect=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6438 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6439 | rm -f conftest.err conftest.$ac_objext \ |
| 6440 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6441 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6442 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6443 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6444 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 6445 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6446 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6447 | #define HAVE_LIBSOCKET 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6448 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6449 | |
| 6450 | LIBS="-lsocket $LIBS" |
| 6451 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6452 | fi |
| 6453 | |
| 6454 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 6455 | done |
| 6456 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6457 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6458 | for ac_func in inet_aton |
| 6459 | do |
| 6460 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6461 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6462 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6463 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6465 | else |
| 6466 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6467 | /* confdefs.h. */ |
| 6468 | _ACEOF |
| 6469 | cat confdefs.h >>conftest.$ac_ext |
| 6470 | cat >>conftest.$ac_ext <<_ACEOF |
| 6471 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6472 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6473 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6474 | #define $ac_func innocuous_$ac_func |
| 6475 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6476 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6477 | which can conflict with char $ac_func (); below. |
| 6478 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6479 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6480 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6481 | #ifdef __STDC__ |
| 6482 | # include <limits.h> |
| 6483 | #else |
| 6484 | # include <assert.h> |
| 6485 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6486 | |
| 6487 | #undef $ac_func |
| 6488 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6489 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6490 | #ifdef __cplusplus |
| 6491 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6492 | { |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6493 | #endif |
| 6494 | /* We use char because int might match the return type of a gcc2 |
| 6495 | builtin and then its argument prototype would still apply. */ |
| 6496 | char $ac_func (); |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6497 | /* The GNU C library defines this for functions which it implements |
| 6498 | to always fail with ENOSYS. Some functions are actually named |
| 6499 | something starting with __ and the normal name is an alias. */ |
| 6500 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6501 | choke me |
| 6502 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6503 | char (*f) () = $ac_func; |
| 6504 | #endif |
| 6505 | #ifdef __cplusplus |
| 6506 | } |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6507 | #endif |
| 6508 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6509 | int |
| 6510 | main () |
| 6511 | { |
| 6512 | return f != $ac_func; |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6513 | ; |
| 6514 | return 0; |
| 6515 | } |
| 6516 | _ACEOF |
| 6517 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6519 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6520 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6522 | rm -f conftest.er1 |
| 6523 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6525 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6528 | (eval $ac_try) 2>&5 |
| 6529 | ac_status=$? |
| 6530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6531 | (exit $ac_status); }; } && |
| 6532 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6534 | (eval $ac_try) 2>&5 |
| 6535 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6537 | (exit $ac_status); }; }; then |
| 6538 | eval "$as_ac_var=yes" |
| 6539 | else |
| 6540 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6542 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6543 | eval "$as_ac_var=no" |
| 6544 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6545 | rm -f conftest.err conftest.$ac_objext \ |
| 6546 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6547 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6548 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6549 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6550 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6551 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6552 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6553 | _ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6554 | |
| 6555 | else |
| 6556 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6557 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6558 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 6559 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 6560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6561 | else |
| 6562 | ac_check_lib_save_LIBS=$LIBS |
| 6563 | LIBS="-lresolv $LIBS" |
| 6564 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6565 | /* confdefs.h. */ |
| 6566 | _ACEOF |
| 6567 | cat confdefs.h >>conftest.$ac_ext |
| 6568 | cat >>conftest.$ac_ext <<_ACEOF |
| 6569 | /* end confdefs.h. */ |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6570 | |
| 6571 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6572 | #ifdef __cplusplus |
| 6573 | extern "C" |
| 6574 | #endif |
| 6575 | /* We use char because int might match the return type of a gcc2 |
| 6576 | builtin and then its argument prototype would still apply. */ |
| 6577 | char inet_aton (); |
| 6578 | int |
| 6579 | main () |
| 6580 | { |
| 6581 | inet_aton (); |
| 6582 | ; |
| 6583 | return 0; |
| 6584 | } |
| 6585 | _ACEOF |
| 6586 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6588 | (eval $ac_link) 2>conftest.er1 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6589 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6591 | rm -f conftest.er1 |
| 6592 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6594 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6595 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6597 | (eval $ac_try) 2>&5 |
| 6598 | ac_status=$? |
| 6599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6600 | (exit $ac_status); }; } && |
| 6601 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6603 | (eval $ac_try) 2>&5 |
| 6604 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6606 | (exit $ac_status); }; }; then |
| 6607 | ac_cv_lib_resolv_inet_aton=yes |
| 6608 | else |
| 6609 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6611 | |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6612 | ac_cv_lib_resolv_inet_aton=no |
| 6613 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6614 | rm -f conftest.err conftest.$ac_objext \ |
| 6615 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6616 | LIBS=$ac_check_lib_save_LIBS |
| 6617 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6618 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6619 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 6620 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6621 | cat >>confdefs.h <<_ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6622 | #define HAVE_LIBRESOLV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6623 | _ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6624 | |
| 6625 | LIBS="-lresolv $LIBS" |
| 6626 | |
| 6627 | fi |
| 6628 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6629 | fi |
| 6630 | done |
| 6631 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6632 | |
| 6633 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6634 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 6635 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 6636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6637 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6638 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6639 | LIBS="-lxpg4 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6640 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6641 | /* confdefs.h. */ |
| 6642 | _ACEOF |
| 6643 | cat confdefs.h >>conftest.$ac_ext |
| 6644 | cat >>conftest.$ac_ext <<_ACEOF |
| 6645 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6646 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6647 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6648 | #ifdef __cplusplus |
| 6649 | extern "C" |
| 6650 | #endif |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6651 | /* 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] | 6652 | builtin and then its argument prototype would still apply. */ |
| 6653 | char _xpg4_setrunelocale (); |
| 6654 | int |
| 6655 | main () |
| 6656 | { |
| 6657 | _xpg4_setrunelocale (); |
| 6658 | ; |
| 6659 | return 0; |
| 6660 | } |
| 6661 | _ACEOF |
| 6662 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6664 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6665 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6667 | rm -f conftest.er1 |
| 6668 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6670 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6671 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6673 | (eval $ac_try) 2>&5 |
| 6674 | ac_status=$? |
| 6675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6676 | (exit $ac_status); }; } && |
| 6677 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6679 | (eval $ac_try) 2>&5 |
| 6680 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6682 | (exit $ac_status); }; }; then |
| 6683 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6684 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6685 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6687 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6688 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6689 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6690 | rm -f conftest.err conftest.$ac_objext \ |
| 6691 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6692 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6693 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6694 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6695 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 6696 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6697 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6698 | #define HAVE_LIBXPG4 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6699 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6700 | |
| 6701 | LIBS="-lxpg4 $LIBS" |
| 6702 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6703 | fi |
| 6704 | |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6705 | |
| 6706 | echo "$as_me:$LINENO: checking for poll in -lpoll" >&5 |
| 6707 | echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6 |
| 6708 | if test "${ac_cv_lib_poll_poll+set}" = set; then |
| 6709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6710 | else |
| 6711 | ac_check_lib_save_LIBS=$LIBS |
| 6712 | LIBS="-lpoll $LIBS" |
| 6713 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6714 | /* confdefs.h. */ |
| 6715 | _ACEOF |
| 6716 | cat confdefs.h >>conftest.$ac_ext |
| 6717 | cat >>conftest.$ac_ext <<_ACEOF |
| 6718 | /* end confdefs.h. */ |
| 6719 | |
| 6720 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6721 | #ifdef __cplusplus |
| 6722 | extern "C" |
| 6723 | #endif |
| 6724 | /* We use char because int might match the return type of a gcc2 |
| 6725 | builtin and then its argument prototype would still apply. */ |
| 6726 | char poll (); |
| 6727 | int |
| 6728 | main () |
| 6729 | { |
| 6730 | poll (); |
| 6731 | ; |
| 6732 | return 0; |
| 6733 | } |
| 6734 | _ACEOF |
| 6735 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6737 | (eval $ac_link) 2>conftest.er1 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6738 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6739 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6740 | rm -f conftest.er1 |
| 6741 | cat conftest.err >&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6743 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6746 | (eval $ac_try) 2>&5 |
| 6747 | ac_status=$? |
| 6748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6749 | (exit $ac_status); }; } && |
| 6750 | { ac_try='test -s conftest$ac_exeext' |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6752 | (eval $ac_try) 2>&5 |
| 6753 | ac_status=$? |
| 6754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6755 | (exit $ac_status); }; }; then |
| 6756 | ac_cv_lib_poll_poll=yes |
| 6757 | else |
| 6758 | echo "$as_me: failed program was:" >&5 |
| 6759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6760 | |
| 6761 | ac_cv_lib_poll_poll=no |
| 6762 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6763 | rm -f conftest.err conftest.$ac_objext \ |
| 6764 | conftest$ac_exeext conftest.$ac_ext |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6765 | LIBS=$ac_check_lib_save_LIBS |
| 6766 | fi |
| 6767 | echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5 |
| 6768 | echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6 |
| 6769 | if test $ac_cv_lib_poll_poll = yes; then |
| 6770 | cat >>confdefs.h <<_ACEOF |
| 6771 | #define HAVE_LIBPOLL 1 |
| 6772 | _ACEOF |
| 6773 | |
| 6774 | LIBS="-lpoll $LIBS" |
| 6775 | |
| 6776 | fi |
| 6777 | |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 6778 | |
| 6779 | echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5 |
| 6780 | echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6 |
| 6781 | if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then |
| 6782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6783 | else |
| 6784 | ac_check_lib_save_LIBS=$LIBS |
| 6785 | LIBS="-lresolv $LIBS" |
| 6786 | cat >conftest.$ac_ext <<_ACEOF |
| 6787 | /* confdefs.h. */ |
| 6788 | _ACEOF |
| 6789 | cat confdefs.h >>conftest.$ac_ext |
| 6790 | cat >>conftest.$ac_ext <<_ACEOF |
| 6791 | /* end confdefs.h. */ |
| 6792 | |
| 6793 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6794 | #ifdef __cplusplus |
| 6795 | extern "C" |
| 6796 | #endif |
| 6797 | /* We use char because int might match the return type of a gcc2 |
| 6798 | builtin and then its argument prototype would still apply. */ |
| 6799 | char res_9_init (); |
| 6800 | int |
| 6801 | main () |
| 6802 | { |
| 6803 | res_9_init (); |
| 6804 | ; |
| 6805 | return 0; |
| 6806 | } |
| 6807 | _ACEOF |
| 6808 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6810 | (eval $ac_link) 2>conftest.er1 |
| 6811 | ac_status=$? |
| 6812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6813 | rm -f conftest.er1 |
| 6814 | cat conftest.err >&5 |
| 6815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6816 | (exit $ac_status); } && |
| 6817 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6819 | (eval $ac_try) 2>&5 |
| 6820 | ac_status=$? |
| 6821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6822 | (exit $ac_status); }; } && |
| 6823 | { ac_try='test -s conftest$ac_exeext' |
| 6824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6825 | (eval $ac_try) 2>&5 |
| 6826 | ac_status=$? |
| 6827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6828 | (exit $ac_status); }; }; then |
| 6829 | ac_cv_lib_resolv_res_9_init=yes |
| 6830 | else |
| 6831 | echo "$as_me: failed program was:" >&5 |
| 6832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6833 | |
| 6834 | ac_cv_lib_resolv_res_9_init=no |
| 6835 | fi |
| 6836 | rm -f conftest.err conftest.$ac_objext \ |
| 6837 | conftest$ac_exeext conftest.$ac_ext |
| 6838 | LIBS=$ac_check_lib_save_LIBS |
| 6839 | fi |
| 6840 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5 |
| 6841 | echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6 |
| 6842 | if test $ac_cv_lib_resolv_res_9_init = yes; then |
| 6843 | cat >>confdefs.h <<_ACEOF |
| 6844 | #define HAVE_LIBRESOLV 1 |
| 6845 | _ACEOF |
| 6846 | |
| 6847 | LIBS="-lresolv $LIBS" |
| 6848 | |
| 6849 | fi |
| 6850 | |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6851 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 6852 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 6853 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6855 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6856 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6857 | LIBS="-lpthread $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6858 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6859 | /* confdefs.h. */ |
| 6860 | _ACEOF |
| 6861 | cat confdefs.h >>conftest.$ac_ext |
| 6862 | cat >>conftest.$ac_ext <<_ACEOF |
| 6863 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6864 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6865 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6866 | #ifdef __cplusplus |
| 6867 | extern "C" |
| 6868 | #endif |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6869 | /* 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] | 6870 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6871 | char pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6872 | int |
| 6873 | main () |
| 6874 | { |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6875 | pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6876 | ; |
| 6877 | return 0; |
| 6878 | } |
| 6879 | _ACEOF |
| 6880 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6882 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6883 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6884 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6885 | rm -f conftest.er1 |
| 6886 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6888 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6889 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6891 | (eval $ac_try) 2>&5 |
| 6892 | ac_status=$? |
| 6893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6894 | (exit $ac_status); }; } && |
| 6895 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6897 | (eval $ac_try) 2>&5 |
| 6898 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6900 | (exit $ac_status); }; }; then |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6901 | ac_cv_lib_pthread_pthread_create=yes |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6902 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6903 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6905 | |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6906 | ac_cv_lib_pthread_pthread_create=no |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6907 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6908 | rm -f conftest.err conftest.$ac_objext \ |
| 6909 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6910 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6911 | fi |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6912 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 6913 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
| 6914 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
| 6915 | LIBPTHREAD="-lpthread" |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6916 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6917 | fi |
| 6918 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6919 | |
Alexandre Julliard | 562089b | 2001-12-31 22:28:35 +0000 | [diff] [blame] | 6920 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 6921 | |
| 6922 | XFILES="" |
| 6923 | |
| 6924 | OPENGLFILES="" |
| 6925 | |
| 6926 | GLU32FILES="" |
| 6927 | |
| 6928 | OPENGL_LIBS="" |
| 6929 | if test "$have_x" = "yes" |
| 6930 | then |
| 6931 | XLIB="-lXext -lX11" |
| 6932 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 6933 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 6934 | |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 6935 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6936 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 6937 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 6939 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6940 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6941 | /* confdefs.h. */ |
| 6942 | _ACEOF |
| 6943 | cat confdefs.h >>conftest.$ac_ext |
| 6944 | cat >>conftest.$ac_ext <<_ACEOF |
| 6945 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6946 | #include <stdlib.h> |
| 6947 | #include <stdarg.h> |
| 6948 | #include <string.h> |
| 6949 | #include <float.h> |
| 6950 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6951 | int |
| 6952 | main () |
| 6953 | { |
| 6954 | |
| 6955 | ; |
| 6956 | return 0; |
| 6957 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6958 | _ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6959 | rm -f conftest.$ac_objext |
| 6960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6961 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6962 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6963 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6964 | rm -f conftest.er1 |
| 6965 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6967 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6968 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6970 | (eval $ac_try) 2>&5 |
| 6971 | ac_status=$? |
| 6972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6973 | (exit $ac_status); }; } && |
| 6974 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6976 | (eval $ac_try) 2>&5 |
| 6977 | ac_status=$? |
| 6978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6979 | (exit $ac_status); }; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6980 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6981 | else |
| 6982 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6984 | |
| 6985 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 6986 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6988 | |
| 6989 | if test $ac_cv_header_stdc = yes; then |
| 6990 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6991 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6992 | /* confdefs.h. */ |
| 6993 | _ACEOF |
| 6994 | cat confdefs.h >>conftest.$ac_ext |
| 6995 | cat >>conftest.$ac_ext <<_ACEOF |
| 6996 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6997 | #include <string.h> |
| 6998 | |
| 6999 | _ACEOF |
| 7000 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7001 | $EGREP "memchr" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7002 | : |
| 7003 | else |
| 7004 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 7005 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7006 | rm -f conftest* |
| 7007 | |
| 7008 | fi |
| 7009 | |
| 7010 | if test $ac_cv_header_stdc = yes; then |
| 7011 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7012 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7013 | /* confdefs.h. */ |
| 7014 | _ACEOF |
| 7015 | cat confdefs.h >>conftest.$ac_ext |
| 7016 | cat >>conftest.$ac_ext <<_ACEOF |
| 7017 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7018 | #include <stdlib.h> |
| 7019 | |
| 7020 | _ACEOF |
| 7021 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7022 | $EGREP "free" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7023 | : |
| 7024 | else |
| 7025 | ac_cv_header_stdc=no |
| 7026 | fi |
| 7027 | rm -f conftest* |
| 7028 | |
| 7029 | fi |
| 7030 | |
| 7031 | if test $ac_cv_header_stdc = yes; then |
| 7032 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7033 | if test "$cross_compiling" = yes; then |
| 7034 | : |
| 7035 | else |
| 7036 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7037 | /* confdefs.h. */ |
| 7038 | _ACEOF |
| 7039 | cat confdefs.h >>conftest.$ac_ext |
| 7040 | cat >>conftest.$ac_ext <<_ACEOF |
| 7041 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7042 | #include <ctype.h> |
| 7043 | #if ((' ' & 0x0FF) == 0x020) |
| 7044 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7045 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7046 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7047 | # define ISLOWER(c) \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7048 | (('a' <= (c) && (c) <= 'i') \ |
| 7049 | || ('j' <= (c) && (c) <= 'r') \ |
| 7050 | || ('s' <= (c) && (c) <= 'z')) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7051 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7052 | #endif |
| 7053 | |
| 7054 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7055 | int |
| 7056 | main () |
| 7057 | { |
| 7058 | int i; |
| 7059 | for (i = 0; i < 256; i++) |
| 7060 | if (XOR (islower (i), ISLOWER (i)) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7061 | || toupper (i) != TOUPPER (i)) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7062 | exit(2); |
| 7063 | exit (0); |
| 7064 | } |
| 7065 | _ACEOF |
| 7066 | rm -f conftest$ac_exeext |
| 7067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7068 | (eval $ac_link) 2>&5 |
| 7069 | ac_status=$? |
| 7070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7071 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7073 | (eval $ac_try) 2>&5 |
| 7074 | ac_status=$? |
| 7075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7076 | (exit $ac_status); }; }; then |
| 7077 | : |
| 7078 | else |
| 7079 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7080 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7082 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7083 | ( exit $ac_status ) |
| 7084 | ac_cv_header_stdc=no |
| 7085 | fi |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 7086 | rm -f 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] | 7087 | fi |
| 7088 | fi |
| 7089 | fi |
| 7090 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 7091 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 7092 | if test $ac_cv_header_stdc = yes; then |
| 7093 | |
| 7094 | cat >>confdefs.h <<\_ACEOF |
| 7095 | #define STDC_HEADERS 1 |
| 7096 | _ACEOF |
| 7097 | |
| 7098 | fi |
| 7099 | |
| 7100 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7101 | |
| 7102 | |
| 7103 | |
| 7104 | |
| 7105 | |
| 7106 | |
| 7107 | |
| 7108 | |
| 7109 | |
| 7110 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7111 | inttypes.h stdint.h unistd.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7112 | do |
| 7113 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7114 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7115 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7116 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7118 | else |
| 7119 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7120 | /* confdefs.h. */ |
| 7121 | _ACEOF |
| 7122 | cat confdefs.h >>conftest.$ac_ext |
| 7123 | cat >>conftest.$ac_ext <<_ACEOF |
| 7124 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7125 | $ac_includes_default |
| 7126 | |
| 7127 | #include <$ac_header> |
| 7128 | _ACEOF |
| 7129 | rm -f conftest.$ac_objext |
| 7130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7131 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7132 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7133 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7134 | rm -f conftest.er1 |
| 7135 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7137 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7140 | (eval $ac_try) 2>&5 |
| 7141 | ac_status=$? |
| 7142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7143 | (exit $ac_status); }; } && |
| 7144 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7146 | (eval $ac_try) 2>&5 |
| 7147 | ac_status=$? |
| 7148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7149 | (exit $ac_status); }; }; then |
| 7150 | eval "$as_ac_Header=yes" |
| 7151 | else |
| 7152 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7154 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7155 | eval "$as_ac_Header=no" |
| 7156 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7158 | fi |
| 7159 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7160 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7161 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7162 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7163 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7164 | _ACEOF |
| 7165 | |
| 7166 | fi |
| 7167 | |
| 7168 | done |
| 7169 | |
| 7170 | |
| 7171 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7172 | for ac_header in X11/Xlib.h |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7173 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7174 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7175 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7176 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7177 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7178 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7180 | fi |
| 7181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7182 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7183 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7184 | # Is the header compilable? |
| 7185 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7186 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7187 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7188 | /* confdefs.h. */ |
| 7189 | _ACEOF |
| 7190 | cat confdefs.h >>conftest.$ac_ext |
| 7191 | cat >>conftest.$ac_ext <<_ACEOF |
| 7192 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7193 | $ac_includes_default |
| 7194 | #include <$ac_header> |
| 7195 | _ACEOF |
| 7196 | rm -f conftest.$ac_objext |
| 7197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7198 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7199 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7201 | rm -f conftest.er1 |
| 7202 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7204 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7205 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7207 | (eval $ac_try) 2>&5 |
| 7208 | ac_status=$? |
| 7209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7210 | (exit $ac_status); }; } && |
| 7211 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7213 | (eval $ac_try) 2>&5 |
| 7214 | ac_status=$? |
| 7215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7216 | (exit $ac_status); }; }; then |
| 7217 | ac_header_compiler=yes |
| 7218 | else |
| 7219 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7221 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7222 | ac_header_compiler=no |
| 7223 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7225 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7226 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7227 | |
| 7228 | # Is the header present? |
| 7229 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7230 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7231 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7232 | /* confdefs.h. */ |
| 7233 | _ACEOF |
| 7234 | cat confdefs.h >>conftest.$ac_ext |
| 7235 | cat >>conftest.$ac_ext <<_ACEOF |
| 7236 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7237 | #include <$ac_header> |
| 7238 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7239 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7240 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7241 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7242 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7243 | rm -f conftest.er1 |
| 7244 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7246 | (exit $ac_status); } >/dev/null; then |
| 7247 | if test -s conftest.err; then |
| 7248 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7249 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7250 | else |
| 7251 | ac_cpp_err= |
| 7252 | fi |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7253 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7254 | ac_cpp_err=yes |
| 7255 | fi |
| 7256 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7257 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7258 | else |
| 7259 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7260 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7261 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7262 | ac_header_preproc=no |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7263 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7264 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7265 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7266 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7267 | |
| 7268 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7269 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7270 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7271 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7272 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7273 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7274 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7275 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7276 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7277 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7278 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7279 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7280 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7281 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7282 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7283 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7284 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7285 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7286 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7287 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7288 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7289 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7290 | ( |
| 7291 | cat <<\_ASBOX |
| 7292 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7293 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7294 | ## ------------------------------------ ## |
| 7295 | _ASBOX |
| 7296 | ) | |
| 7297 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7298 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7299 | esac |
| 7300 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7301 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7302 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7304 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7305 | eval "$as_ac_Header=\$ac_header_preproc" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7306 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7307 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7308 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7309 | |
| 7310 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7311 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7312 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7313 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7314 | _ACEOF |
| 7315 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7316 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7317 | |
| 7318 | |
| 7319 | |
| 7320 | |
| 7321 | |
| 7322 | |
| 7323 | |
| 7324 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 7325 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7326 | for ac_header in X11/XKBlib.h \ |
| 7327 | X11/Xutil.h \ |
| 7328 | X11/extensions/shape.h \ |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 7329 | X11/extensions/XInput.h \ |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7330 | X11/extensions/XShm.h \ |
| 7331 | X11/extensions/Xrandr.h \ |
| 7332 | X11/extensions/Xrender.h \ |
| 7333 | X11/extensions/Xvlib.h \ |
| 7334 | X11/extensions/xf86dga.h \ |
| 7335 | X11/extensions/xf86vmode.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7336 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7337 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7338 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7339 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7340 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7342 | else |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7343 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7344 | /* confdefs.h. */ |
| 7345 | _ACEOF |
| 7346 | cat confdefs.h >>conftest.$ac_ext |
| 7347 | cat >>conftest.$ac_ext <<_ACEOF |
| 7348 | /* end confdefs.h. */ |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7349 | #include <X11/Xlib.h> |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7350 | #ifdef HAVE_X11_XUTIL_H |
| 7351 | # include <X11/Xutil.h> |
| 7352 | #endif |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7353 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7354 | #include <$ac_header> |
| 7355 | _ACEOF |
| 7356 | rm -f conftest.$ac_objext |
| 7357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7358 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7359 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7361 | rm -f conftest.er1 |
| 7362 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7364 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7367 | (eval $ac_try) 2>&5 |
| 7368 | ac_status=$? |
| 7369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7370 | (exit $ac_status); }; } && |
| 7371 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7373 | (eval $ac_try) 2>&5 |
| 7374 | ac_status=$? |
| 7375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7376 | (exit $ac_status); }; }; then |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7377 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7378 | else |
| 7379 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7381 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7382 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7383 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7385 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7386 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7387 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7388 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7389 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7390 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7391 | _ACEOF |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7392 | |
| 7393 | fi |
| 7394 | |
| 7395 | done |
| 7396 | |
| 7397 | |
| 7398 | if test "$ac_cv_header_X11_XKBlib_h" = "yes" |
| 7399 | then |
| 7400 | echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7401 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6 |
| 7402 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
| 7403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7404 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7405 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7406 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7407 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7408 | /* confdefs.h. */ |
| 7409 | _ACEOF |
| 7410 | cat confdefs.h >>conftest.$ac_ext |
| 7411 | cat >>conftest.$ac_ext <<_ACEOF |
| 7412 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7413 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7414 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7415 | #ifdef __cplusplus |
| 7416 | extern "C" |
| 7417 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7418 | /* 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] | 7419 | builtin and then its argument prototype would still apply. */ |
| 7420 | char XkbQueryExtension (); |
| 7421 | int |
| 7422 | main () |
| 7423 | { |
| 7424 | XkbQueryExtension (); |
| 7425 | ; |
| 7426 | return 0; |
| 7427 | } |
| 7428 | _ACEOF |
| 7429 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7431 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7432 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7434 | rm -f conftest.er1 |
| 7435 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7437 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7440 | (eval $ac_try) 2>&5 |
| 7441 | ac_status=$? |
| 7442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7443 | (exit $ac_status); }; } && |
| 7444 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7446 | (eval $ac_try) 2>&5 |
| 7447 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7449 | (exit $ac_status); }; }; then |
| 7450 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7451 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7452 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7454 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7455 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7456 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7457 | rm -f conftest.err conftest.$ac_objext \ |
| 7458 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7459 | LIBS=$ac_check_lib_save_LIBS |
| 7460 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7461 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7462 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6 |
| 7463 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7464 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7465 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7466 | #define HAVE_XKB 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7467 | _ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7468 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7469 | fi |
| 7470 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7471 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7472 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7473 | if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
| 7474 | then |
| 7475 | echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7476 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6 |
| 7477 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
| 7478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7479 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7480 | ac_check_lib_save_LIBS=$LIBS |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7481 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7482 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7483 | /* confdefs.h. */ |
| 7484 | _ACEOF |
| 7485 | cat confdefs.h >>conftest.$ac_ext |
| 7486 | cat >>conftest.$ac_ext <<_ACEOF |
| 7487 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7488 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7489 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7490 | #ifdef __cplusplus |
| 7491 | extern "C" |
| 7492 | #endif |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7493 | /* 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] | 7494 | builtin and then its argument prototype would still apply. */ |
| 7495 | char XShmQueryExtension (); |
| 7496 | int |
| 7497 | main () |
| 7498 | { |
| 7499 | XShmQueryExtension (); |
| 7500 | ; |
| 7501 | return 0; |
| 7502 | } |
| 7503 | _ACEOF |
| 7504 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7506 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7507 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7509 | rm -f conftest.er1 |
| 7510 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7512 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7515 | (eval $ac_try) 2>&5 |
| 7516 | ac_status=$? |
| 7517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7518 | (exit $ac_status); }; } && |
| 7519 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7521 | (eval $ac_try) 2>&5 |
| 7522 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7524 | (exit $ac_status); }; }; then |
| 7525 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7526 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7527 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7529 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7530 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7531 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7532 | rm -f conftest.err conftest.$ac_objext \ |
| 7533 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7534 | LIBS=$ac_check_lib_save_LIBS |
| 7535 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7536 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7537 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6 |
| 7538 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7539 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7540 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7541 | #define HAVE_LIBXXSHM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7542 | _ACEOF |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7543 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7544 | fi |
| 7545 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7546 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7547 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7548 | if test "$ac_cv_header_X11_extensions_shape_h" = "yes" |
| 7549 | then |
| 7550 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7551 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 7552 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 7553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7554 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7555 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7556 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7557 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7558 | /* confdefs.h. */ |
| 7559 | _ACEOF |
| 7560 | cat confdefs.h >>conftest.$ac_ext |
| 7561 | cat >>conftest.$ac_ext <<_ACEOF |
| 7562 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7563 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7564 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7565 | #ifdef __cplusplus |
| 7566 | extern "C" |
| 7567 | #endif |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7568 | /* 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] | 7569 | builtin and then its argument prototype would still apply. */ |
| 7570 | char XShapeQueryExtension (); |
| 7571 | int |
| 7572 | main () |
| 7573 | { |
| 7574 | XShapeQueryExtension (); |
| 7575 | ; |
| 7576 | return 0; |
| 7577 | } |
| 7578 | _ACEOF |
| 7579 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7581 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7582 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7584 | rm -f conftest.er1 |
| 7585 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7587 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7590 | (eval $ac_try) 2>&5 |
| 7591 | ac_status=$? |
| 7592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7593 | (exit $ac_status); }; } && |
| 7594 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7596 | (eval $ac_try) 2>&5 |
| 7597 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7599 | (exit $ac_status); }; }; then |
| 7600 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7601 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7602 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7604 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7605 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7606 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7607 | rm -f conftest.err conftest.$ac_objext \ |
| 7608 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7609 | LIBS=$ac_check_lib_save_LIBS |
| 7610 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7611 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7612 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 7613 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7614 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7615 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7616 | #define HAVE_LIBXSHAPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7617 | _ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7618 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7619 | fi |
| 7620 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7621 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7622 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7623 | if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes" |
| 7624 | then |
| 7625 | echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7626 | echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 7627 | if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then |
| 7628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7629 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7630 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7631 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7632 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7633 | /* confdefs.h. */ |
| 7634 | _ACEOF |
| 7635 | cat confdefs.h >>conftest.$ac_ext |
| 7636 | cat >>conftest.$ac_ext <<_ACEOF |
| 7637 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7638 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7639 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7640 | #ifdef __cplusplus |
| 7641 | extern "C" |
| 7642 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7643 | /* 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] | 7644 | builtin and then its argument prototype would still apply. */ |
| 7645 | char XDGAQueryExtension (); |
| 7646 | int |
| 7647 | main () |
| 7648 | { |
| 7649 | XDGAQueryExtension (); |
| 7650 | ; |
| 7651 | return 0; |
| 7652 | } |
| 7653 | _ACEOF |
| 7654 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7656 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7657 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7658 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7659 | rm -f conftest.er1 |
| 7660 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7662 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7663 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7665 | (eval $ac_try) 2>&5 |
| 7666 | ac_status=$? |
| 7667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7668 | (exit $ac_status); }; } && |
| 7669 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7671 | (eval $ac_try) 2>&5 |
| 7672 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7674 | (exit $ac_status); }; }; then |
| 7675 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7676 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7677 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7679 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7680 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=no |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7681 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7682 | rm -f conftest.err conftest.$ac_objext \ |
| 7683 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7684 | LIBS=$ac_check_lib_save_LIBS |
| 7685 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7686 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7687 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6 |
| 7688 | if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7689 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7690 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7691 | #define HAVE_LIBXXF86DGA2 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7692 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 7693 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7694 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7695 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7696 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7697 | echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7698 | echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 7699 | if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then |
| 7700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7701 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7702 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7703 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 7704 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7705 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7706 | /* confdefs.h. */ |
| 7707 | _ACEOF |
| 7708 | cat confdefs.h >>conftest.$ac_ext |
| 7709 | cat >>conftest.$ac_ext <<_ACEOF |
| 7710 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7711 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7712 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7713 | #ifdef __cplusplus |
| 7714 | extern "C" |
| 7715 | #endif |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 7716 | /* 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] | 7717 | builtin and then its argument prototype would still apply. */ |
| 7718 | char XF86DGAQueryExtension (); |
| 7719 | int |
| 7720 | main () |
| 7721 | { |
| 7722 | XF86DGAQueryExtension (); |
| 7723 | ; |
| 7724 | return 0; |
| 7725 | } |
| 7726 | _ACEOF |
| 7727 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7729 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7730 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7732 | rm -f conftest.er1 |
| 7733 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7735 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7736 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7738 | (eval $ac_try) 2>&5 |
| 7739 | ac_status=$? |
| 7740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7741 | (exit $ac_status); }; } && |
| 7742 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7744 | (eval $ac_try) 2>&5 |
| 7745 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7747 | (exit $ac_status); }; }; then |
| 7748 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7749 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7750 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7752 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7753 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7754 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7755 | rm -f conftest.err conftest.$ac_objext \ |
| 7756 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7757 | LIBS=$ac_check_lib_save_LIBS |
| 7758 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7759 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7760 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6 |
| 7761 | if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7762 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7763 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7764 | #define HAVE_LIBXXF86DGA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7765 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 7766 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7767 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7768 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7769 | fi |
| 7770 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7771 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7772 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7773 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7774 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7775 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7776 | if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" |
| 7777 | then |
| 7778 | echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7779 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6 |
| 7780 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
| 7781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7782 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7783 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7784 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7785 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7786 | /* confdefs.h. */ |
| 7787 | _ACEOF |
| 7788 | cat confdefs.h >>conftest.$ac_ext |
| 7789 | cat >>conftest.$ac_ext <<_ACEOF |
| 7790 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7791 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7792 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7793 | #ifdef __cplusplus |
| 7794 | extern "C" |
| 7795 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7796 | /* 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] | 7797 | builtin and then its argument prototype would still apply. */ |
| 7798 | char XF86VidModeQueryExtension (); |
| 7799 | int |
| 7800 | main () |
| 7801 | { |
| 7802 | XF86VidModeQueryExtension (); |
| 7803 | ; |
| 7804 | return 0; |
| 7805 | } |
| 7806 | _ACEOF |
| 7807 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7809 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7810 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7812 | rm -f conftest.er1 |
| 7813 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7815 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7816 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7818 | (eval $ac_try) 2>&5 |
| 7819 | ac_status=$? |
| 7820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7821 | (exit $ac_status); }; } && |
| 7822 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7824 | (eval $ac_try) 2>&5 |
| 7825 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7827 | (exit $ac_status); }; }; then |
| 7828 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7829 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7830 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7832 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7833 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7834 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7835 | rm -f conftest.err conftest.$ac_objext \ |
| 7836 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7837 | LIBS=$ac_check_lib_save_LIBS |
| 7838 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7839 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7840 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6 |
| 7841 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7842 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7843 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7844 | #define HAVE_LIBXXF86VM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7845 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7846 | |
| 7847 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7848 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7849 | fi |
| 7850 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7851 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7852 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7853 | if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" |
| 7854 | then |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 7855 | cat >conftest.$ac_ext <<_ACEOF |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 7856 | /* confdefs.h. */ |
| 7857 | _ACEOF |
| 7858 | cat confdefs.h >>conftest.$ac_ext |
| 7859 | cat >>conftest.$ac_ext <<_ACEOF |
| 7860 | /* end confdefs.h. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 7861 | #include <X11/Xlib.h> |
| 7862 | #include <X11/extensions/Xrandr.h> |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 7863 | int |
| 7864 | main () |
| 7865 | { |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 7866 | static typeof(XRRSetScreenConfigAndRate) * func; |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 7867 | ; |
| 7868 | return 0; |
| 7869 | } |
| 7870 | _ACEOF |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 7871 | rm -f conftest.$ac_objext |
| 7872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7873 | (eval $ac_compile) 2>conftest.er1 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 7874 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7876 | rm -f conftest.er1 |
| 7877 | cat conftest.err >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 7878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7879 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7880 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7882 | (eval $ac_try) 2>&5 |
| 7883 | ac_status=$? |
| 7884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7885 | (exit $ac_status); }; } && |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 7886 | { ac_try='test -s conftest.$ac_objext' |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 7887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7888 | (eval $ac_try) 2>&5 |
| 7889 | ac_status=$? |
| 7890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7891 | (exit $ac_status); }; }; then |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 7892 | |
| 7893 | cat >>confdefs.h <<\_ACEOF |
| 7894 | #define HAVE_LIBXRANDR 1 |
| 7895 | _ACEOF |
| 7896 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 7897 | else |
| 7898 | echo "$as_me: failed program was:" >&5 |
| 7899 | sed 's/^/| /' conftest.$ac_ext >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 7900 | |
| 7901 | fi |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 7902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7903 | fi |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 7904 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7905 | if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes" |
| 7906 | then |
| 7907 | echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7908 | echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6 |
| 7909 | if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then |
| 7910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7911 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7912 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7913 | LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7914 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7915 | /* confdefs.h. */ |
| 7916 | _ACEOF |
| 7917 | cat confdefs.h >>conftest.$ac_ext |
| 7918 | cat >>conftest.$ac_ext <<_ACEOF |
| 7919 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7920 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7921 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7922 | #ifdef __cplusplus |
| 7923 | extern "C" |
| 7924 | #endif |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7925 | /* 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] | 7926 | builtin and then its argument prototype would still apply. */ |
| 7927 | char XvShmCreateImage (); |
| 7928 | int |
| 7929 | main () |
| 7930 | { |
| 7931 | XvShmCreateImage (); |
| 7932 | ; |
| 7933 | return 0; |
| 7934 | } |
| 7935 | _ACEOF |
| 7936 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7938 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7939 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7941 | rm -f conftest.er1 |
| 7942 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7944 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7945 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7947 | (eval $ac_try) 2>&5 |
| 7948 | ac_status=$? |
| 7949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7950 | (exit $ac_status); }; } && |
| 7951 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7953 | (eval $ac_try) 2>&5 |
| 7954 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7956 | (exit $ac_status); }; }; then |
| 7957 | ac_cv_lib_Xv_XvShmCreateImage=yes |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7958 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7959 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7961 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7962 | ac_cv_lib_Xv_XvShmCreateImage=no |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7963 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7964 | rm -f conftest.err conftest.$ac_objext \ |
| 7965 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7966 | LIBS=$ac_check_lib_save_LIBS |
| 7967 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7968 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7969 | echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6 |
| 7970 | if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7971 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7972 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7973 | #define HAVE_XVIDEO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7974 | _ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7975 | |
| 7976 | X_PRE_LIBS="$X_PRE_LIBS -lXv" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7977 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7978 | fi |
| 7979 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7980 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7981 | |
| 7982 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7983 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7984 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7985 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7986 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 7987 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7988 | then |
Francois Gouget | 42dcd97 | 2002-01-29 17:52:28 +0000 | [diff] [blame] | 7989 | 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] | 7990 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7991 | { { 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] | 7992 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
| 7993 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 7994 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} |
| 7995 | { (exit 1); exit 1; }; } |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 7996 | fi |
| 7997 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7998 | |
| 7999 | |
| 8000 | for ac_header in GL/gl.h GL/glx.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8001 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8002 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8003 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8004 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8005 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8006 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8008 | fi |
| 8009 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8010 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8011 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8012 | # Is the header compilable? |
| 8013 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8014 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8015 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8016 | /* confdefs.h. */ |
| 8017 | _ACEOF |
| 8018 | cat confdefs.h >>conftest.$ac_ext |
| 8019 | cat >>conftest.$ac_ext <<_ACEOF |
| 8020 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8021 | $ac_includes_default |
| 8022 | #include <$ac_header> |
| 8023 | _ACEOF |
| 8024 | rm -f conftest.$ac_objext |
| 8025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8026 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8027 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8028 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8029 | rm -f conftest.er1 |
| 8030 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8032 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8033 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8035 | (eval $ac_try) 2>&5 |
| 8036 | ac_status=$? |
| 8037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8038 | (exit $ac_status); }; } && |
| 8039 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8041 | (eval $ac_try) 2>&5 |
| 8042 | ac_status=$? |
| 8043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8044 | (exit $ac_status); }; }; then |
| 8045 | ac_header_compiler=yes |
| 8046 | else |
| 8047 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8049 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8050 | ac_header_compiler=no |
| 8051 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8053 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8054 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8055 | |
| 8056 | # Is the header present? |
| 8057 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8058 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8059 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8060 | /* confdefs.h. */ |
| 8061 | _ACEOF |
| 8062 | cat confdefs.h >>conftest.$ac_ext |
| 8063 | cat >>conftest.$ac_ext <<_ACEOF |
| 8064 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8065 | #include <$ac_header> |
| 8066 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8067 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8068 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8069 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8070 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8071 | rm -f conftest.er1 |
| 8072 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8074 | (exit $ac_status); } >/dev/null; then |
| 8075 | if test -s conftest.err; then |
| 8076 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8077 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8078 | else |
| 8079 | ac_cpp_err= |
| 8080 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8081 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8082 | ac_cpp_err=yes |
| 8083 | fi |
| 8084 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8085 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8086 | else |
| 8087 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8089 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8090 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8091 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8092 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8093 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8094 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8095 | |
| 8096 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8097 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8098 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8099 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8100 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8101 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8102 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8103 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8104 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8105 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8106 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8107 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8108 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8109 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8110 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8111 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8112 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8113 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8114 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8115 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8116 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8117 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8118 | ( |
| 8119 | cat <<\_ASBOX |
| 8120 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8121 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8122 | ## ------------------------------------ ## |
| 8123 | _ASBOX |
| 8124 | ) | |
| 8125 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8126 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8127 | esac |
| 8128 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8129 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8132 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8133 | eval "$as_ac_Header=\$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8134 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8135 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8136 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8137 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8138 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8139 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8140 | cat >>confdefs.h <<_ACEOF |
| 8141 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8142 | _ACEOF |
| 8143 | |
| 8144 | fi |
| 8145 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8146 | done |
| 8147 | |
Marcus Meissner | 22a969b | 2000-08-08 20:46:50 +0000 | [diff] [blame] | 8148 | 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] | 8149 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8150 | |
| 8151 | for ac_header in GL/glext.h |
| 8152 | do |
| 8153 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8154 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8155 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8156 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8158 | else |
| 8159 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8160 | /* confdefs.h. */ |
| 8161 | _ACEOF |
| 8162 | cat confdefs.h >>conftest.$ac_ext |
| 8163 | cat >>conftest.$ac_ext <<_ACEOF |
| 8164 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8165 | #include <GL/glx.h> |
| 8166 | |
| 8167 | #include <$ac_header> |
| 8168 | _ACEOF |
| 8169 | rm -f conftest.$ac_objext |
| 8170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8171 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8172 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8173 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8174 | rm -f conftest.er1 |
| 8175 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8177 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8178 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8180 | (eval $ac_try) 2>&5 |
| 8181 | ac_status=$? |
| 8182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8183 | (exit $ac_status); }; } && |
| 8184 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8186 | (eval $ac_try) 2>&5 |
| 8187 | ac_status=$? |
| 8188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8189 | (exit $ac_status); }; }; then |
| 8190 | eval "$as_ac_Header=yes" |
| 8191 | else |
| 8192 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8194 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8195 | eval "$as_ac_Header=no" |
| 8196 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8198 | fi |
| 8199 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8200 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8201 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8202 | cat >>confdefs.h <<_ACEOF |
| 8203 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8204 | _ACEOF |
| 8205 | |
| 8206 | fi |
| 8207 | |
| 8208 | done |
| 8209 | |
| 8210 | echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8211 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6 |
| 8212 | if test "${wine_cv_opengl_version_OK+set}" = set; then |
| 8213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8214 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8215 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8216 | /* confdefs.h. */ |
| 8217 | _ACEOF |
| 8218 | cat confdefs.h >>conftest.$ac_ext |
| 8219 | cat >>conftest.$ac_ext <<_ACEOF |
| 8220 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8221 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8222 | int |
| 8223 | main () |
| 8224 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8225 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8226 | ; |
| 8227 | return 0; |
| 8228 | } |
| 8229 | _ACEOF |
| 8230 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8232 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8233 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8235 | rm -f conftest.er1 |
| 8236 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8238 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8241 | (eval $ac_try) 2>&5 |
| 8242 | ac_status=$? |
| 8243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8244 | (exit $ac_status); }; } && |
| 8245 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8247 | (eval $ac_try) 2>&5 |
| 8248 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8250 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8251 | wine_cv_opengl_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8252 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8253 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8254 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8255 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8256 | wine_cv_opengl_version_OK="no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8257 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8258 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8260 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8261 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8262 | echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8263 | echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6 |
| 8264 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 8265 | if test "$wine_cv_opengl_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8266 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8267 | echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8268 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6 |
| 8269 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
| 8270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8271 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8272 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 8273 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8274 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8275 | /* confdefs.h. */ |
| 8276 | _ACEOF |
| 8277 | cat confdefs.h >>conftest.$ac_ext |
| 8278 | cat >>conftest.$ac_ext <<_ACEOF |
| 8279 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8280 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8281 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8282 | #ifdef __cplusplus |
| 8283 | extern "C" |
| 8284 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8285 | /* 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] | 8286 | builtin and then its argument prototype would still apply. */ |
| 8287 | char glXCreateContext (); |
| 8288 | int |
| 8289 | main () |
| 8290 | { |
| 8291 | glXCreateContext (); |
| 8292 | ; |
| 8293 | return 0; |
| 8294 | } |
| 8295 | _ACEOF |
| 8296 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8298 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8299 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8301 | rm -f conftest.er1 |
| 8302 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8304 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8307 | (eval $ac_try) 2>&5 |
| 8308 | ac_status=$? |
| 8309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8310 | (exit $ac_status); }; } && |
| 8311 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8313 | (eval $ac_try) 2>&5 |
| 8314 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8316 | (exit $ac_status); }; }; then |
| 8317 | ac_cv_lib_GL_glXCreateContext=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8318 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8319 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8321 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8322 | ac_cv_lib_GL_glXCreateContext=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8323 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8324 | rm -f conftest.err conftest.$ac_objext \ |
| 8325 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8326 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8327 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8328 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8329 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6 |
| 8330 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8331 | OPENGL_LIBS="-lGL" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8332 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8333 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8334 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8335 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8336 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 8337 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 8338 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8339 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8340 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8341 | #define HAVE_OPENGL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8342 | _ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8343 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8344 | |
| 8345 | echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8346 | echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6 |
| 8347 | if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then |
| 8348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8349 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8350 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8351 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8352 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8353 | /* confdefs.h. */ |
| 8354 | _ACEOF |
| 8355 | cat confdefs.h >>conftest.$ac_ext |
| 8356 | cat >>conftest.$ac_ext <<_ACEOF |
| 8357 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8358 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8359 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8360 | #ifdef __cplusplus |
| 8361 | extern "C" |
| 8362 | #endif |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8363 | /* 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] | 8364 | builtin and then its argument prototype would still apply. */ |
| 8365 | char glXGetProcAddressARB (); |
| 8366 | int |
| 8367 | main () |
| 8368 | { |
| 8369 | glXGetProcAddressARB (); |
| 8370 | ; |
| 8371 | return 0; |
| 8372 | } |
| 8373 | _ACEOF |
| 8374 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8376 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8377 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8379 | rm -f conftest.er1 |
| 8380 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8382 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8383 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8385 | (eval $ac_try) 2>&5 |
| 8386 | ac_status=$? |
| 8387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8388 | (exit $ac_status); }; } && |
| 8389 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8391 | (eval $ac_try) 2>&5 |
| 8392 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8394 | (exit $ac_status); }; }; then |
| 8395 | ac_cv_lib_GL_glXGetProcAddressARB=yes |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8396 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8397 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8399 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8400 | ac_cv_lib_GL_glXGetProcAddressARB=no |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8401 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8402 | rm -f conftest.err conftest.$ac_objext \ |
| 8403 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8404 | LIBS=$ac_check_lib_save_LIBS |
| 8405 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8406 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8407 | echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6 |
| 8408 | if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8409 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8410 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8411 | #define HAVE_GLX_GETPROCADDRESS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8412 | _ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8413 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8414 | fi |
| 8415 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8416 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8417 | if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8418 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8419 | echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8420 | echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6 |
| 8421 | if test "${wine_cv_extension_prototypes+set}" = set; then |
| 8422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8423 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8424 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8425 | /* confdefs.h. */ |
| 8426 | _ACEOF |
| 8427 | cat confdefs.h >>conftest.$ac_ext |
| 8428 | cat >>conftest.$ac_ext <<_ACEOF |
| 8429 | /* end confdefs.h. */ |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8430 | #include <GL/gl.h> |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8431 | #ifdef HAVE_GL_GLEXT_H |
| 8432 | # include <GL/glext.h> |
| 8433 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8434 | |
| 8435 | int |
| 8436 | main () |
| 8437 | { |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8438 | PFNGLCOLORTABLEEXTPROC test_proc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8439 | ; |
| 8440 | return 0; |
| 8441 | } |
| 8442 | _ACEOF |
| 8443 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8445 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8446 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8448 | rm -f conftest.er1 |
| 8449 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8451 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8454 | (eval $ac_try) 2>&5 |
| 8455 | ac_status=$? |
| 8456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8457 | (exit $ac_status); }; } && |
| 8458 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8460 | (eval $ac_try) 2>&5 |
| 8461 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8463 | (exit $ac_status); }; }; then |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8464 | wine_cv_extension_prototypes="yes" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8465 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8466 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8468 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8469 | wine_cv_extension_prototypes="no" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 8470 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8471 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8473 | |
| 8474 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8475 | echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8476 | echo "${ECHO_T}$wine_cv_extension_prototypes" >&6 |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8477 | if test "$wine_cv_extension_prototypes" = "yes" |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8478 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8479 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8480 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8481 | #define HAVE_GLEXT_PROTOTYPES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8482 | _ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 8483 | |
| 8484 | fi |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8485 | fi |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 8486 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8487 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8488 | echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8489 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6 |
| 8490 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
| 8491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8492 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8493 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8494 | 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] | 8495 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8496 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8497 | /* confdefs.h. */ |
| 8498 | _ACEOF |
| 8499 | cat confdefs.h >>conftest.$ac_ext |
| 8500 | cat >>conftest.$ac_ext <<_ACEOF |
| 8501 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8502 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8503 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8504 | #ifdef __cplusplus |
| 8505 | extern "C" |
| 8506 | #endif |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8507 | /* 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] | 8508 | builtin and then its argument prototype would still apply. */ |
| 8509 | char gluLookAt (); |
| 8510 | int |
| 8511 | main () |
| 8512 | { |
| 8513 | gluLookAt (); |
| 8514 | ; |
| 8515 | return 0; |
| 8516 | } |
| 8517 | _ACEOF |
| 8518 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8520 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8521 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8523 | rm -f conftest.er1 |
| 8524 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8526 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8529 | (eval $ac_try) 2>&5 |
| 8530 | ac_status=$? |
| 8531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8532 | (exit $ac_status); }; } && |
| 8533 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8535 | (eval $ac_try) 2>&5 |
| 8536 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8538 | (exit $ac_status); }; }; then |
| 8539 | ac_cv_lib_GLU_gluLookAt=yes |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8540 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8541 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8543 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8544 | ac_cv_lib_GLU_gluLookAt=no |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8545 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8546 | rm -f conftest.err conftest.$ac_objext \ |
| 8547 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8548 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8549 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8550 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8551 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6 |
| 8552 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8553 | OPENGL_LIBS="$OPENGL_LIBS -lGLU" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8554 | GLU32FILES='$(GLU32FILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8555 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8556 | fi |
| 8557 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8558 | fi |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8559 | |
| 8560 | echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5 |
| 8561 | echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6 |
| 8562 | if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then |
| 8563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8564 | else |
| 8565 | ac_check_lib_save_LIBS=$LIBS |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 8566 | LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS" |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8567 | cat >conftest.$ac_ext <<_ACEOF |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8568 | /* confdefs.h. */ |
| 8569 | _ACEOF |
| 8570 | cat confdefs.h >>conftest.$ac_ext |
| 8571 | cat >>conftest.$ac_ext <<_ACEOF |
| 8572 | /* end confdefs.h. */ |
| 8573 | |
| 8574 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8575 | #ifdef __cplusplus |
| 8576 | extern "C" |
| 8577 | #endif |
| 8578 | /* We use char because int might match the return type of a gcc2 |
| 8579 | builtin and then its argument prototype would still apply. */ |
| 8580 | char glutMainLoop (); |
| 8581 | int |
| 8582 | main () |
| 8583 | { |
| 8584 | glutMainLoop (); |
| 8585 | ; |
| 8586 | return 0; |
| 8587 | } |
| 8588 | _ACEOF |
| 8589 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8591 | (eval $ac_link) 2>conftest.er1 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8592 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8594 | rm -f conftest.er1 |
| 8595 | cat conftest.err >&5 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8597 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8600 | (eval $ac_try) 2>&5 |
| 8601 | ac_status=$? |
| 8602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8603 | (exit $ac_status); }; } && |
| 8604 | { ac_try='test -s conftest$ac_exeext' |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8606 | (eval $ac_try) 2>&5 |
| 8607 | ac_status=$? |
| 8608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8609 | (exit $ac_status); }; }; then |
| 8610 | ac_cv_lib_glut_glutMainLoop=yes |
| 8611 | else |
| 8612 | echo "$as_me: failed program was:" >&5 |
| 8613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8614 | |
| 8615 | ac_cv_lib_glut_glutMainLoop=no |
| 8616 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8617 | rm -f conftest.err conftest.$ac_objext \ |
| 8618 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8619 | LIBS=$ac_check_lib_save_LIBS |
| 8620 | fi |
| 8621 | echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5 |
| 8622 | echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6 |
| 8623 | if test $ac_cv_lib_glut_glutMainLoop = yes; then |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 8624 | GLUT_LIBS="-lglut -lXmu -lXi" |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8625 | |
| 8626 | GLUT32FILES='$(GLUT32FILES)' |
| 8627 | |
| 8628 | fi |
| 8629 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8630 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8631 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 8632 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8633 | NASLIBS="" |
| 8634 | |
| 8635 | |
| 8636 | for ac_header in audio/audiolib.h |
| 8637 | do |
| 8638 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8639 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8640 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8641 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8642 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8644 | fi |
| 8645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8646 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8647 | else |
| 8648 | # Is the header compilable? |
| 8649 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8650 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8651 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8652 | /* confdefs.h. */ |
| 8653 | _ACEOF |
| 8654 | cat confdefs.h >>conftest.$ac_ext |
| 8655 | cat >>conftest.$ac_ext <<_ACEOF |
| 8656 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8657 | $ac_includes_default |
| 8658 | #include <$ac_header> |
| 8659 | _ACEOF |
| 8660 | rm -f conftest.$ac_objext |
| 8661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8662 | (eval $ac_compile) 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8663 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8665 | rm -f conftest.er1 |
| 8666 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8668 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8671 | (eval $ac_try) 2>&5 |
| 8672 | ac_status=$? |
| 8673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8674 | (exit $ac_status); }; } && |
| 8675 | { ac_try='test -s conftest.$ac_objext' |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8677 | (eval $ac_try) 2>&5 |
| 8678 | ac_status=$? |
| 8679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8680 | (exit $ac_status); }; }; then |
| 8681 | ac_header_compiler=yes |
| 8682 | else |
| 8683 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8685 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8686 | ac_header_compiler=no |
| 8687 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8689 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8690 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8691 | |
| 8692 | # Is the header present? |
| 8693 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8694 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8695 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8696 | /* confdefs.h. */ |
| 8697 | _ACEOF |
| 8698 | cat confdefs.h >>conftest.$ac_ext |
| 8699 | cat >>conftest.$ac_ext <<_ACEOF |
| 8700 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8701 | #include <$ac_header> |
| 8702 | _ACEOF |
| 8703 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8704 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8705 | ac_status=$? |
| 8706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8707 | rm -f conftest.er1 |
| 8708 | cat conftest.err >&5 |
| 8709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8710 | (exit $ac_status); } >/dev/null; then |
| 8711 | if test -s conftest.err; then |
| 8712 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8713 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8714 | else |
| 8715 | ac_cpp_err= |
| 8716 | fi |
| 8717 | else |
| 8718 | ac_cpp_err=yes |
| 8719 | fi |
| 8720 | if test -z "$ac_cpp_err"; then |
| 8721 | ac_header_preproc=yes |
| 8722 | else |
| 8723 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8725 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8726 | ac_header_preproc=no |
| 8727 | fi |
| 8728 | rm -f conftest.err conftest.$ac_ext |
| 8729 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8730 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8731 | |
| 8732 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8733 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8734 | yes:no: ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8735 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8736 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8737 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8738 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8739 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8740 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8741 | no:yes:* ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8742 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8743 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8744 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8745 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8746 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8747 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8748 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8749 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8750 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8751 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8752 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8753 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8754 | ( |
| 8755 | cat <<\_ASBOX |
| 8756 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8757 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8758 | ## ------------------------------------ ## |
| 8759 | _ASBOX |
| 8760 | ) | |
| 8761 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8762 | ;; |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8763 | esac |
| 8764 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8765 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8766 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8768 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8769 | eval "$as_ac_Header=\$ac_header_preproc" |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8770 | fi |
| 8771 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8772 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8773 | |
| 8774 | fi |
| 8775 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8776 | cat >>confdefs.h <<_ACEOF |
| 8777 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8778 | _ACEOF |
| 8779 | |
| 8780 | for ac_header in audio/soundlib.h |
| 8781 | do |
| 8782 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8783 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8784 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8785 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8787 | else |
| 8788 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8789 | /* confdefs.h. */ |
| 8790 | _ACEOF |
| 8791 | cat confdefs.h >>conftest.$ac_ext |
| 8792 | cat >>conftest.$ac_ext <<_ACEOF |
| 8793 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8794 | #include <audio/audiolib.h> |
| 8795 | |
| 8796 | #include <$ac_header> |
| 8797 | _ACEOF |
| 8798 | rm -f conftest.$ac_objext |
| 8799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8800 | (eval $ac_compile) 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8801 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8803 | rm -f conftest.er1 |
| 8804 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8806 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8807 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8809 | (eval $ac_try) 2>&5 |
| 8810 | ac_status=$? |
| 8811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8812 | (exit $ac_status); }; } && |
| 8813 | { ac_try='test -s conftest.$ac_objext' |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8815 | (eval $ac_try) 2>&5 |
| 8816 | ac_status=$? |
| 8817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8818 | (exit $ac_status); }; }; then |
| 8819 | eval "$as_ac_Header=yes" |
| 8820 | else |
| 8821 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8823 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8824 | eval "$as_ac_Header=no" |
| 8825 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8827 | fi |
| 8828 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8829 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8830 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8831 | cat >>confdefs.h <<_ACEOF |
| 8832 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8833 | _ACEOF |
| 8834 | |
| 8835 | fi |
| 8836 | |
| 8837 | done |
| 8838 | |
| 8839 | echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5 |
| 8840 | echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6 |
| 8841 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then |
| 8842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8843 | else |
| 8844 | ac_check_lib_save_LIBS=$LIBS |
| 8845 | LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 8846 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8847 | /* confdefs.h. */ |
| 8848 | _ACEOF |
| 8849 | cat confdefs.h >>conftest.$ac_ext |
| 8850 | cat >>conftest.$ac_ext <<_ACEOF |
| 8851 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8852 | |
| 8853 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8854 | #ifdef __cplusplus |
| 8855 | extern "C" |
| 8856 | #endif |
| 8857 | /* We use char because int might match the return type of a gcc2 |
| 8858 | builtin and then its argument prototype would still apply. */ |
| 8859 | char AuCreateFlow (); |
| 8860 | int |
| 8861 | main () |
| 8862 | { |
| 8863 | AuCreateFlow (); |
| 8864 | ; |
| 8865 | return 0; |
| 8866 | } |
| 8867 | _ACEOF |
| 8868 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8870 | (eval $ac_link) 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8871 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8873 | rm -f conftest.er1 |
| 8874 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8876 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8877 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8879 | (eval $ac_try) 2>&5 |
| 8880 | ac_status=$? |
| 8881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8882 | (exit $ac_status); }; } && |
| 8883 | { ac_try='test -s conftest$ac_exeext' |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8885 | (eval $ac_try) 2>&5 |
| 8886 | ac_status=$? |
| 8887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8888 | (exit $ac_status); }; }; then |
| 8889 | ac_cv_lib_audio_AuCreateFlow=yes |
| 8890 | else |
| 8891 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8893 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8894 | ac_cv_lib_audio_AuCreateFlow=no |
| 8895 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8896 | rm -f conftest.err conftest.$ac_objext \ |
| 8897 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8898 | LIBS=$ac_check_lib_save_LIBS |
| 8899 | fi |
| 8900 | echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
| 8901 | echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6 |
| 8902 | if test $ac_cv_lib_audio_AuCreateFlow = yes; then |
| 8903 | |
| 8904 | cat >>confdefs.h <<\_ACEOF |
| 8905 | #define HAVE_NAS 1 |
| 8906 | _ACEOF |
| 8907 | |
| 8908 | NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS" |
| 8909 | fi |
| 8910 | |
| 8911 | fi |
| 8912 | |
| 8913 | done |
| 8914 | |
| 8915 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 8916 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 8917 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 8918 | else |
| 8919 | XLIB="" |
| 8920 | X_CFLAGS="" |
| 8921 | X_LIBS="" |
| 8922 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 8923 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8924 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8925 | if test "x$with_curses" != "xno" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 8926 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8927 | |
| 8928 | for ac_header in ncurses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8929 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8930 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8931 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8932 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8933 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8934 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8936 | fi |
| 8937 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8938 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8939 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8940 | # Is the header compilable? |
| 8941 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8942 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8943 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8944 | /* confdefs.h. */ |
| 8945 | _ACEOF |
| 8946 | cat confdefs.h >>conftest.$ac_ext |
| 8947 | cat >>conftest.$ac_ext <<_ACEOF |
| 8948 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8949 | $ac_includes_default |
| 8950 | #include <$ac_header> |
| 8951 | _ACEOF |
| 8952 | rm -f conftest.$ac_objext |
| 8953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8954 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8955 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8957 | rm -f conftest.er1 |
| 8958 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8960 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8961 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8963 | (eval $ac_try) 2>&5 |
| 8964 | ac_status=$? |
| 8965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8966 | (exit $ac_status); }; } && |
| 8967 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8969 | (eval $ac_try) 2>&5 |
| 8970 | ac_status=$? |
| 8971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8972 | (exit $ac_status); }; }; then |
| 8973 | ac_header_compiler=yes |
| 8974 | else |
| 8975 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8977 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8978 | ac_header_compiler=no |
| 8979 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8981 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8982 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8983 | |
| 8984 | # Is the header present? |
| 8985 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8986 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8987 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8988 | /* confdefs.h. */ |
| 8989 | _ACEOF |
| 8990 | cat confdefs.h >>conftest.$ac_ext |
| 8991 | cat >>conftest.$ac_ext <<_ACEOF |
| 8992 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8993 | #include <$ac_header> |
| 8994 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8995 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8996 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8997 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8998 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8999 | rm -f conftest.er1 |
| 9000 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9002 | (exit $ac_status); } >/dev/null; then |
| 9003 | if test -s conftest.err; then |
| 9004 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9005 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9006 | else |
| 9007 | ac_cpp_err= |
| 9008 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9009 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9010 | ac_cpp_err=yes |
| 9011 | fi |
| 9012 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9013 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9014 | else |
| 9015 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9017 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9018 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9019 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9020 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9021 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9022 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9023 | |
| 9024 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9025 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9026 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9027 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9028 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9030 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9031 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9032 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9033 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9034 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9035 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9036 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9037 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9038 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9039 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9040 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9041 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9043 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9044 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9045 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9046 | ( |
| 9047 | cat <<\_ASBOX |
| 9048 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9049 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9050 | ## ------------------------------------ ## |
| 9051 | _ASBOX |
| 9052 | ) | |
| 9053 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9054 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9055 | esac |
| 9056 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9057 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9058 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9060 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9061 | eval "$as_ac_Header=\$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9062 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9063 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9064 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9065 | |
| 9066 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9067 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9068 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9069 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9070 | _ACEOF |
| 9071 | echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9072 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6 |
| 9073 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
| 9074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9075 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9076 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9077 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9078 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9079 | /* confdefs.h. */ |
| 9080 | _ACEOF |
| 9081 | cat confdefs.h >>conftest.$ac_ext |
| 9082 | cat >>conftest.$ac_ext <<_ACEOF |
| 9083 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9084 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9085 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9086 | #ifdef __cplusplus |
| 9087 | extern "C" |
| 9088 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9089 | /* 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] | 9090 | builtin and then its argument prototype would still apply. */ |
| 9091 | char waddch (); |
| 9092 | int |
| 9093 | main () |
| 9094 | { |
| 9095 | waddch (); |
| 9096 | ; |
| 9097 | return 0; |
| 9098 | } |
| 9099 | _ACEOF |
| 9100 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9102 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9103 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9105 | rm -f conftest.er1 |
| 9106 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9108 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9109 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9111 | (eval $ac_try) 2>&5 |
| 9112 | ac_status=$? |
| 9113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9114 | (exit $ac_status); }; } && |
| 9115 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9117 | (eval $ac_try) 2>&5 |
| 9118 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9120 | (exit $ac_status); }; }; then |
| 9121 | ac_cv_lib_ncurses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9122 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9123 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9125 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9126 | ac_cv_lib_ncurses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9127 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9128 | rm -f conftest.err conftest.$ac_objext \ |
| 9129 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9130 | LIBS=$ac_check_lib_save_LIBS |
| 9131 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9132 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9133 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6 |
| 9134 | if test $ac_cv_lib_ncurses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9135 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9136 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9137 | #define HAVE_LIBNCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9138 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9139 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9140 | CURSESLIBS="-lncurses" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9141 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9142 | |
| 9143 | for ac_header in curses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9144 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9145 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9146 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9147 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9148 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9149 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9151 | fi |
| 9152 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9153 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9154 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9155 | # Is the header compilable? |
| 9156 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9157 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9158 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9159 | /* confdefs.h. */ |
| 9160 | _ACEOF |
| 9161 | cat confdefs.h >>conftest.$ac_ext |
| 9162 | cat >>conftest.$ac_ext <<_ACEOF |
| 9163 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9164 | $ac_includes_default |
| 9165 | #include <$ac_header> |
| 9166 | _ACEOF |
| 9167 | rm -f conftest.$ac_objext |
| 9168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9169 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9170 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9172 | rm -f conftest.er1 |
| 9173 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9175 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9176 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9178 | (eval $ac_try) 2>&5 |
| 9179 | ac_status=$? |
| 9180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9181 | (exit $ac_status); }; } && |
| 9182 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9184 | (eval $ac_try) 2>&5 |
| 9185 | ac_status=$? |
| 9186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9187 | (exit $ac_status); }; }; then |
| 9188 | ac_header_compiler=yes |
| 9189 | else |
| 9190 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9192 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9193 | ac_header_compiler=no |
| 9194 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9196 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9197 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9198 | |
| 9199 | # Is the header present? |
| 9200 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9201 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9202 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9203 | /* confdefs.h. */ |
| 9204 | _ACEOF |
| 9205 | cat confdefs.h >>conftest.$ac_ext |
| 9206 | cat >>conftest.$ac_ext <<_ACEOF |
| 9207 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9208 | #include <$ac_header> |
| 9209 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9210 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9211 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9212 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9213 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9214 | rm -f conftest.er1 |
| 9215 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9217 | (exit $ac_status); } >/dev/null; then |
| 9218 | if test -s conftest.err; then |
| 9219 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9220 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9221 | else |
| 9222 | ac_cpp_err= |
| 9223 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9224 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9225 | ac_cpp_err=yes |
| 9226 | fi |
| 9227 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9228 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9229 | else |
| 9230 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9232 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9233 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9234 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9235 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9236 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9237 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9238 | |
| 9239 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9240 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9241 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9242 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9243 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9244 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9245 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9246 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9247 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9248 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9249 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9250 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9251 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9252 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9253 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9254 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9255 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9256 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9257 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9258 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9259 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9260 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9261 | ( |
| 9262 | cat <<\_ASBOX |
| 9263 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9264 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9265 | ## ------------------------------------ ## |
| 9266 | _ASBOX |
| 9267 | ) | |
| 9268 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9269 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9270 | esac |
| 9271 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9272 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9273 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9275 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9276 | eval "$as_ac_Header=\$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9277 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9278 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9279 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9280 | |
| 9281 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9282 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9283 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9284 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9285 | _ACEOF |
| 9286 | echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9287 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6 |
| 9288 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
| 9289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9290 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9291 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9292 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9293 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9294 | /* confdefs.h. */ |
| 9295 | _ACEOF |
| 9296 | cat confdefs.h >>conftest.$ac_ext |
| 9297 | cat >>conftest.$ac_ext <<_ACEOF |
| 9298 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9299 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9300 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9301 | #ifdef __cplusplus |
| 9302 | extern "C" |
| 9303 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9304 | /* 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] | 9305 | builtin and then its argument prototype would still apply. */ |
| 9306 | char waddch (); |
| 9307 | int |
| 9308 | main () |
| 9309 | { |
| 9310 | waddch (); |
| 9311 | ; |
| 9312 | return 0; |
| 9313 | } |
| 9314 | _ACEOF |
| 9315 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9317 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9318 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9320 | rm -f conftest.er1 |
| 9321 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9323 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9326 | (eval $ac_try) 2>&5 |
| 9327 | ac_status=$? |
| 9328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9329 | (exit $ac_status); }; } && |
| 9330 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9332 | (eval $ac_try) 2>&5 |
| 9333 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9335 | (exit $ac_status); }; }; then |
| 9336 | ac_cv_lib_curses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9337 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9338 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9340 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9341 | ac_cv_lib_curses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9342 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9343 | rm -f conftest.err conftest.$ac_objext \ |
| 9344 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9345 | LIBS=$ac_check_lib_save_LIBS |
| 9346 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9347 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9348 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6 |
| 9349 | if test $ac_cv_lib_curses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9350 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9351 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9352 | #define HAVE_LIBCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9353 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9354 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9355 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9356 | fi |
| 9357 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9358 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9359 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9360 | done |
| 9361 | |
| 9362 | fi |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9363 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9364 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9365 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9366 | done |
| 9367 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9368 | saved_libs="$LIBS" |
| 9369 | LIBS="$CURSESLIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9370 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9371 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9372 | for ac_func in getbkgd resizeterm |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9373 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9374 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9375 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9376 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9377 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9379 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9380 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9381 | /* confdefs.h. */ |
| 9382 | _ACEOF |
| 9383 | cat confdefs.h >>conftest.$ac_ext |
| 9384 | cat >>conftest.$ac_ext <<_ACEOF |
| 9385 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9386 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9387 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9388 | #define $ac_func innocuous_$ac_func |
| 9389 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9390 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9391 | which can conflict with char $ac_func (); below. |
| 9392 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9393 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9394 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9395 | #ifdef __STDC__ |
| 9396 | # include <limits.h> |
| 9397 | #else |
| 9398 | # include <assert.h> |
| 9399 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9400 | |
| 9401 | #undef $ac_func |
| 9402 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9403 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9404 | #ifdef __cplusplus |
| 9405 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9406 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9407 | #endif |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9408 | /* 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] | 9409 | builtin and then its argument prototype would still apply. */ |
| 9410 | char $ac_func (); |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9411 | /* The GNU C library defines this for functions which it implements |
| 9412 | to always fail with ENOSYS. Some functions are actually named |
| 9413 | something starting with __ and the normal name is an alias. */ |
| 9414 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9415 | choke me |
| 9416 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9417 | char (*f) () = $ac_func; |
| 9418 | #endif |
| 9419 | #ifdef __cplusplus |
| 9420 | } |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9421 | #endif |
| 9422 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9423 | int |
| 9424 | main () |
| 9425 | { |
| 9426 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9427 | ; |
| 9428 | return 0; |
| 9429 | } |
| 9430 | _ACEOF |
| 9431 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9433 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9434 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9435 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9436 | rm -f conftest.er1 |
| 9437 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9439 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9440 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9442 | (eval $ac_try) 2>&5 |
| 9443 | ac_status=$? |
| 9444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9445 | (exit $ac_status); }; } && |
| 9446 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9448 | (eval $ac_try) 2>&5 |
| 9449 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9451 | (exit $ac_status); }; }; then |
| 9452 | eval "$as_ac_var=yes" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9453 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9454 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9455 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9456 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9457 | eval "$as_ac_var=no" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9458 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9459 | rm -f conftest.err conftest.$ac_objext \ |
| 9460 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9461 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9462 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9463 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9464 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9465 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9466 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9467 | _ACEOF |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9468 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9469 | fi |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9470 | done |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9471 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9472 | LIBS="$saved_libs" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9473 | fi |
| 9474 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9475 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9476 | # Extract the first word of "sane-config", so it can be a program name with args. |
| 9477 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9478 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9480 | if test "${ac_cv_prog_sane_devel+set}" = set; then |
| 9481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9482 | else |
| 9483 | if test -n "$sane_devel"; then |
| 9484 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 9485 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9487 | for as_dir in $PATH |
| 9488 | do |
| 9489 | IFS=$as_save_IFS |
| 9490 | test -z "$as_dir" && as_dir=. |
| 9491 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9493 | ac_cv_prog_sane_devel="sane-config" |
| 9494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9495 | break 2 |
| 9496 | fi |
| 9497 | done |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9498 | done |
| 9499 | |
| 9500 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 9501 | fi |
| 9502 | fi |
| 9503 | sane_devel=$ac_cv_prog_sane_devel |
| 9504 | if test -n "$sane_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9505 | echo "$as_me:$LINENO: result: $sane_devel" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9506 | echo "${ECHO_T}$sane_devel" >&6 |
| 9507 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9508 | echo "$as_me:$LINENO: result: no" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9509 | echo "${ECHO_T}no" >&6 |
| 9510 | fi |
| 9511 | |
| 9512 | if test "$sane_devel" = "no" |
| 9513 | then |
| 9514 | SANELIBS="" |
| 9515 | SANEINCL="" |
| 9516 | else |
| 9517 | SANELIBS="`$sane_devel --libs`" |
| 9518 | SANEINCL="`$sane_devel --cflags`" |
| 9519 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9520 | ac_save_LIBS="$LIBS" |
| 9521 | CPPFLAGS="$CPPFLAGS $SANEINCL" |
| 9522 | LIBS="$LIBS $SANELIBS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9523 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 9524 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9525 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 9526 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 9527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9528 | fi |
| 9529 | echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 9530 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9531 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9532 | # Is the header compilable? |
| 9533 | echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 |
| 9534 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6 |
| 9535 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9536 | /* confdefs.h. */ |
| 9537 | _ACEOF |
| 9538 | cat confdefs.h >>conftest.$ac_ext |
| 9539 | cat >>conftest.$ac_ext <<_ACEOF |
| 9540 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9541 | $ac_includes_default |
| 9542 | #include <sane/sane.h> |
| 9543 | _ACEOF |
| 9544 | rm -f conftest.$ac_objext |
| 9545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9546 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9547 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9549 | rm -f conftest.er1 |
| 9550 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9552 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9553 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9555 | (eval $ac_try) 2>&5 |
| 9556 | ac_status=$? |
| 9557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9558 | (exit $ac_status); }; } && |
| 9559 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9561 | (eval $ac_try) 2>&5 |
| 9562 | ac_status=$? |
| 9563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9564 | (exit $ac_status); }; }; then |
| 9565 | ac_header_compiler=yes |
| 9566 | else |
| 9567 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9569 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9570 | ac_header_compiler=no |
| 9571 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9573 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9574 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9575 | |
| 9576 | # Is the header present? |
| 9577 | echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 |
| 9578 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6 |
| 9579 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9580 | /* confdefs.h. */ |
| 9581 | _ACEOF |
| 9582 | cat confdefs.h >>conftest.$ac_ext |
| 9583 | cat >>conftest.$ac_ext <<_ACEOF |
| 9584 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9585 | #include <sane/sane.h> |
| 9586 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9587 | 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] | 9588 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9589 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9590 | grep -v '^ *+' conftest.er1 >conftest.err |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9591 | rm -f conftest.er1 |
| 9592 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9594 | (exit $ac_status); } >/dev/null; then |
| 9595 | if test -s conftest.err; then |
| 9596 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9597 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9598 | else |
| 9599 | ac_cpp_err= |
| 9600 | fi |
| 9601 | else |
| 9602 | ac_cpp_err=yes |
| 9603 | fi |
| 9604 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9605 | ac_header_preproc=yes |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9606 | else |
| 9607 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9609 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9610 | ac_header_preproc=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9611 | fi |
| 9612 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9613 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9614 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9615 | |
| 9616 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9617 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9618 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9619 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9620 | echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9621 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5 |
| 9622 | echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;} |
| 9623 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9624 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9625 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9626 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 |
| 9627 | echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9628 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 |
| 9629 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} |
| 9630 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5 |
| 9631 | echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;} |
| 9632 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9633 | echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9634 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9635 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9636 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5 |
| 9637 | echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9638 | ( |
| 9639 | cat <<\_ASBOX |
| 9640 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9641 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9642 | ## ------------------------------------ ## |
| 9643 | _ASBOX |
| 9644 | ) | |
| 9645 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9646 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9647 | esac |
| 9648 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 9649 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 9650 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 9651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9652 | else |
| 9653 | ac_cv_header_sane_sane_h=$ac_header_preproc |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9654 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9655 | 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] | 9656 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9657 | |
| 9658 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9659 | if test $ac_cv_header_sane_sane_h = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9660 | echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9661 | echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6 |
| 9662 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then |
| 9663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9664 | else |
| 9665 | ac_check_lib_save_LIBS=$LIBS |
| 9666 | LIBS="-lsane $LIBS" |
| 9667 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9668 | /* confdefs.h. */ |
| 9669 | _ACEOF |
| 9670 | cat confdefs.h >>conftest.$ac_ext |
| 9671 | cat >>conftest.$ac_ext <<_ACEOF |
| 9672 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9673 | |
| 9674 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9675 | #ifdef __cplusplus |
| 9676 | extern "C" |
| 9677 | #endif |
| 9678 | /* We use char because int might match the return type of a gcc2 |
| 9679 | builtin and then its argument prototype would still apply. */ |
| 9680 | char sane_open (); |
| 9681 | int |
| 9682 | main () |
| 9683 | { |
| 9684 | sane_open (); |
| 9685 | ; |
| 9686 | return 0; |
| 9687 | } |
| 9688 | _ACEOF |
| 9689 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9691 | (eval $ac_link) 2>conftest.er1 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9692 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9693 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9694 | rm -f conftest.er1 |
| 9695 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9697 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9698 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9700 | (eval $ac_try) 2>&5 |
| 9701 | ac_status=$? |
| 9702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9703 | (exit $ac_status); }; } && |
| 9704 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9706 | (eval $ac_try) 2>&5 |
| 9707 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9709 | (exit $ac_status); }; }; then |
| 9710 | ac_cv_lib_sane_sane_open=yes |
| 9711 | else |
| 9712 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9713 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9714 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9715 | ac_cv_lib_sane_sane_open=no |
| 9716 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9717 | rm -f conftest.err conftest.$ac_objext \ |
| 9718 | conftest$ac_exeext conftest.$ac_ext |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9719 | LIBS=$ac_check_lib_save_LIBS |
| 9720 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9721 | 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] | 9722 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6 |
| 9723 | if test $ac_cv_lib_sane_sane_open = yes; then |
| 9724 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9725 | cat >>confdefs.h <<\_ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9726 | #define HAVE_SANE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9727 | _ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9728 | |
| 9729 | else |
| 9730 | SANELIBS="" |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 9731 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9732 | fi |
| 9733 | |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 9734 | else |
| 9735 | SANELIBS="" |
| 9736 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9737 | fi |
| 9738 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9739 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9740 | LIBS="$ac_save_LIBS" |
| 9741 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9742 | fi |
| 9743 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9744 | |
| 9745 | |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9746 | |
| 9747 | for ac_header in unicode/ubidi.h |
| 9748 | do |
| 9749 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9751 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9752 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9753 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9755 | fi |
| 9756 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9757 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9758 | else |
| 9759 | # Is the header compilable? |
| 9760 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9761 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9762 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9763 | /* confdefs.h. */ |
| 9764 | _ACEOF |
| 9765 | cat confdefs.h >>conftest.$ac_ext |
| 9766 | cat >>conftest.$ac_ext <<_ACEOF |
| 9767 | /* end confdefs.h. */ |
| 9768 | $ac_includes_default |
| 9769 | #include <$ac_header> |
| 9770 | _ACEOF |
| 9771 | rm -f conftest.$ac_objext |
| 9772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9773 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9774 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9776 | rm -f conftest.er1 |
| 9777 | cat conftest.err >&5 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9779 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9782 | (eval $ac_try) 2>&5 |
| 9783 | ac_status=$? |
| 9784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9785 | (exit $ac_status); }; } && |
| 9786 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9788 | (eval $ac_try) 2>&5 |
| 9789 | ac_status=$? |
| 9790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9791 | (exit $ac_status); }; }; then |
| 9792 | ac_header_compiler=yes |
| 9793 | else |
| 9794 | echo "$as_me: failed program was:" >&5 |
| 9795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9796 | |
| 9797 | ac_header_compiler=no |
| 9798 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9800 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9801 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9802 | |
| 9803 | # Is the header present? |
| 9804 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9805 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9806 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9807 | /* confdefs.h. */ |
| 9808 | _ACEOF |
| 9809 | cat confdefs.h >>conftest.$ac_ext |
| 9810 | cat >>conftest.$ac_ext <<_ACEOF |
| 9811 | /* end confdefs.h. */ |
| 9812 | #include <$ac_header> |
| 9813 | _ACEOF |
| 9814 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9815 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9816 | ac_status=$? |
| 9817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9818 | rm -f conftest.er1 |
| 9819 | cat conftest.err >&5 |
| 9820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9821 | (exit $ac_status); } >/dev/null; then |
| 9822 | if test -s conftest.err; then |
| 9823 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9824 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9825 | else |
| 9826 | ac_cpp_err= |
| 9827 | fi |
| 9828 | else |
| 9829 | ac_cpp_err=yes |
| 9830 | fi |
| 9831 | if test -z "$ac_cpp_err"; then |
| 9832 | ac_header_preproc=yes |
| 9833 | else |
| 9834 | echo "$as_me: failed program was:" >&5 |
| 9835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9836 | |
| 9837 | ac_header_preproc=no |
| 9838 | fi |
| 9839 | rm -f conftest.err conftest.$ac_ext |
| 9840 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9841 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9842 | |
| 9843 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9844 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9845 | yes:no: ) |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9846 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9847 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9848 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9849 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9850 | ac_header_preproc=yes |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9851 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9852 | no:yes:* ) |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9853 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9854 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9855 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9856 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9857 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9858 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9859 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9860 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9861 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9862 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9863 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9864 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9865 | ( |
| 9866 | cat <<\_ASBOX |
| 9867 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9868 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9869 | ## ------------------------------------ ## |
| 9870 | _ASBOX |
| 9871 | ) | |
| 9872 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9873 | ;; |
| 9874 | esac |
| 9875 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9877 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9879 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9880 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9881 | fi |
| 9882 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9883 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9884 | |
| 9885 | fi |
| 9886 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9887 | cat >>confdefs.h <<_ACEOF |
| 9888 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9889 | _ACEOF |
| 9890 | |
| 9891 | fi |
| 9892 | |
| 9893 | done |
| 9894 | |
| 9895 | if test "$ac_cv_header_unicode_ubidi_h" = "yes" |
| 9896 | then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 9897 | saved_libs="$LIBS" |
| 9898 | ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}" |
Shachar Shemesh | 9f2627e | 2004-04-06 20:13:21 +0000 | [diff] [blame] | 9899 | ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}" |
| 9900 | ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}" |
| 9901 | echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5 |
| 9902 | echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6 |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 9903 | LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s" |
| 9904 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9905 | /* confdefs.h. */ |
| 9906 | _ACEOF |
| 9907 | cat confdefs.h >>conftest.$ac_ext |
| 9908 | cat >>conftest.$ac_ext <<_ACEOF |
| 9909 | /* end confdefs.h. */ |
| 9910 | #include <unicode/ubidi.h> |
| 9911 | int |
| 9912 | main () |
| 9913 | { |
| 9914 | ubidi_open() |
| 9915 | ; |
| 9916 | return 0; |
| 9917 | } |
| 9918 | _ACEOF |
| 9919 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9921 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9922 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9924 | rm -f conftest.er1 |
| 9925 | cat conftest.err >&5 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9927 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9930 | (eval $ac_try) 2>&5 |
| 9931 | ac_status=$? |
| 9932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9933 | (exit $ac_status); }; } && |
| 9934 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9936 | (eval $ac_try) 2>&5 |
| 9937 | ac_status=$? |
| 9938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9939 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9940 | |
| 9941 | cat >>confdefs.h <<\_ACEOF |
| 9942 | #define HAVE_ICU 1 |
| 9943 | _ACEOF |
| 9944 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 9945 | ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9946 | |
Shachar Shemesh | 9f2627e | 2004-04-06 20:13:21 +0000 | [diff] [blame] | 9947 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9948 | echo "${ECHO_T}yes" >&6 |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 9949 | else |
| 9950 | echo "$as_me: failed program was:" >&5 |
| 9951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9952 | |
Shachar Shemesh | 9f2627e | 2004-04-06 20:13:21 +0000 | [diff] [blame] | 9953 | echo "$as_me:$LINENO: result: no" >&5 |
| 9954 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 9955 | fi |
| 9956 | rm -f conftest.err conftest.$ac_objext \ |
| 9957 | conftest$ac_exeext conftest.$ac_ext |
| 9958 | LIBS="$saved_libs" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9959 | fi |
| 9960 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9961 | echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9962 | echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6 |
| 9963 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 9964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9965 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9966 | ac_check_lib_save_LIBS=$LIBS |
Dmitry Timoshkov | 8871a11 | 2001-11-06 22:26:53 +0000 | [diff] [blame] | 9967 | LIBS="-lfreetype $X_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9968 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9969 | /* confdefs.h. */ |
| 9970 | _ACEOF |
| 9971 | cat confdefs.h >>conftest.$ac_ext |
| 9972 | cat >>conftest.$ac_ext <<_ACEOF |
| 9973 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9974 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9975 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9976 | #ifdef __cplusplus |
| 9977 | extern "C" |
| 9978 | #endif |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9979 | /* 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] | 9980 | builtin and then its argument prototype would still apply. */ |
| 9981 | char FT_Init_FreeType (); |
| 9982 | int |
| 9983 | main () |
| 9984 | { |
| 9985 | FT_Init_FreeType (); |
| 9986 | ; |
| 9987 | return 0; |
| 9988 | } |
| 9989 | _ACEOF |
| 9990 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9992 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9993 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9995 | rm -f conftest.er1 |
| 9996 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9998 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10001 | (eval $ac_try) 2>&5 |
| 10002 | ac_status=$? |
| 10003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10004 | (exit $ac_status); }; } && |
| 10005 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10007 | (eval $ac_try) 2>&5 |
| 10008 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10010 | (exit $ac_status); }; }; then |
| 10011 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10012 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10013 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10015 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10016 | ac_cv_lib_freetype_FT_Init_FreeType=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10017 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10018 | rm -f conftest.err conftest.$ac_objext \ |
| 10019 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10020 | LIBS=$ac_check_lib_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10021 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10022 | 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] | 10023 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6 |
| 10024 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10025 | ft_lib=yes |
| 10026 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10027 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10028 | fi |
| 10029 | |
| 10030 | if test "$ft_lib" = "no" |
| 10031 | then |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10032 | FREETYPELIBS="" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10033 | FREETYPEINCL="" |
| 10034 | wine_cv_msg_freetype=no |
| 10035 | else |
| 10036 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 10037 | set dummy freetype-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10038 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10040 | if test "${ac_cv_prog_ft_devel+set}" = set; then |
| 10041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10042 | else |
| 10043 | if test -n "$ft_devel"; then |
| 10044 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 10045 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10047 | for as_dir in $PATH |
| 10048 | do |
| 10049 | IFS=$as_save_IFS |
| 10050 | test -z "$as_dir" && as_dir=. |
| 10051 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10052 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10053 | ac_cv_prog_ft_devel="freetype-config" |
| 10054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10055 | break 2 |
| 10056 | fi |
| 10057 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10058 | done |
| 10059 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10060 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 10061 | fi |
| 10062 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10063 | ft_devel=$ac_cv_prog_ft_devel |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10064 | if test -n "$ft_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10065 | echo "$as_me:$LINENO: result: $ft_devel" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10066 | echo "${ECHO_T}$ft_devel" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10067 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10068 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10069 | echo "${ECHO_T}no" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10070 | fi |
| 10071 | |
| 10072 | if test "$ft_devel" = "no" |
| 10073 | then |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10074 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 10075 | set dummy freetype2-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10076 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10078 | if test "${ac_cv_prog_ft_devel2+set}" = set; then |
| 10079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10080 | else |
| 10081 | if test -n "$ft_devel2"; then |
| 10082 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 10083 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10085 | for as_dir in $PATH |
| 10086 | do |
| 10087 | IFS=$as_save_IFS |
| 10088 | test -z "$as_dir" && as_dir=. |
| 10089 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10090 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10091 | ac_cv_prog_ft_devel2="freetype2-config" |
| 10092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10093 | break 2 |
| 10094 | fi |
| 10095 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10096 | done |
| 10097 | |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10098 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 10099 | fi |
| 10100 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10101 | ft_devel2=$ac_cv_prog_ft_devel2 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10102 | if test -n "$ft_devel2"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10103 | echo "$as_me:$LINENO: result: $ft_devel2" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10104 | echo "${ECHO_T}$ft_devel2" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10105 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10106 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10107 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10108 | fi |
| 10109 | |
| 10110 | if test "$ft_devel2" = "freetype2-config" |
| 10111 | then |
| 10112 | ft_devel=$ft_devel2 |
| 10113 | fi |
| 10114 | fi |
| 10115 | if test "$ft_devel" = "no" |
| 10116 | then |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10117 | FREETYPELIBS="" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10118 | FREETYPEINCL="" |
| 10119 | wine_cv_msg_freetype=yes |
| 10120 | else |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10121 | FREETYPELIBS=`$ft_devel --libs` |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10122 | FREETYPEINCL=`$ft_devel --cflags` |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10123 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10124 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10125 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10126 | |
| 10127 | |
| 10128 | |
| 10129 | |
| 10130 | |
| 10131 | |
| 10132 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 10133 | |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 10134 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 10135 | for ac_header in ft2build.h \ |
| 10136 | freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10137 | freetype/ftglyph.h \ |
| 10138 | freetype/tttables.h \ |
| 10139 | freetype/ftnames.h \ |
| 10140 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 10141 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10142 | freetype/ftoutln.h \ |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 10143 | freetype/ftwinfnt.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10144 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10145 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10146 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10147 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10148 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10149 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10151 | else |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10152 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10153 | /* confdefs.h. */ |
| 10154 | _ACEOF |
| 10155 | cat confdefs.h >>conftest.$ac_ext |
| 10156 | cat >>conftest.$ac_ext <<_ACEOF |
| 10157 | /* end confdefs.h. */ |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10158 | #if HAVE_FT2BUILD_H |
| 10159 | #include <ft2build.h> |
| 10160 | #endif |
| 10161 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10162 | #include <$ac_header> |
| 10163 | _ACEOF |
| 10164 | rm -f conftest.$ac_objext |
| 10165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10166 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10167 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10169 | rm -f conftest.er1 |
| 10170 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10172 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10173 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10175 | (eval $ac_try) 2>&5 |
| 10176 | ac_status=$? |
| 10177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10178 | (exit $ac_status); }; } && |
| 10179 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10181 | (eval $ac_try) 2>&5 |
| 10182 | ac_status=$? |
| 10183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10184 | (exit $ac_status); }; }; then |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10185 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10186 | else |
| 10187 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10188 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10189 | |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10190 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10191 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10193 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10194 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10195 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10196 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10197 | cat >>confdefs.h <<_ACEOF |
| 10198 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10199 | _ACEOF |
| 10200 | |
| 10201 | fi |
| 10202 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10203 | done |
| 10204 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10205 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10206 | /* confdefs.h. */ |
| 10207 | _ACEOF |
| 10208 | cat confdefs.h >>conftest.$ac_ext |
| 10209 | cat >>conftest.$ac_ext <<_ACEOF |
| 10210 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10211 | #include <ft2build.h> |
| 10212 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10213 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10214 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10215 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10216 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10217 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10218 | rm -f conftest.er1 |
| 10219 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10221 | (exit $ac_status); } >/dev/null; then |
| 10222 | if test -s conftest.err; then |
| 10223 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10224 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10225 | else |
| 10226 | ac_cpp_err= |
| 10227 | fi |
| 10228 | else |
| 10229 | ac_cpp_err=yes |
| 10230 | fi |
| 10231 | if test -z "$ac_cpp_err"; then |
| 10232 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10233 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10234 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10235 | _ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10236 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10237 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10238 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10239 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10241 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10242 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10243 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10244 | rm -f conftest.err conftest.$ac_ext |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10245 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10246 | 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] | 10247 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10248 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10249 | cat >>confdefs.h <<\_ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10250 | #define HAVE_FREETYPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10251 | _ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10252 | |
| 10253 | wine_cv_msg_freetype=no |
| 10254 | else |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10255 | FREETYPELIBS="" |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10256 | FREETYPEINCL="" |
| 10257 | wine_cv_msg_freetype=yes |
| 10258 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10259 | fi |
| 10260 | fi |
| 10261 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10262 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10263 | |
| 10264 | if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS" |
| 10265 | then |
| 10266 | FONTSSUBDIRS="fonts" |
| 10267 | |
| 10268 | fi |
| 10269 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10270 | echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10271 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6 |
| 10272 | if test "${ac_cv_c_ppdev+set}" = set; then |
| 10273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 10274 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10275 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10276 | /* confdefs.h. */ |
| 10277 | _ACEOF |
| 10278 | cat confdefs.h >>conftest.$ac_ext |
| 10279 | cat >>conftest.$ac_ext <<_ACEOF |
| 10280 | /* end confdefs.h. */ |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10281 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10282 | int |
| 10283 | main () |
| 10284 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10285 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10286 | ; |
| 10287 | return 0; |
| 10288 | } |
| 10289 | _ACEOF |
| 10290 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10292 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10293 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10295 | rm -f conftest.er1 |
| 10296 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10298 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10301 | (eval $ac_try) 2>&5 |
| 10302 | ac_status=$? |
| 10303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10304 | (exit $ac_status); }; } && |
| 10305 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10307 | (eval $ac_try) 2>&5 |
| 10308 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10310 | (exit $ac_status); }; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10311 | ac_cv_c_ppdev="yes" |
| 10312 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10313 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10315 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10316 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10317 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10319 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10320 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10321 | echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10322 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10323 | if test "$ac_cv_c_ppdev" = "yes" |
| 10324 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10325 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10326 | cat >>confdefs.h <<\_ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10327 | #define HAVE_PPDEV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10328 | _ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10329 | |
| 10330 | fi |
| 10331 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10332 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
| 10333 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 |
| 10334 | if test "${ac_cv_c_va_copy+set}" = set; then |
| 10335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10336 | else |
| 10337 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10338 | /* confdefs.h. */ |
| 10339 | _ACEOF |
| 10340 | cat confdefs.h >>conftest.$ac_ext |
| 10341 | cat >>conftest.$ac_ext <<_ACEOF |
| 10342 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10343 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10344 | int |
| 10345 | main () |
| 10346 | { |
| 10347 | va_list ap1, ap2; |
| 10348 | va_copy(ap1,ap2); |
| 10349 | |
| 10350 | ; |
| 10351 | return 0; |
| 10352 | } |
| 10353 | _ACEOF |
| 10354 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10356 | (eval $ac_link) 2>conftest.er1 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10357 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10358 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10359 | rm -f conftest.er1 |
| 10360 | cat conftest.err >&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10362 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10363 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10365 | (eval $ac_try) 2>&5 |
| 10366 | ac_status=$? |
| 10367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10368 | (exit $ac_status); }; } && |
| 10369 | { ac_try='test -s conftest$ac_exeext' |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10371 | (eval $ac_try) 2>&5 |
| 10372 | ac_status=$? |
| 10373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10374 | (exit $ac_status); }; }; then |
| 10375 | ac_cv_c_va_copy="yes" |
| 10376 | else |
| 10377 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10378 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10379 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10380 | ac_cv_c_va_copy="no" |
| 10381 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10382 | rm -f conftest.err conftest.$ac_objext \ |
| 10383 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10384 | |
| 10385 | fi |
| 10386 | echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
| 10387 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6 |
| 10388 | if test "$ac_cv_c_va_copy" = "yes" |
| 10389 | then |
| 10390 | |
| 10391 | cat >>confdefs.h <<\_ACEOF |
| 10392 | #define HAVE_VA_COPY 1 |
| 10393 | _ACEOF |
| 10394 | |
| 10395 | fi |
| 10396 | echo "$as_me:$LINENO: checking for __va_copy" >&5 |
| 10397 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6 |
| 10398 | if test "${ac_cv_c___va_copy+set}" = set; then |
| 10399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10400 | else |
| 10401 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10402 | /* confdefs.h. */ |
| 10403 | _ACEOF |
| 10404 | cat confdefs.h >>conftest.$ac_ext |
| 10405 | cat >>conftest.$ac_ext <<_ACEOF |
| 10406 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10407 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10408 | int |
| 10409 | main () |
| 10410 | { |
| 10411 | va_list ap1, ap2; |
| 10412 | __va_copy(ap1,ap2); |
| 10413 | |
| 10414 | ; |
| 10415 | return 0; |
| 10416 | } |
| 10417 | _ACEOF |
| 10418 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10420 | (eval $ac_link) 2>conftest.er1 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10421 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10423 | rm -f conftest.er1 |
| 10424 | cat conftest.err >&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10426 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10427 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10429 | (eval $ac_try) 2>&5 |
| 10430 | ac_status=$? |
| 10431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10432 | (exit $ac_status); }; } && |
| 10433 | { ac_try='test -s conftest$ac_exeext' |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10435 | (eval $ac_try) 2>&5 |
| 10436 | ac_status=$? |
| 10437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10438 | (exit $ac_status); }; }; then |
| 10439 | ac_cv_c___va_copy="yes" |
| 10440 | else |
| 10441 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10442 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10443 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10444 | ac_cv_c___va_copy="no" |
| 10445 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10446 | rm -f conftest.err conftest.$ac_objext \ |
| 10447 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10448 | |
| 10449 | fi |
| 10450 | echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
| 10451 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6 |
| 10452 | if test "$ac_cv_c___va_copy" = "yes" |
| 10453 | then |
| 10454 | |
| 10455 | cat >>confdefs.h <<\_ACEOF |
| 10456 | #define HAVE___VA_COPY 1 |
| 10457 | _ACEOF |
| 10458 | |
| 10459 | fi |
| 10460 | |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10461 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
| 10462 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 |
| 10463 | if test "${ac_cv_c_sigsetjmp+set}" = set; then |
| 10464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10465 | else |
| 10466 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10467 | /* confdefs.h. */ |
| 10468 | _ACEOF |
| 10469 | cat confdefs.h >>conftest.$ac_ext |
| 10470 | cat >>conftest.$ac_ext <<_ACEOF |
| 10471 | /* end confdefs.h. */ |
| 10472 | #include <setjmp.h> |
| 10473 | int |
| 10474 | main () |
| 10475 | { |
| 10476 | sigjmp_buf buf; |
| 10477 | sigsetjmp( buf, 1 ); |
| 10478 | siglongjmp( buf, 1 ); |
| 10479 | ; |
| 10480 | return 0; |
| 10481 | } |
| 10482 | _ACEOF |
| 10483 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10485 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10486 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10488 | rm -f conftest.er1 |
| 10489 | cat conftest.err >&5 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10491 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10492 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10494 | (eval $ac_try) 2>&5 |
| 10495 | ac_status=$? |
| 10496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10497 | (exit $ac_status); }; } && |
| 10498 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10500 | (eval $ac_try) 2>&5 |
| 10501 | ac_status=$? |
| 10502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10503 | (exit $ac_status); }; }; then |
| 10504 | ac_cv_c_sigsetjmp="yes" |
| 10505 | else |
| 10506 | echo "$as_me: failed program was:" >&5 |
| 10507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10508 | |
| 10509 | ac_cv_c_sigsetjmp="no" |
| 10510 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10511 | rm -f conftest.err conftest.$ac_objext \ |
| 10512 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10513 | |
| 10514 | fi |
| 10515 | echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5 |
| 10516 | echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6 |
| 10517 | if test "$ac_cv_c_sigsetjmp" = "yes" |
| 10518 | then |
| 10519 | |
| 10520 | cat >>confdefs.h <<\_ACEOF |
| 10521 | #define HAVE_SIGSETJMP 1 |
| 10522 | _ACEOF |
| 10523 | |
| 10524 | fi |
| 10525 | |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10526 | echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5 |
| 10527 | echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6 |
| 10528 | if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then |
| 10529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10530 | else |
| 10531 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10532 | /* confdefs.h. */ |
| 10533 | _ACEOF |
| 10534 | cat confdefs.h >>conftest.$ac_ext |
| 10535 | cat >>conftest.$ac_ext <<_ACEOF |
| 10536 | /* end confdefs.h. */ |
| 10537 | #define _GNU_SOURCE |
| 10538 | #include <pthread.h> |
| 10539 | |
| 10540 | int |
| 10541 | main () |
| 10542 | { |
| 10543 | if ((pthread_rwlock_t *) 0) |
| 10544 | return 0; |
| 10545 | if (sizeof (pthread_rwlock_t)) |
| 10546 | return 0; |
| 10547 | ; |
| 10548 | return 0; |
| 10549 | } |
| 10550 | _ACEOF |
| 10551 | rm -f conftest.$ac_objext |
| 10552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10553 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10554 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10556 | rm -f conftest.er1 |
| 10557 | cat conftest.err >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10559 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10562 | (eval $ac_try) 2>&5 |
| 10563 | ac_status=$? |
| 10564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10565 | (exit $ac_status); }; } && |
| 10566 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10568 | (eval $ac_try) 2>&5 |
| 10569 | ac_status=$? |
| 10570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10571 | (exit $ac_status); }; }; then |
| 10572 | ac_cv_type_pthread_rwlock_t=yes |
| 10573 | else |
| 10574 | echo "$as_me: failed program was:" >&5 |
| 10575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10576 | |
| 10577 | ac_cv_type_pthread_rwlock_t=no |
| 10578 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10580 | fi |
| 10581 | echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5 |
| 10582 | echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6 |
| 10583 | if test $ac_cv_type_pthread_rwlock_t = yes; then |
| 10584 | |
| 10585 | cat >>confdefs.h <<_ACEOF |
| 10586 | #define HAVE_PTHREAD_RWLOCK_T 1 |
| 10587 | _ACEOF |
| 10588 | |
| 10589 | |
| 10590 | fi |
| 10591 | echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5 |
| 10592 | echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6 |
| 10593 | if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then |
| 10594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10595 | else |
| 10596 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10597 | /* confdefs.h. */ |
| 10598 | _ACEOF |
| 10599 | cat confdefs.h >>conftest.$ac_ext |
| 10600 | cat >>conftest.$ac_ext <<_ACEOF |
| 10601 | /* end confdefs.h. */ |
| 10602 | #define _GNU_SOURCE |
| 10603 | #include <pthread.h> |
| 10604 | |
| 10605 | int |
| 10606 | main () |
| 10607 | { |
| 10608 | if ((pthread_rwlockattr_t *) 0) |
| 10609 | return 0; |
| 10610 | if (sizeof (pthread_rwlockattr_t)) |
| 10611 | return 0; |
| 10612 | ; |
| 10613 | return 0; |
| 10614 | } |
| 10615 | _ACEOF |
| 10616 | rm -f conftest.$ac_objext |
| 10617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10618 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10619 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10621 | rm -f conftest.er1 |
| 10622 | cat conftest.err >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10624 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10625 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10627 | (eval $ac_try) 2>&5 |
| 10628 | ac_status=$? |
| 10629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10630 | (exit $ac_status); }; } && |
| 10631 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10633 | (eval $ac_try) 2>&5 |
| 10634 | ac_status=$? |
| 10635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10636 | (exit $ac_status); }; }; then |
| 10637 | ac_cv_type_pthread_rwlockattr_t=yes |
| 10638 | else |
| 10639 | echo "$as_me: failed program was:" >&5 |
| 10640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10641 | |
| 10642 | ac_cv_type_pthread_rwlockattr_t=no |
| 10643 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10645 | fi |
| 10646 | echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5 |
| 10647 | echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6 |
| 10648 | if test $ac_cv_type_pthread_rwlockattr_t = yes; then |
| 10649 | |
| 10650 | cat >>confdefs.h <<_ACEOF |
| 10651 | #define HAVE_PTHREAD_RWLOCKATTR_T 1 |
| 10652 | _ACEOF |
| 10653 | |
| 10654 | |
| 10655 | fi |
| 10656 | |
| 10657 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10658 | ac_save_LIBS="$LIBS" |
| 10659 | LIBS="$LIBS $LIBPTHREAD" |
| 10660 | |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 10661 | |
| 10662 | |
| 10663 | for ac_func in \ |
| 10664 | pthread_getattr_np \ |
| 10665 | pthread_get_stackaddr_np \ |
| 10666 | pthread_get_stacksize_np \ |
| 10667 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10668 | do |
| 10669 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10670 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10671 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10672 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10674 | else |
| 10675 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10676 | /* confdefs.h. */ |
| 10677 | _ACEOF |
| 10678 | cat confdefs.h >>conftest.$ac_ext |
| 10679 | cat >>conftest.$ac_ext <<_ACEOF |
| 10680 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10681 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10682 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10683 | #define $ac_func innocuous_$ac_func |
| 10684 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10685 | /* System header to define __stub macros and hopefully few prototypes, |
| 10686 | which can conflict with char $ac_func (); below. |
| 10687 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10688 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10689 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10690 | #ifdef __STDC__ |
| 10691 | # include <limits.h> |
| 10692 | #else |
| 10693 | # include <assert.h> |
| 10694 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10695 | |
| 10696 | #undef $ac_func |
| 10697 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10698 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10699 | #ifdef __cplusplus |
| 10700 | extern "C" |
| 10701 | { |
| 10702 | #endif |
| 10703 | /* We use char because int might match the return type of a gcc2 |
| 10704 | builtin and then its argument prototype would still apply. */ |
| 10705 | char $ac_func (); |
| 10706 | /* The GNU C library defines this for functions which it implements |
| 10707 | to always fail with ENOSYS. Some functions are actually named |
| 10708 | something starting with __ and the normal name is an alias. */ |
| 10709 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10710 | choke me |
| 10711 | #else |
| 10712 | char (*f) () = $ac_func; |
| 10713 | #endif |
| 10714 | #ifdef __cplusplus |
| 10715 | } |
| 10716 | #endif |
| 10717 | |
| 10718 | int |
| 10719 | main () |
| 10720 | { |
| 10721 | return f != $ac_func; |
| 10722 | ; |
| 10723 | return 0; |
| 10724 | } |
| 10725 | _ACEOF |
| 10726 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10728 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10729 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10731 | rm -f conftest.er1 |
| 10732 | cat conftest.err >&5 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10734 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10735 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10737 | (eval $ac_try) 2>&5 |
| 10738 | ac_status=$? |
| 10739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10740 | (exit $ac_status); }; } && |
| 10741 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10743 | (eval $ac_try) 2>&5 |
| 10744 | ac_status=$? |
| 10745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10746 | (exit $ac_status); }; }; then |
| 10747 | eval "$as_ac_var=yes" |
| 10748 | else |
| 10749 | echo "$as_me: failed program was:" >&5 |
| 10750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10751 | |
| 10752 | eval "$as_ac_var=no" |
| 10753 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10754 | rm -f conftest.err conftest.$ac_objext \ |
| 10755 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10756 | fi |
| 10757 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10758 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10759 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10760 | cat >>confdefs.h <<_ACEOF |
| 10761 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10762 | _ACEOF |
| 10763 | |
| 10764 | fi |
| 10765 | done |
| 10766 | |
| 10767 | LIBS="$ac_save_LIBS" |
| 10768 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10769 | |
| 10770 | |
| 10771 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10772 | for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10773 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10774 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10775 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10776 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10777 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10778 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10780 | fi |
| 10781 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10782 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10783 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10784 | # Is the header compilable? |
| 10785 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10786 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10787 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10788 | /* confdefs.h. */ |
| 10789 | _ACEOF |
| 10790 | cat confdefs.h >>conftest.$ac_ext |
| 10791 | cat >>conftest.$ac_ext <<_ACEOF |
| 10792 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10793 | $ac_includes_default |
| 10794 | #include <$ac_header> |
| 10795 | _ACEOF |
| 10796 | rm -f conftest.$ac_objext |
| 10797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10798 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10799 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10801 | rm -f conftest.er1 |
| 10802 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10804 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10805 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10807 | (eval $ac_try) 2>&5 |
| 10808 | ac_status=$? |
| 10809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10810 | (exit $ac_status); }; } && |
| 10811 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10813 | (eval $ac_try) 2>&5 |
| 10814 | ac_status=$? |
| 10815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10816 | (exit $ac_status); }; }; then |
| 10817 | ac_header_compiler=yes |
| 10818 | else |
| 10819 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10821 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10822 | ac_header_compiler=no |
| 10823 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10825 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10826 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10827 | |
| 10828 | # Is the header present? |
| 10829 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10830 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10831 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10832 | /* confdefs.h. */ |
| 10833 | _ACEOF |
| 10834 | cat confdefs.h >>conftest.$ac_ext |
| 10835 | cat >>conftest.$ac_ext <<_ACEOF |
| 10836 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10837 | #include <$ac_header> |
| 10838 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10839 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10840 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10841 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10842 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10843 | rm -f conftest.er1 |
| 10844 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10846 | (exit $ac_status); } >/dev/null; then |
| 10847 | if test -s conftest.err; then |
| 10848 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10849 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10850 | else |
| 10851 | ac_cpp_err= |
| 10852 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10853 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10854 | ac_cpp_err=yes |
| 10855 | fi |
| 10856 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10857 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10858 | else |
| 10859 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10861 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10862 | ac_header_preproc=no |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10863 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10864 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10865 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10866 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10867 | |
| 10868 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10869 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10870 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10871 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10872 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10873 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10874 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10875 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10876 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10877 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10878 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10879 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10880 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10881 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10882 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10883 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10884 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10885 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10886 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10887 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10888 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10889 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10890 | ( |
| 10891 | cat <<\_ASBOX |
| 10892 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10893 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10894 | ## ------------------------------------ ## |
| 10895 | _ASBOX |
| 10896 | ) | |
| 10897 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10898 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10899 | esac |
| 10900 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10901 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10904 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10905 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10906 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10908 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10909 | |
| 10910 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10911 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10912 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10913 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10914 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 10915 | break |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10916 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10917 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10918 | done |
| 10919 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10920 | |
| 10921 | echo "$as_me:$LINENO: checking for Open Sound System" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10922 | echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6 |
| 10923 | if test "${ac_cv_c_opensoundsystem+set}" = set; then |
| 10924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10925 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10926 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10927 | /* confdefs.h. */ |
| 10928 | _ACEOF |
| 10929 | cat confdefs.h >>conftest.$ac_ext |
| 10930 | cat >>conftest.$ac_ext <<_ACEOF |
| 10931 | /* end confdefs.h. */ |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10932 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 10933 | #if defined(HAVE_SYS_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10934 | #include <sys/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 10935 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10936 | #include <machine/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 10937 | #elif defined(HAVE_SOUNDCARD_H) |
| 10938 | #include <soundcard.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10939 | #endif |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10940 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10941 | int |
| 10942 | main () |
| 10943 | { |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10944 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10945 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 10946 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
| 10947 | #if !defined(SNDCTL_DSP_STEREO) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10948 | #error No open sound system |
| 10949 | #endif |
| 10950 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10951 | ; |
| 10952 | return 0; |
| 10953 | } |
| 10954 | _ACEOF |
| 10955 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10957 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10958 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10960 | rm -f conftest.er1 |
| 10961 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10963 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10964 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10966 | (eval $ac_try) 2>&5 |
| 10967 | ac_status=$? |
| 10968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10969 | (exit $ac_status); }; } && |
| 10970 | { ac_try='test -s conftest.$ac_objext' |
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 | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10976 | ac_cv_c_opensoundsystem="yes" |
| 10977 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10978 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10980 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10981 | ac_cv_c_opensoundsystem="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10982 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10984 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10985 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10986 | echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10987 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 10988 | if test "$ac_cv_c_opensoundsystem" = "yes" |
| 10989 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10990 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10991 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 10992 | #define HAVE_OSS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10993 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 10994 | |
| 10995 | fi |
| 10996 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10997 | echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10998 | echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6 |
| 10999 | if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then |
| 11000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11001 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11002 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11003 | /* confdefs.h. */ |
| 11004 | _ACEOF |
| 11005 | cat confdefs.h >>conftest.$ac_ext |
| 11006 | cat >>conftest.$ac_ext <<_ACEOF |
| 11007 | /* end confdefs.h. */ |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11008 | |
| 11009 | #if defined(HAVE_SYS_SOUNDCARD_H) |
| 11010 | #include <sys/soundcard.h> |
| 11011 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
| 11012 | #include <machine/soundcard.h> |
| 11013 | #elif defined(HAVE_SOUNDCARD_H) |
| 11014 | #include <soundcard.h> |
| 11015 | #endif |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11016 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11017 | int |
| 11018 | main () |
| 11019 | { |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11020 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11021 | |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11022 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ |
| 11023 | #if !defined(SNDCTL_SEQ_SYNC) |
| 11024 | #error No open sound system MIDI interface |
| 11025 | #endif |
| 11026 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11027 | ; |
| 11028 | return 0; |
| 11029 | } |
| 11030 | _ACEOF |
| 11031 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11033 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11034 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11036 | rm -f conftest.er1 |
| 11037 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11039 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11042 | (eval $ac_try) 2>&5 |
| 11043 | ac_status=$? |
| 11044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11045 | (exit $ac_status); }; } && |
| 11046 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11048 | (eval $ac_try) 2>&5 |
| 11049 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11051 | (exit $ac_status); }; }; then |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11052 | ac_cv_c_opensoundsystem_midi="yes" |
| 11053 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11054 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11056 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11057 | ac_cv_c_opensoundsystem_midi="no" |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11058 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11060 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11061 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11062 | echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11063 | |
| 11064 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" |
| 11065 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11066 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11067 | cat >>confdefs.h <<\_ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11068 | #define HAVE_OSS_MIDI 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11069 | _ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11070 | |
| 11071 | fi |
| 11072 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11073 | # Extract the first word of "artsc-config", so it can be a program name with args. |
| 11074 | set dummy artsc-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11075 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11077 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then |
| 11078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11079 | else |
| 11080 | case $ARTSCCONFIG in |
| 11081 | [\\/]* | ?:[\\/]*) |
| 11082 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. |
| 11083 | ;; |
| 11084 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11086 | for as_dir in $PATH |
| 11087 | do |
| 11088 | IFS=$as_save_IFS |
| 11089 | test -z "$as_dir" && as_dir=. |
| 11090 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11091 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11092 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 11093 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11094 | break 2 |
| 11095 | fi |
| 11096 | done |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11097 | done |
| 11098 | |
| 11099 | ;; |
| 11100 | esac |
| 11101 | fi |
| 11102 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG |
| 11103 | |
| 11104 | if test -n "$ARTSCCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11105 | echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11106 | echo "${ECHO_T}$ARTSCCONFIG" >&6 |
| 11107 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11108 | echo "$as_me:$LINENO: result: no" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11109 | echo "${ECHO_T}no" >&6 |
| 11110 | fi |
| 11111 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11112 | if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"'; |
| 11113 | then |
Alexandre Julliard | b3b12cf | 2004-02-24 01:24:20 +0000 | [diff] [blame] | 11114 | ARTSC_CFLAGS="" |
| 11115 | for i in `$ARTSCCONFIG --cflags` |
| 11116 | do |
| 11117 | case "$i" in |
| 11118 | -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";; |
| 11119 | esac |
| 11120 | done |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11121 | ARTSC_LIBS=`$ARTSCCONFIG --libs` |
| 11122 | save_CFLAGS="$CFLAGS" |
| 11123 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
| 11124 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11125 | /* confdefs.h. */ |
| 11126 | _ACEOF |
| 11127 | cat confdefs.h >>conftest.$ac_ext |
| 11128 | cat >>conftest.$ac_ext <<_ACEOF |
| 11129 | /* end confdefs.h. */ |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11130 | #include <artsc.h> |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11131 | int |
| 11132 | main () |
| 11133 | { |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11134 | arts_stream_t stream; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11135 | ; |
| 11136 | return 0; |
| 11137 | } |
| 11138 | _ACEOF |
| 11139 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11141 | (eval $ac_compile) 2>conftest.er1 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11142 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11144 | rm -f conftest.er1 |
| 11145 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11147 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11150 | (eval $ac_try) 2>&5 |
| 11151 | ac_status=$? |
| 11152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11153 | (exit $ac_status); }; } && |
| 11154 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11156 | (eval $ac_try) 2>&5 |
| 11157 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11159 | (exit $ac_status); }; }; then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11160 | ARTSLIBS=$ARTSC_LIBS |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11161 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11162 | ARTSINCL=$ARTSC_CFLAGS |
| 11163 | |
| 11164 | |
| 11165 | cat >>confdefs.h <<\_ACEOF |
| 11166 | #define HAVE_ARTS 1 |
| 11167 | _ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11168 | |
| 11169 | else |
| 11170 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11171 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11172 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11173 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11175 | CFLAGS="$save_CFLAGS" |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11176 | fi |
| 11177 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11178 | ALSALIBS="" |
| 11179 | |
| 11180 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 11181 | |
| 11182 | for ac_header in alsa/asoundlib.h sys/asoundlib.h |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11183 | do |
| 11184 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11185 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11186 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11187 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11188 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11190 | fi |
| 11191 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11192 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11193 | else |
| 11194 | # Is the header compilable? |
| 11195 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11196 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11197 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11198 | /* confdefs.h. */ |
| 11199 | _ACEOF |
| 11200 | cat confdefs.h >>conftest.$ac_ext |
| 11201 | cat >>conftest.$ac_ext <<_ACEOF |
| 11202 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11203 | $ac_includes_default |
| 11204 | #include <$ac_header> |
| 11205 | _ACEOF |
| 11206 | rm -f conftest.$ac_objext |
| 11207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11208 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11209 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11211 | rm -f conftest.er1 |
| 11212 | cat conftest.err >&5 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11214 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11215 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11217 | (eval $ac_try) 2>&5 |
| 11218 | ac_status=$? |
| 11219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11220 | (exit $ac_status); }; } && |
| 11221 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11223 | (eval $ac_try) 2>&5 |
| 11224 | ac_status=$? |
| 11225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11226 | (exit $ac_status); }; }; then |
| 11227 | ac_header_compiler=yes |
| 11228 | else |
| 11229 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11231 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11232 | ac_header_compiler=no |
| 11233 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11235 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11236 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11237 | |
| 11238 | # Is the header present? |
| 11239 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11240 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11241 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11242 | /* confdefs.h. */ |
| 11243 | _ACEOF |
| 11244 | cat confdefs.h >>conftest.$ac_ext |
| 11245 | cat >>conftest.$ac_ext <<_ACEOF |
| 11246 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11247 | #include <$ac_header> |
| 11248 | _ACEOF |
| 11249 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11250 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11251 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11252 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11253 | rm -f conftest.er1 |
| 11254 | cat conftest.err >&5 |
| 11255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11256 | (exit $ac_status); } >/dev/null; then |
| 11257 | if test -s conftest.err; then |
| 11258 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11259 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11260 | else |
| 11261 | ac_cpp_err= |
| 11262 | fi |
| 11263 | else |
| 11264 | ac_cpp_err=yes |
| 11265 | fi |
| 11266 | if test -z "$ac_cpp_err"; then |
| 11267 | ac_header_preproc=yes |
| 11268 | else |
| 11269 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11271 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11272 | ac_header_preproc=no |
| 11273 | fi |
| 11274 | rm -f conftest.err conftest.$ac_ext |
| 11275 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11276 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11277 | |
| 11278 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11279 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11280 | yes:no: ) |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11281 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11282 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11283 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11284 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11285 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11286 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11287 | no:yes:* ) |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11288 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11289 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11290 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11291 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11292 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11293 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11294 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11295 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11296 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11297 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11298 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11299 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11300 | ( |
| 11301 | cat <<\_ASBOX |
| 11302 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11303 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11304 | ## ------------------------------------ ## |
| 11305 | _ASBOX |
| 11306 | ) | |
| 11307 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11308 | ;; |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11309 | esac |
| 11310 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11311 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11312 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11314 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11315 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11316 | fi |
| 11317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11318 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11319 | |
| 11320 | fi |
| 11321 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11322 | cat >>confdefs.h <<_ACEOF |
| 11323 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11324 | _ACEOF |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 11325 | break |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11326 | fi |
| 11327 | |
| 11328 | done |
| 11329 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 11330 | 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] | 11331 | then |
| 11332 | echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5 |
| 11333 | echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6 |
| 11334 | if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then |
| 11335 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11336 | else |
| 11337 | ac_check_lib_save_LIBS=$LIBS |
| 11338 | LIBS="-lasound $LIBS" |
| 11339 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11340 | /* confdefs.h. */ |
| 11341 | _ACEOF |
| 11342 | cat confdefs.h >>conftest.$ac_ext |
| 11343 | cat >>conftest.$ac_ext <<_ACEOF |
| 11344 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11345 | |
| 11346 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11347 | #ifdef __cplusplus |
| 11348 | extern "C" |
| 11349 | #endif |
| 11350 | /* We use char because int might match the return type of a gcc2 |
| 11351 | builtin and then its argument prototype would still apply. */ |
| 11352 | char snd_pcm_open (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11353 | int |
| 11354 | main () |
| 11355 | { |
| 11356 | snd_pcm_open (); |
| 11357 | ; |
| 11358 | return 0; |
| 11359 | } |
| 11360 | _ACEOF |
| 11361 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11363 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11364 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11365 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11366 | rm -f conftest.er1 |
| 11367 | cat conftest.err >&5 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11369 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11370 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11372 | (eval $ac_try) 2>&5 |
| 11373 | ac_status=$? |
| 11374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11375 | (exit $ac_status); }; } && |
| 11376 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11378 | (eval $ac_try) 2>&5 |
| 11379 | ac_status=$? |
| 11380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11381 | (exit $ac_status); }; }; then |
| 11382 | ac_cv_lib_asound_snd_pcm_open=yes |
| 11383 | else |
| 11384 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11386 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11387 | ac_cv_lib_asound_snd_pcm_open=no |
| 11388 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11389 | rm -f conftest.err conftest.$ac_objext \ |
| 11390 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11391 | LIBS=$ac_check_lib_save_LIBS |
| 11392 | fi |
| 11393 | echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5 |
| 11394 | echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6 |
| 11395 | if test $ac_cv_lib_asound_snd_pcm_open = yes; then |
| 11396 | |
| 11397 | cat >>confdefs.h <<\_ACEOF |
| 11398 | #define HAVE_ALSA 1 |
| 11399 | _ACEOF |
| 11400 | |
| 11401 | ALSALIBS="-lasound" |
| 11402 | fi |
| 11403 | |
| 11404 | fi |
| 11405 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11406 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11407 | AUDIOIOLIBS="" |
| 11408 | |
| 11409 | |
| 11410 | for ac_header in libaudioio.h |
| 11411 | do |
| 11412 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11414 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11418 | fi |
| 11419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11420 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11421 | else |
| 11422 | # Is the header compilable? |
| 11423 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11424 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11425 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11426 | /* confdefs.h. */ |
| 11427 | _ACEOF |
| 11428 | cat confdefs.h >>conftest.$ac_ext |
| 11429 | cat >>conftest.$ac_ext <<_ACEOF |
| 11430 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11431 | $ac_includes_default |
| 11432 | #include <$ac_header> |
| 11433 | _ACEOF |
| 11434 | rm -f conftest.$ac_objext |
| 11435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11436 | (eval $ac_compile) 2>conftest.er1 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11437 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11439 | rm -f conftest.er1 |
| 11440 | cat conftest.err >&5 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11442 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11443 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11445 | (eval $ac_try) 2>&5 |
| 11446 | ac_status=$? |
| 11447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11448 | (exit $ac_status); }; } && |
| 11449 | { ac_try='test -s conftest.$ac_objext' |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11451 | (eval $ac_try) 2>&5 |
| 11452 | ac_status=$? |
| 11453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11454 | (exit $ac_status); }; }; then |
| 11455 | ac_header_compiler=yes |
| 11456 | else |
| 11457 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11459 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11460 | ac_header_compiler=no |
| 11461 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11463 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11464 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11465 | |
| 11466 | # Is the header present? |
| 11467 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11468 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11469 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11470 | /* confdefs.h. */ |
| 11471 | _ACEOF |
| 11472 | cat confdefs.h >>conftest.$ac_ext |
| 11473 | cat >>conftest.$ac_ext <<_ACEOF |
| 11474 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11475 | #include <$ac_header> |
| 11476 | _ACEOF |
| 11477 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11478 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11479 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11480 | grep -v '^ *+' conftest.er1 >conftest.err |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11481 | rm -f conftest.er1 |
| 11482 | cat conftest.err >&5 |
| 11483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11484 | (exit $ac_status); } >/dev/null; then |
| 11485 | if test -s conftest.err; then |
| 11486 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11487 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11488 | else |
| 11489 | ac_cpp_err= |
| 11490 | fi |
| 11491 | else |
| 11492 | ac_cpp_err=yes |
| 11493 | fi |
| 11494 | if test -z "$ac_cpp_err"; then |
| 11495 | ac_header_preproc=yes |
| 11496 | else |
| 11497 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11499 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11500 | ac_header_preproc=no |
| 11501 | fi |
| 11502 | rm -f conftest.err conftest.$ac_ext |
| 11503 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11504 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11505 | |
| 11506 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11507 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11508 | yes:no: ) |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11509 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11510 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11511 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11512 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11513 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11514 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11515 | no:yes:* ) |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11516 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11517 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11518 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11519 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11520 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11521 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11522 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11523 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11524 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11525 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11526 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11527 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11528 | ( |
| 11529 | cat <<\_ASBOX |
| 11530 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11531 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11532 | ## ------------------------------------ ## |
| 11533 | _ASBOX |
| 11534 | ) | |
| 11535 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11536 | ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11537 | esac |
| 11538 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11539 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11540 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11542 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11543 | eval "$as_ac_Header=\$ac_header_preproc" |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11544 | fi |
| 11545 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11546 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11547 | |
| 11548 | fi |
| 11549 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11550 | cat >>confdefs.h <<_ACEOF |
| 11551 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11552 | _ACEOF |
| 11553 | echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5 |
| 11554 | echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6 |
| 11555 | if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then |
| 11556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11557 | else |
| 11558 | ac_check_lib_save_LIBS=$LIBS |
| 11559 | LIBS="-laudioio $LIBS" |
| 11560 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11561 | /* confdefs.h. */ |
| 11562 | _ACEOF |
| 11563 | cat confdefs.h >>conftest.$ac_ext |
| 11564 | cat >>conftest.$ac_ext <<_ACEOF |
| 11565 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11566 | |
| 11567 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11568 | #ifdef __cplusplus |
| 11569 | extern "C" |
| 11570 | #endif |
| 11571 | /* We use char because int might match the return type of a gcc2 |
| 11572 | builtin and then its argument prototype would still apply. */ |
| 11573 | char AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11574 | int |
| 11575 | main () |
| 11576 | { |
| 11577 | AudioIOGetVersion (); |
| 11578 | ; |
| 11579 | return 0; |
| 11580 | } |
| 11581 | _ACEOF |
| 11582 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11584 | (eval $ac_link) 2>conftest.er1 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11585 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11587 | rm -f conftest.er1 |
| 11588 | cat conftest.err >&5 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11590 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11593 | (eval $ac_try) 2>&5 |
| 11594 | ac_status=$? |
| 11595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11596 | (exit $ac_status); }; } && |
| 11597 | { ac_try='test -s conftest$ac_exeext' |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11599 | (eval $ac_try) 2>&5 |
| 11600 | ac_status=$? |
| 11601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11602 | (exit $ac_status); }; }; then |
| 11603 | ac_cv_lib_audioio_AudioIOGetVersion=yes |
| 11604 | else |
| 11605 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11607 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11608 | ac_cv_lib_audioio_AudioIOGetVersion=no |
| 11609 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11610 | rm -f conftest.err conftest.$ac_objext \ |
| 11611 | conftest$ac_exeext conftest.$ac_ext |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11612 | LIBS=$ac_check_lib_save_LIBS |
| 11613 | fi |
| 11614 | echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5 |
| 11615 | echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6 |
| 11616 | if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then |
| 11617 | AUDIOIOLIBS="-laudioio" |
| 11618 | |
| 11619 | cat >>confdefs.h <<\_ACEOF |
| 11620 | #define HAVE_LIBAUDIOIO 1 |
| 11621 | _ACEOF |
| 11622 | |
| 11623 | fi |
| 11624 | |
| 11625 | fi |
| 11626 | |
| 11627 | done |
| 11628 | |
| 11629 | |
| 11630 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11631 | |
Hans Leidekker | 5164757 | 2004-09-22 04:08:38 +0000 | [diff] [blame] | 11632 | for ac_header in lcms.h |
| 11633 | do |
| 11634 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11635 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11636 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11637 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11638 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11640 | fi |
| 11641 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11642 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11643 | else |
| 11644 | # Is the header compilable? |
| 11645 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11646 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11647 | cat >conftest.$ac_ext <<_ACEOF |
| 11648 | /* confdefs.h. */ |
| 11649 | _ACEOF |
| 11650 | cat confdefs.h >>conftest.$ac_ext |
| 11651 | cat >>conftest.$ac_ext <<_ACEOF |
| 11652 | /* end confdefs.h. */ |
| 11653 | $ac_includes_default |
| 11654 | #include <$ac_header> |
| 11655 | _ACEOF |
| 11656 | rm -f conftest.$ac_objext |
| 11657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11658 | (eval $ac_compile) 2>conftest.er1 |
| 11659 | ac_status=$? |
| 11660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11661 | rm -f conftest.er1 |
| 11662 | cat conftest.err >&5 |
| 11663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11664 | (exit $ac_status); } && |
| 11665 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11667 | (eval $ac_try) 2>&5 |
| 11668 | ac_status=$? |
| 11669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11670 | (exit $ac_status); }; } && |
| 11671 | { ac_try='test -s conftest.$ac_objext' |
| 11672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11673 | (eval $ac_try) 2>&5 |
| 11674 | ac_status=$? |
| 11675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11676 | (exit $ac_status); }; }; then |
| 11677 | ac_header_compiler=yes |
| 11678 | else |
| 11679 | echo "$as_me: failed program was:" >&5 |
| 11680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11681 | |
| 11682 | ac_header_compiler=no |
| 11683 | fi |
| 11684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11685 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11686 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11687 | |
| 11688 | # Is the header present? |
| 11689 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11690 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11691 | cat >conftest.$ac_ext <<_ACEOF |
| 11692 | /* confdefs.h. */ |
| 11693 | _ACEOF |
| 11694 | cat confdefs.h >>conftest.$ac_ext |
| 11695 | cat >>conftest.$ac_ext <<_ACEOF |
| 11696 | /* end confdefs.h. */ |
| 11697 | #include <$ac_header> |
| 11698 | _ACEOF |
| 11699 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11700 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11701 | ac_status=$? |
| 11702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11703 | rm -f conftest.er1 |
| 11704 | cat conftest.err >&5 |
| 11705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11706 | (exit $ac_status); } >/dev/null; then |
| 11707 | if test -s conftest.err; then |
| 11708 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11709 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 11710 | else |
| 11711 | ac_cpp_err= |
| 11712 | fi |
| 11713 | else |
| 11714 | ac_cpp_err=yes |
| 11715 | fi |
| 11716 | if test -z "$ac_cpp_err"; then |
| 11717 | ac_header_preproc=yes |
| 11718 | else |
| 11719 | echo "$as_me: failed program was:" >&5 |
| 11720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11721 | |
| 11722 | ac_header_preproc=no |
| 11723 | fi |
| 11724 | rm -f conftest.err conftest.$ac_ext |
| 11725 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11726 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11727 | |
| 11728 | # So? What about this header? |
| 11729 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11730 | yes:no: ) |
| 11731 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11732 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11734 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11735 | ac_header_preproc=yes |
| 11736 | ;; |
| 11737 | no:yes:* ) |
| 11738 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11739 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11740 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11741 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11742 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11743 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11744 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11745 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11747 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11748 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11749 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 11750 | ( |
| 11751 | cat <<\_ASBOX |
| 11752 | ## ------------------------------------ ## |
| 11753 | ## Report this to wine-devel@winehq.org ## |
| 11754 | ## ------------------------------------ ## |
| 11755 | _ASBOX |
| 11756 | ) | |
| 11757 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11758 | ;; |
| 11759 | esac |
| 11760 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11762 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11764 | else |
| 11765 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11766 | fi |
| 11767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11768 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11769 | |
| 11770 | fi |
| 11771 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11772 | cat >>confdefs.h <<_ACEOF |
| 11773 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11774 | _ACEOF |
| 11775 | echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5 |
| 11776 | echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6 |
| 11777 | if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then |
| 11778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11779 | else |
| 11780 | ac_check_lib_save_LIBS=$LIBS |
| 11781 | LIBS="-llcms $LIBS" |
| 11782 | cat >conftest.$ac_ext <<_ACEOF |
| 11783 | /* confdefs.h. */ |
| 11784 | _ACEOF |
| 11785 | cat confdefs.h >>conftest.$ac_ext |
| 11786 | cat >>conftest.$ac_ext <<_ACEOF |
| 11787 | /* end confdefs.h. */ |
| 11788 | |
| 11789 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11790 | #ifdef __cplusplus |
| 11791 | extern "C" |
| 11792 | #endif |
| 11793 | /* We use char because int might match the return type of a gcc2 |
| 11794 | builtin and then its argument prototype would still apply. */ |
| 11795 | char cmsOpenProfileFromFile (); |
| 11796 | int |
| 11797 | main () |
| 11798 | { |
| 11799 | cmsOpenProfileFromFile (); |
| 11800 | ; |
| 11801 | return 0; |
| 11802 | } |
| 11803 | _ACEOF |
| 11804 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11806 | (eval $ac_link) 2>conftest.er1 |
| 11807 | ac_status=$? |
| 11808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11809 | rm -f conftest.er1 |
| 11810 | cat conftest.err >&5 |
| 11811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11812 | (exit $ac_status); } && |
| 11813 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11815 | (eval $ac_try) 2>&5 |
| 11816 | ac_status=$? |
| 11817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11818 | (exit $ac_status); }; } && |
| 11819 | { ac_try='test -s conftest$ac_exeext' |
| 11820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11821 | (eval $ac_try) 2>&5 |
| 11822 | ac_status=$? |
| 11823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11824 | (exit $ac_status); }; }; then |
| 11825 | ac_cv_lib_lcms_cmsOpenProfileFromFile=yes |
| 11826 | else |
| 11827 | echo "$as_me: failed program was:" >&5 |
| 11828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11829 | |
| 11830 | ac_cv_lib_lcms_cmsOpenProfileFromFile=no |
| 11831 | fi |
| 11832 | rm -f conftest.err conftest.$ac_objext \ |
| 11833 | conftest$ac_exeext conftest.$ac_ext |
| 11834 | LIBS=$ac_check_lib_save_LIBS |
| 11835 | fi |
| 11836 | echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5 |
| 11837 | echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6 |
| 11838 | if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then |
| 11839 | |
| 11840 | cat >>confdefs.h <<\_ACEOF |
| 11841 | #define HAVE_LCMS 1 |
| 11842 | _ACEOF |
| 11843 | |
| 11844 | LCMSLIBS="-llcms" |
| 11845 | |
| 11846 | |
| 11847 | fi |
| 11848 | |
| 11849 | |
| 11850 | fi |
| 11851 | |
| 11852 | done |
| 11853 | |
| 11854 | |
| 11855 | |
| 11856 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11857 | for ac_header in capi20.h |
| 11858 | do |
| 11859 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11860 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11861 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11862 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11863 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11865 | fi |
| 11866 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11867 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11868 | else |
| 11869 | # Is the header compilable? |
| 11870 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11871 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11872 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11873 | /* confdefs.h. */ |
| 11874 | _ACEOF |
| 11875 | cat confdefs.h >>conftest.$ac_ext |
| 11876 | cat >>conftest.$ac_ext <<_ACEOF |
| 11877 | /* end confdefs.h. */ |
| 11878 | $ac_includes_default |
| 11879 | #include <$ac_header> |
| 11880 | _ACEOF |
| 11881 | rm -f conftest.$ac_objext |
| 11882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11883 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11884 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11886 | rm -f conftest.er1 |
| 11887 | cat conftest.err >&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11889 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11890 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11892 | (eval $ac_try) 2>&5 |
| 11893 | ac_status=$? |
| 11894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11895 | (exit $ac_status); }; } && |
| 11896 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11898 | (eval $ac_try) 2>&5 |
| 11899 | ac_status=$? |
| 11900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11901 | (exit $ac_status); }; }; then |
| 11902 | ac_header_compiler=yes |
| 11903 | else |
| 11904 | echo "$as_me: failed program was:" >&5 |
| 11905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11906 | |
| 11907 | ac_header_compiler=no |
| 11908 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11910 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11911 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11912 | |
| 11913 | # Is the header present? |
| 11914 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11915 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11916 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11917 | /* confdefs.h. */ |
| 11918 | _ACEOF |
| 11919 | cat confdefs.h >>conftest.$ac_ext |
| 11920 | cat >>conftest.$ac_ext <<_ACEOF |
| 11921 | /* end confdefs.h. */ |
| 11922 | #include <$ac_header> |
| 11923 | _ACEOF |
| 11924 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11925 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11926 | ac_status=$? |
| 11927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11928 | rm -f conftest.er1 |
| 11929 | cat conftest.err >&5 |
| 11930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11931 | (exit $ac_status); } >/dev/null; then |
| 11932 | if test -s conftest.err; then |
| 11933 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11934 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11935 | else |
| 11936 | ac_cpp_err= |
| 11937 | fi |
| 11938 | else |
| 11939 | ac_cpp_err=yes |
| 11940 | fi |
| 11941 | if test -z "$ac_cpp_err"; then |
| 11942 | ac_header_preproc=yes |
| 11943 | else |
| 11944 | echo "$as_me: failed program was:" >&5 |
| 11945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11946 | |
| 11947 | ac_header_preproc=no |
| 11948 | fi |
| 11949 | rm -f conftest.err conftest.$ac_ext |
| 11950 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11951 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11952 | |
| 11953 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11954 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11955 | yes:no: ) |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11956 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11957 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11958 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11959 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11960 | ac_header_preproc=yes |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11961 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11962 | no:yes:* ) |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11963 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11964 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11965 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11966 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11967 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11968 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11969 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11970 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11971 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11972 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11973 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11974 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11975 | ( |
| 11976 | cat <<\_ASBOX |
| 11977 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11978 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11979 | ## ------------------------------------ ## |
| 11980 | _ASBOX |
| 11981 | ) | |
| 11982 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11983 | ;; |
| 11984 | esac |
| 11985 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11986 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11987 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11989 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11990 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11991 | fi |
| 11992 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11993 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11994 | |
| 11995 | fi |
| 11996 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11997 | cat >>confdefs.h <<_ACEOF |
| 11998 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11999 | _ACEOF |
| 12000 | |
| 12001 | |
| 12002 | for ac_header in linux/capi.h |
| 12003 | do |
| 12004 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12005 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12006 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12007 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12008 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12010 | fi |
| 12011 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12012 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12013 | else |
| 12014 | # Is the header compilable? |
| 12015 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 12016 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 12017 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12018 | /* confdefs.h. */ |
| 12019 | _ACEOF |
| 12020 | cat confdefs.h >>conftest.$ac_ext |
| 12021 | cat >>conftest.$ac_ext <<_ACEOF |
| 12022 | /* end confdefs.h. */ |
| 12023 | $ac_includes_default |
| 12024 | #include <$ac_header> |
| 12025 | _ACEOF |
| 12026 | rm -f conftest.$ac_objext |
| 12027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12028 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12029 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12030 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12031 | rm -f conftest.er1 |
| 12032 | cat conftest.err >&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12034 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12035 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12037 | (eval $ac_try) 2>&5 |
| 12038 | ac_status=$? |
| 12039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12040 | (exit $ac_status); }; } && |
| 12041 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12043 | (eval $ac_try) 2>&5 |
| 12044 | ac_status=$? |
| 12045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12046 | (exit $ac_status); }; }; then |
| 12047 | ac_header_compiler=yes |
| 12048 | else |
| 12049 | echo "$as_me: failed program was:" >&5 |
| 12050 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12051 | |
| 12052 | ac_header_compiler=no |
| 12053 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12055 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12056 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12057 | |
| 12058 | # Is the header present? |
| 12059 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 12060 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 12061 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12062 | /* confdefs.h. */ |
| 12063 | _ACEOF |
| 12064 | cat confdefs.h >>conftest.$ac_ext |
| 12065 | cat >>conftest.$ac_ext <<_ACEOF |
| 12066 | /* end confdefs.h. */ |
| 12067 | #include <$ac_header> |
| 12068 | _ACEOF |
| 12069 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12070 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12071 | ac_status=$? |
| 12072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12073 | rm -f conftest.er1 |
| 12074 | cat conftest.err >&5 |
| 12075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12076 | (exit $ac_status); } >/dev/null; then |
| 12077 | if test -s conftest.err; then |
| 12078 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12079 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12080 | else |
| 12081 | ac_cpp_err= |
| 12082 | fi |
| 12083 | else |
| 12084 | ac_cpp_err=yes |
| 12085 | fi |
| 12086 | if test -z "$ac_cpp_err"; then |
| 12087 | ac_header_preproc=yes |
| 12088 | else |
| 12089 | echo "$as_me: failed program was:" >&5 |
| 12090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12091 | |
| 12092 | ac_header_preproc=no |
| 12093 | fi |
| 12094 | rm -f conftest.err conftest.$ac_ext |
| 12095 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12096 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12097 | |
| 12098 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12099 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12100 | yes:no: ) |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12101 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12102 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12103 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12104 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12105 | ac_header_preproc=yes |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12106 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12107 | no:yes:* ) |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12108 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12109 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12110 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12111 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12112 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12113 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12114 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12115 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12117 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12118 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12119 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12120 | ( |
| 12121 | cat <<\_ASBOX |
| 12122 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12123 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12124 | ## ------------------------------------ ## |
| 12125 | _ASBOX |
| 12126 | ) | |
| 12127 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12128 | ;; |
| 12129 | esac |
| 12130 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12132 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12134 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12135 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12136 | fi |
| 12137 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12138 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12139 | |
| 12140 | fi |
| 12141 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12142 | cat >>confdefs.h <<_ACEOF |
| 12143 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12144 | _ACEOF |
| 12145 | |
| 12146 | echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5 |
| 12147 | echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6 |
| 12148 | if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then |
| 12149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12150 | else |
| 12151 | ac_check_lib_save_LIBS=$LIBS |
| 12152 | LIBS="-lcapi20 $LIBS" |
| 12153 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12154 | /* confdefs.h. */ |
| 12155 | _ACEOF |
| 12156 | cat confdefs.h >>conftest.$ac_ext |
| 12157 | cat >>conftest.$ac_ext <<_ACEOF |
| 12158 | /* end confdefs.h. */ |
| 12159 | |
| 12160 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12161 | #ifdef __cplusplus |
| 12162 | extern "C" |
| 12163 | #endif |
| 12164 | /* We use char because int might match the return type of a gcc2 |
| 12165 | builtin and then its argument prototype would still apply. */ |
| 12166 | char capi20_register (); |
| 12167 | int |
| 12168 | main () |
| 12169 | { |
| 12170 | capi20_register (); |
| 12171 | ; |
| 12172 | return 0; |
| 12173 | } |
| 12174 | _ACEOF |
| 12175 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12177 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12178 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12180 | rm -f conftest.er1 |
| 12181 | cat conftest.err >&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12183 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12186 | (eval $ac_try) 2>&5 |
| 12187 | ac_status=$? |
| 12188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12189 | (exit $ac_status); }; } && |
| 12190 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12192 | (eval $ac_try) 2>&5 |
| 12193 | ac_status=$? |
| 12194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12195 | (exit $ac_status); }; }; then |
| 12196 | ac_cv_lib_capi20_capi20_register=yes |
| 12197 | else |
| 12198 | echo "$as_me: failed program was:" >&5 |
| 12199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12200 | |
| 12201 | ac_cv_lib_capi20_capi20_register=no |
| 12202 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12203 | rm -f conftest.err conftest.$ac_objext \ |
| 12204 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12205 | LIBS=$ac_check_lib_save_LIBS |
| 12206 | fi |
| 12207 | echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5 |
| 12208 | echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6 |
| 12209 | if test $ac_cv_lib_capi20_capi20_register = yes; then |
| 12210 | |
| 12211 | |
| 12212 | cat >>confdefs.h <<\_ACEOF |
| 12213 | #define HAVE_CAPI4LINUX 1 |
| 12214 | _ACEOF |
| 12215 | |
| 12216 | CAPI4LINUXLIBS="-lcapi20" |
| 12217 | |
| 12218 | |
| 12219 | fi |
| 12220 | |
| 12221 | |
| 12222 | fi |
| 12223 | |
| 12224 | done |
| 12225 | |
| 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 whether mmap64 works defined as mmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12234 | echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6 |
| 12235 | if test "${ac_cv_mmap64_works+set}" = set; then |
| 12236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12237 | else |
| 12238 | if test "$cross_compiling" = yes; then |
| 12239 | ac_cv_mmap64_works="no" |
| 12240 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12241 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12242 | /* confdefs.h. */ |
| 12243 | _ACEOF |
| 12244 | cat confdefs.h >>conftest.$ac_ext |
| 12245 | cat >>conftest.$ac_ext <<_ACEOF |
| 12246 | /* end confdefs.h. */ |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12247 | |
| 12248 | #define _FILE_OFFSET_BITS 64 |
| 12249 | #include <stdio.h> |
| 12250 | #include <unistd.h> |
| 12251 | #include <fcntl.h> |
| 12252 | #include <sys/mman.h> |
| 12253 | #include <errno.h> |
| 12254 | |
| 12255 | int main(int argc,char **argv) { |
| 12256 | int fd = open("conftest.map",O_CREAT|O_RDWR,0600); |
| 12257 | if (fd == -1) exit(1); |
| 12258 | |
| 12259 | unlink("conftest.map"); |
| 12260 | |
| 12261 | write(fd,"test",4); |
| 12262 | |
| 12263 | if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) && |
| 12264 | (errno == EINVAL) |
| 12265 | ) { |
| 12266 | exit(1); |
| 12267 | } |
| 12268 | close(fd); |
| 12269 | fprintf(stderr,"success!\n"); |
| 12270 | exit(0); |
| 12271 | } |
| 12272 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12273 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12274 | _ACEOF |
| 12275 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12277 | (eval $ac_link) 2>&5 |
| 12278 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12280 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12282 | (eval $ac_try) 2>&5 |
| 12283 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12285 | (exit $ac_status); }; }; then |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12286 | ac_cv_mmap64_works="yes" |
| 12287 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12288 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12289 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12291 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12292 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12293 | ac_cv_mmap64_works="no" |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12294 | fi |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12295 | rm -f 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] | 12296 | fi |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12297 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12298 | echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12299 | echo "${ECHO_T}$ac_cv_mmap64_works" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12300 | |
| 12301 | if test "$ac_cv_mmap64_works" = "yes" |
| 12302 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12303 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12304 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12305 | #define _FILE_OFFSET_BITS 64 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12306 | _ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12307 | |
| 12308 | fi |
| 12309 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12310 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12311 | EXTRACFLAGS="" |
| 12312 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12313 | if test "x${GCC}" = "xyes" |
| 12314 | then |
Hans Leidekker | d17b232 | 2004-01-06 21:37:44 +0000 | [diff] [blame] | 12315 | EXTRACFLAGS="-Wall -pipe" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12316 | |
| 12317 | echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12318 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6 |
| 12319 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
| 12320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12321 | else |
| 12322 | if test "$cross_compiling" = yes; then |
| 12323 | ac_cv_c_gcc_strength_bug="yes" |
| 12324 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12325 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12326 | /* confdefs.h. */ |
| 12327 | _ACEOF |
| 12328 | cat confdefs.h >>conftest.$ac_ext |
| 12329 | cat >>conftest.$ac_ext <<_ACEOF |
| 12330 | /* end confdefs.h. */ |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12331 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 12332 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12333 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 12334 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12335 | unsigned int B = 3; |
| 12336 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 12337 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 12338 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 12339 | L[i] = 4; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12340 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 12341 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12342 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12343 | _ACEOF |
| 12344 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12346 | (eval $ac_link) 2>&5 |
| 12347 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12349 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
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 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12355 | ac_cv_c_gcc_strength_bug="no" |
| 12356 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12357 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12358 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12360 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12361 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12362 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12363 | fi |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12364 | rm -f 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] | 12365 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12366 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12367 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12368 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12369 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 12370 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12371 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12372 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12373 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 12374 | echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5 |
| 12375 | echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6 |
| 12376 | if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then |
| 12377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12378 | else |
| 12379 | ac_wine_try_cflags_saved=$CFLAGS |
| 12380 | CFLAGS="$CFLAGS -fshort-wchar" |
| 12381 | cat >conftest.$ac_ext <<_ACEOF |
| 12382 | /* confdefs.h. */ |
| 12383 | _ACEOF |
| 12384 | cat confdefs.h >>conftest.$ac_ext |
| 12385 | cat >>conftest.$ac_ext <<_ACEOF |
| 12386 | /* end confdefs.h. */ |
| 12387 | |
| 12388 | int |
| 12389 | main () |
| 12390 | { |
| 12391 | |
| 12392 | ; |
| 12393 | return 0; |
| 12394 | } |
| 12395 | _ACEOF |
| 12396 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12398 | (eval $ac_link) 2>conftest.er1 |
| 12399 | ac_status=$? |
| 12400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12401 | rm -f conftest.er1 |
| 12402 | cat conftest.err >&5 |
| 12403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12404 | (exit $ac_status); } && |
| 12405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12407 | (eval $ac_try) 2>&5 |
| 12408 | ac_status=$? |
| 12409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12410 | (exit $ac_status); }; } && |
| 12411 | { ac_try='test -s conftest$ac_exeext' |
| 12412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12413 | (eval $ac_try) 2>&5 |
| 12414 | ac_status=$? |
| 12415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12416 | (exit $ac_status); }; }; then |
| 12417 | ac_cv_c_gcc_fshort_wchar="yes" |
| 12418 | else |
| 12419 | echo "$as_me: failed program was:" >&5 |
| 12420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12421 | |
| 12422 | ac_cv_c_gcc_fshort_wchar="no" |
| 12423 | fi |
| 12424 | rm -f conftest.err conftest.$ac_objext \ |
| 12425 | conftest$ac_exeext conftest.$ac_ext |
| 12426 | CFLAGS=$ac_wine_try_cflags_saved |
| 12427 | fi |
| 12428 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5 |
| 12429 | echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6 |
| 12430 | if test "$ac_cv_c_gcc_fshort_wchar" = "yes" |
| 12431 | then |
| 12432 | |
| 12433 | cat >>confdefs.h <<\_ACEOF |
| 12434 | #define CC_FLAG_SHORT_WCHAR "-fshort-wchar" |
| 12435 | _ACEOF |
| 12436 | |
| 12437 | fi |
| 12438 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12439 | 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] | 12440 | echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6 |
| 12441 | if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then |
| 12442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12443 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12444 | ac_wine_try_cflags_saved=$CFLAGS |
| 12445 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 12446 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12447 | /* confdefs.h. */ |
| 12448 | _ACEOF |
| 12449 | cat confdefs.h >>conftest.$ac_ext |
| 12450 | cat >>conftest.$ac_ext <<_ACEOF |
| 12451 | /* end confdefs.h. */ |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12452 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12453 | int |
| 12454 | main () |
| 12455 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12456 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12457 | ; |
| 12458 | return 0; |
| 12459 | } |
| 12460 | _ACEOF |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12461 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12463 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12464 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12466 | rm -f conftest.er1 |
| 12467 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12469 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12470 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12472 | (eval $ac_try) 2>&5 |
| 12473 | ac_status=$? |
| 12474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12475 | (exit $ac_status); }; } && |
| 12476 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12478 | (eval $ac_try) 2>&5 |
| 12479 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12481 | (exit $ac_status); }; }; then |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12482 | ac_cv_c_gcc_stack_boundary="yes" |
| 12483 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12484 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12486 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12487 | ac_cv_c_gcc_stack_boundary="no" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12488 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12489 | rm -f conftest.err conftest.$ac_objext \ |
| 12490 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12491 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12492 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12493 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12494 | echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12495 | if test "$ac_cv_c_gcc_stack_boundary" = "yes" |
| 12496 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12497 | EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12498 | fi |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12499 | |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12500 | echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5 |
| 12501 | echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6 |
| 12502 | if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then |
| 12503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12504 | else |
| 12505 | ac_wine_try_cflags_saved=$CFLAGS |
| 12506 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
| 12507 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12508 | /* confdefs.h. */ |
| 12509 | _ACEOF |
| 12510 | cat confdefs.h >>conftest.$ac_ext |
| 12511 | cat >>conftest.$ac_ext <<_ACEOF |
| 12512 | /* end confdefs.h. */ |
| 12513 | |
| 12514 | int |
| 12515 | main () |
| 12516 | { |
| 12517 | |
| 12518 | ; |
| 12519 | return 0; |
| 12520 | } |
| 12521 | _ACEOF |
| 12522 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12524 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12525 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12526 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12527 | rm -f conftest.er1 |
| 12528 | cat conftest.err >&5 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12530 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12531 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12533 | (eval $ac_try) 2>&5 |
| 12534 | ac_status=$? |
| 12535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12536 | (exit $ac_status); }; } && |
| 12537 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12539 | (eval $ac_try) 2>&5 |
| 12540 | ac_status=$? |
| 12541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12542 | (exit $ac_status); }; }; then |
| 12543 | ac_cv_c_gcc_no_strict_aliasing="yes" |
| 12544 | else |
| 12545 | echo "$as_me: failed program was:" >&5 |
| 12546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12547 | |
| 12548 | ac_cv_c_gcc_no_strict_aliasing="no" |
| 12549 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12550 | rm -f conftest.err conftest.$ac_objext \ |
| 12551 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12552 | CFLAGS=$ac_wine_try_cflags_saved |
| 12553 | fi |
| 12554 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5 |
| 12555 | echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6 |
| 12556 | if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes" |
| 12557 | then |
| 12558 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" |
| 12559 | fi |
| 12560 | |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12561 | echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5 |
| 12562 | echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6 |
| 12563 | if test "${ac_cv_c_gcc_gstabs+set}" = set; then |
| 12564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12565 | else |
| 12566 | ac_wine_try_cflags_saved=$CFLAGS |
| 12567 | CFLAGS="$CFLAGS -gstabs+" |
| 12568 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12569 | /* confdefs.h. */ |
| 12570 | _ACEOF |
| 12571 | cat confdefs.h >>conftest.$ac_ext |
| 12572 | cat >>conftest.$ac_ext <<_ACEOF |
| 12573 | /* end confdefs.h. */ |
| 12574 | |
| 12575 | int |
| 12576 | main () |
| 12577 | { |
| 12578 | |
| 12579 | ; |
| 12580 | return 0; |
| 12581 | } |
| 12582 | _ACEOF |
| 12583 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12585 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12586 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12588 | rm -f conftest.er1 |
| 12589 | cat conftest.err >&5 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12591 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12592 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12594 | (eval $ac_try) 2>&5 |
| 12595 | ac_status=$? |
| 12596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12597 | (exit $ac_status); }; } && |
| 12598 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12600 | (eval $ac_try) 2>&5 |
| 12601 | ac_status=$? |
| 12602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12603 | (exit $ac_status); }; }; then |
| 12604 | ac_cv_c_gcc_gstabs="yes" |
| 12605 | else |
| 12606 | echo "$as_me: failed program was:" >&5 |
| 12607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12608 | |
| 12609 | ac_cv_c_gcc_gstabs="no" |
| 12610 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12611 | rm -f conftest.err conftest.$ac_objext \ |
| 12612 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12613 | CFLAGS=$ac_wine_try_cflags_saved |
| 12614 | fi |
| 12615 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5 |
| 12616 | echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6 |
| 12617 | if test "$ac_cv_c_gcc_gstabs" = "yes" |
| 12618 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12619 | EXTRACFLAGS="$EXTRACFLAGS -gstabs+" |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12620 | fi |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12621 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12622 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12623 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
| 12624 | echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5 |
| 12625 | echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6 |
| 12626 | if test "${ac_cv_c_string_h_warnings+set}" = set; then |
| 12627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12628 | else |
| 12629 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12630 | /* confdefs.h. */ |
| 12631 | _ACEOF |
| 12632 | cat confdefs.h >>conftest.$ac_ext |
| 12633 | cat >>conftest.$ac_ext <<_ACEOF |
| 12634 | /* end confdefs.h. */ |
| 12635 | #include <string.h> |
| 12636 | int |
| 12637 | main () |
| 12638 | { |
| 12639 | |
| 12640 | ; |
| 12641 | return 0; |
| 12642 | } |
| 12643 | _ACEOF |
| 12644 | rm -f conftest.$ac_objext |
| 12645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12646 | (eval $ac_compile) 2>conftest.er1 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12647 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12649 | rm -f conftest.er1 |
| 12650 | cat conftest.err >&5 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12652 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12653 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12655 | (eval $ac_try) 2>&5 |
| 12656 | ac_status=$? |
| 12657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12658 | (exit $ac_status); }; } && |
| 12659 | { ac_try='test -s conftest.$ac_objext' |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12661 | (eval $ac_try) 2>&5 |
| 12662 | ac_status=$? |
| 12663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12664 | (exit $ac_status); }; }; then |
| 12665 | ac_cv_c_string_h_warnings=no |
| 12666 | else |
| 12667 | echo "$as_me: failed program was:" >&5 |
| 12668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12669 | |
| 12670 | ac_cv_c_string_h_warnings=yes |
| 12671 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12673 | fi |
| 12674 | echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5 |
| 12675 | echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6 |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12676 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12677 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 12678 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12679 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12680 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12681 | fi |
| 12682 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12683 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12684 | echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5 |
| 12685 | echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6 |
| 12686 | if test "${ac_cv_asm_func_def+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12688 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12689 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12690 | /* confdefs.h. */ |
| 12691 | _ACEOF |
| 12692 | cat confdefs.h >>conftest.$ac_ext |
| 12693 | cat >>conftest.$ac_ext <<_ACEOF |
| 12694 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 12695 | 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] | 12696 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12697 | int |
| 12698 | main () |
| 12699 | { |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12700 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12701 | ; |
| 12702 | return 0; |
| 12703 | } |
| 12704 | _ACEOF |
| 12705 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12707 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12708 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12709 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12710 | rm -f conftest.er1 |
| 12711 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12713 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12714 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12716 | (eval $ac_try) 2>&5 |
| 12717 | ac_status=$? |
| 12718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12719 | (exit $ac_status); }; } && |
| 12720 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12722 | (eval $ac_try) 2>&5 |
| 12723 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12725 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12726 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12727 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12728 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12730 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12731 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12732 | /* confdefs.h. */ |
| 12733 | _ACEOF |
| 12734 | cat confdefs.h >>conftest.$ac_ext |
| 12735 | cat >>conftest.$ac_ext <<_ACEOF |
| 12736 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 12737 | 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] | 12738 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12739 | int |
| 12740 | main () |
| 12741 | { |
| 12742 | |
| 12743 | ; |
| 12744 | return 0; |
| 12745 | } |
| 12746 | _ACEOF |
| 12747 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12749 | (eval $ac_link) 2>conftest.er1 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12750 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12752 | rm -f conftest.er1 |
| 12753 | cat conftest.err >&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12755 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12758 | (eval $ac_try) 2>&5 |
| 12759 | ac_status=$? |
| 12760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12761 | (exit $ac_status); }; } && |
| 12762 | { ac_try='test -s conftest$ac_exeext' |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12764 | (eval $ac_try) 2>&5 |
| 12765 | ac_status=$? |
| 12766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12767 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12768 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12769 | else |
| 12770 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12772 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12773 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12774 | /* confdefs.h. */ |
| 12775 | _ACEOF |
| 12776 | cat confdefs.h >>conftest.$ac_ext |
| 12777 | cat >>conftest.$ac_ext <<_ACEOF |
| 12778 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 12779 | 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] | 12780 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12781 | int |
| 12782 | main () |
| 12783 | { |
| 12784 | |
| 12785 | ; |
| 12786 | return 0; |
| 12787 | } |
| 12788 | _ACEOF |
| 12789 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12791 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12792 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12793 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12794 | rm -f conftest.er1 |
| 12795 | cat conftest.err >&5 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12797 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12800 | (eval $ac_try) 2>&5 |
| 12801 | ac_status=$? |
| 12802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12803 | (exit $ac_status); }; } && |
| 12804 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12806 | (eval $ac_try) 2>&5 |
| 12807 | ac_status=$? |
| 12808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12809 | (exit $ac_status); }; }; then |
| 12810 | ac_cv_asm_func_def=".type 2" |
| 12811 | else |
| 12812 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12813 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12814 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12815 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12816 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12817 | rm -f conftest.err conftest.$ac_objext \ |
| 12818 | conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12819 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12820 | rm -f conftest.err conftest.$ac_objext \ |
| 12821 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12822 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12823 | rm -f conftest.err conftest.$ac_objext \ |
| 12824 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12825 | fi |
| 12826 | echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5 |
| 12827 | echo "${ECHO_T}$ac_cv_asm_func_def" >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12828 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12829 | |
| 12830 | |
| 12831 | case "$ac_cv_asm_func_def" in |
| 12832 | ".def") |
| 12833 | cat >>confdefs.h <<\_ACEOF |
| 12834 | #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] | 12835 | _ACEOF |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12836 | ;; |
| 12837 | ".type @function") |
| 12838 | cat >>confdefs.h <<\_ACEOF |
| 12839 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function" |
| 12840 | _ACEOF |
| 12841 | ;; |
| 12842 | ".type 2") |
| 12843 | cat >>confdefs.h <<\_ACEOF |
| 12844 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2" |
| 12845 | _ACEOF |
| 12846 | ;; |
| 12847 | *) |
| 12848 | cat >>confdefs.h <<\_ACEOF |
| 12849 | #define __ASM_FUNC(name) "" |
| 12850 | _ACEOF |
| 12851 | ;; |
| 12852 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12853 | |
| 12854 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12855 | 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] | 12856 | echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6 |
| 12857 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
| 12858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12859 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12860 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12861 | /* confdefs.h. */ |
| 12862 | _ACEOF |
| 12863 | cat confdefs.h >>conftest.$ac_ext |
| 12864 | cat >>conftest.$ac_ext <<_ACEOF |
| 12865 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 12866 | 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] | 12867 | extern int ac_test; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12868 | int |
| 12869 | main () |
| 12870 | { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12871 | if (ac_test) return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12872 | ; |
| 12873 | return 0; |
| 12874 | } |
| 12875 | _ACEOF |
| 12876 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12878 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12879 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12881 | rm -f conftest.er1 |
| 12882 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12884 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12887 | (eval $ac_try) 2>&5 |
| 12888 | ac_status=$? |
| 12889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12890 | (exit $ac_status); }; } && |
| 12891 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12893 | (eval $ac_try) 2>&5 |
| 12894 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12896 | (exit $ac_status); }; }; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12897 | ac_cv_c_extern_prefix="yes" |
| 12898 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12899 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12901 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12902 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12903 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12904 | rm -f conftest.err conftest.$ac_objext \ |
| 12905 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12906 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12907 | echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12908 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12909 | |
| 12910 | |
| 12911 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12912 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 12913 | then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12914 | cat >>confdefs.h <<\_ACEOF |
| 12915 | #define __ASM_NAME(name) "_" name |
| 12916 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12917 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12918 | else |
| 12919 | cat >>confdefs.h <<\_ACEOF |
| 12920 | #define __ASM_NAME(name) name |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12921 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12922 | |
| 12923 | fi |
| 12924 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12925 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 12926 | echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5 |
| 12927 | echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12928 | if test "${ac_cv_c_asm_string+set}" = set; then |
| 12929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 12930 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12931 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12932 | /* confdefs.h. */ |
| 12933 | _ACEOF |
| 12934 | cat confdefs.h >>conftest.$ac_ext |
| 12935 | cat >>conftest.$ac_ext <<_ACEOF |
| 12936 | /* end confdefs.h. */ |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 12937 | 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] | 12938 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12939 | int |
| 12940 | main () |
| 12941 | { |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 12942 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12943 | ; |
| 12944 | return 0; |
| 12945 | } |
| 12946 | _ACEOF |
| 12947 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12949 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12950 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12951 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12952 | rm -f conftest.er1 |
| 12953 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12955 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12956 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12958 | (eval $ac_try) 2>&5 |
| 12959 | ac_status=$? |
| 12960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12961 | (exit $ac_status); }; } && |
| 12962 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12964 | (eval $ac_try) 2>&5 |
| 12965 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12967 | (exit $ac_status); }; }; then |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 12968 | ac_cv_c_asm_string=".string" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 12969 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12970 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12972 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 12973 | cat >conftest.$ac_ext <<_ACEOF |
| 12974 | /* confdefs.h. */ |
| 12975 | _ACEOF |
| 12976 | cat confdefs.h >>conftest.$ac_ext |
| 12977 | cat >>conftest.$ac_ext <<_ACEOF |
| 12978 | /* end confdefs.h. */ |
| 12979 | void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); } |
| 12980 | |
| 12981 | int |
| 12982 | main () |
| 12983 | { |
| 12984 | |
| 12985 | ; |
| 12986 | return 0; |
| 12987 | } |
| 12988 | _ACEOF |
| 12989 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12991 | (eval $ac_link) 2>conftest.er1 |
| 12992 | ac_status=$? |
| 12993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12994 | rm -f conftest.er1 |
| 12995 | cat conftest.err >&5 |
| 12996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12997 | (exit $ac_status); } && |
| 12998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13000 | (eval $ac_try) 2>&5 |
| 13001 | ac_status=$? |
| 13002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13003 | (exit $ac_status); }; } && |
| 13004 | { ac_try='test -s conftest$ac_exeext' |
| 13005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13006 | (eval $ac_try) 2>&5 |
| 13007 | ac_status=$? |
| 13008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13009 | (exit $ac_status); }; }; then |
| 13010 | ac_cv_c_asm_string=".asciz" |
| 13011 | else |
| 13012 | echo "$as_me: failed program was:" >&5 |
| 13013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13014 | |
| 13015 | cat >conftest.$ac_ext <<_ACEOF |
| 13016 | /* confdefs.h. */ |
| 13017 | _ACEOF |
| 13018 | cat confdefs.h >>conftest.$ac_ext |
| 13019 | cat >>conftest.$ac_ext <<_ACEOF |
| 13020 | /* end confdefs.h. */ |
| 13021 | void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); } |
| 13022 | |
| 13023 | int |
| 13024 | main () |
| 13025 | { |
| 13026 | |
| 13027 | ; |
| 13028 | return 0; |
| 13029 | } |
| 13030 | _ACEOF |
| 13031 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13033 | (eval $ac_link) 2>conftest.er1 |
| 13034 | ac_status=$? |
| 13035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13036 | rm -f conftest.er1 |
| 13037 | cat conftest.err >&5 |
| 13038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13039 | (exit $ac_status); } && |
| 13040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13042 | (eval $ac_try) 2>&5 |
| 13043 | ac_status=$? |
| 13044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13045 | (exit $ac_status); }; } && |
| 13046 | { ac_try='test -s conftest$ac_exeext' |
| 13047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13048 | (eval $ac_try) 2>&5 |
| 13049 | ac_status=$? |
| 13050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13051 | (exit $ac_status); }; }; then |
| 13052 | ac_cv_c_asm_string=".ascii" |
| 13053 | else |
| 13054 | echo "$as_me: failed program was:" >&5 |
| 13055 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13056 | |
| 13057 | { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5 |
| 13058 | echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;} |
| 13059 | { (exit 1); exit 1; }; } |
| 13060 | fi |
| 13061 | rm -f conftest.err conftest.$ac_objext \ |
| 13062 | conftest$ac_exeext conftest.$ac_ext |
| 13063 | fi |
| 13064 | rm -f conftest.err conftest.$ac_objext \ |
| 13065 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 13066 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13067 | rm -f conftest.err conftest.$ac_objext \ |
| 13068 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 13069 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13070 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13071 | echo "${ECHO_T}$ac_cv_c_asm_string" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13072 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13073 | |
| 13074 | cat >>confdefs.h <<_ACEOF |
| 13075 | #define __ASM_STRING "$ac_cv_c_asm_string" |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13076 | _ACEOF |
| 13077 | |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13078 | |
| 13079 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13080 | echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5 |
| 13081 | echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6 |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13082 | if test "${ac_cv_c_asm_short+set}" = set; then |
| 13083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13084 | else |
| 13085 | cat >conftest.$ac_ext <<_ACEOF |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13086 | /* confdefs.h. */ |
| 13087 | _ACEOF |
| 13088 | cat confdefs.h >>conftest.$ac_ext |
| 13089 | cat >>conftest.$ac_ext <<_ACEOF |
| 13090 | /* end confdefs.h. */ |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13091 | void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); } |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13092 | |
| 13093 | int |
| 13094 | main () |
| 13095 | { |
| 13096 | |
| 13097 | ; |
| 13098 | return 0; |
| 13099 | } |
| 13100 | _ACEOF |
| 13101 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13103 | (eval $ac_link) 2>conftest.er1 |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13104 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13106 | rm -f conftest.er1 |
| 13107 | cat conftest.err >&5 |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13109 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13112 | (eval $ac_try) 2>&5 |
| 13113 | ac_status=$? |
| 13114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13115 | (exit $ac_status); }; } && |
| 13116 | { ac_try='test -s conftest$ac_exeext' |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13118 | (eval $ac_try) 2>&5 |
| 13119 | ac_status=$? |
| 13120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13121 | (exit $ac_status); }; }; then |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13122 | ac_cv_c_asm_short=".short" |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13123 | else |
| 13124 | echo "$as_me: failed program was:" >&5 |
| 13125 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13126 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13127 | cat >conftest.$ac_ext <<_ACEOF |
| 13128 | /* confdefs.h. */ |
| 13129 | _ACEOF |
| 13130 | cat confdefs.h >>conftest.$ac_ext |
| 13131 | cat >>conftest.$ac_ext <<_ACEOF |
| 13132 | /* end confdefs.h. */ |
| 13133 | void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); } |
| 13134 | |
| 13135 | int |
| 13136 | main () |
| 13137 | { |
| 13138 | |
| 13139 | ; |
| 13140 | return 0; |
| 13141 | } |
| 13142 | _ACEOF |
| 13143 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13145 | (eval $ac_link) 2>conftest.er1 |
| 13146 | ac_status=$? |
| 13147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13148 | rm -f conftest.er1 |
| 13149 | cat conftest.err >&5 |
| 13150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13151 | (exit $ac_status); } && |
| 13152 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13154 | (eval $ac_try) 2>&5 |
| 13155 | ac_status=$? |
| 13156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13157 | (exit $ac_status); }; } && |
| 13158 | { ac_try='test -s conftest$ac_exeext' |
| 13159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13160 | (eval $ac_try) 2>&5 |
| 13161 | ac_status=$? |
| 13162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13163 | (exit $ac_status); }; }; then |
| 13164 | ac_cv_c_asm_short=".half" |
| 13165 | else |
| 13166 | echo "$as_me: failed program was:" >&5 |
| 13167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13168 | |
| 13169 | { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5 |
| 13170 | echo "$as_me: error: could not discover how to specify word values with assembler." >&2;} |
| 13171 | { (exit 1); exit 1; }; } |
| 13172 | fi |
| 13173 | rm -f conftest.err conftest.$ac_objext \ |
| 13174 | conftest$ac_exeext conftest.$ac_ext |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13175 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13176 | rm -f conftest.err conftest.$ac_objext \ |
| 13177 | conftest$ac_exeext conftest.$ac_ext |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13178 | fi |
| 13179 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5 |
| 13180 | echo "${ECHO_T}$ac_cv_c_asm_short" >&6 |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13181 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13182 | |
| 13183 | cat >>confdefs.h <<_ACEOF |
| 13184 | #define __ASM_SHORT "$ac_cv_c_asm_short" |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13185 | _ACEOF |
| 13186 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 13187 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13188 | |
Pierre d'Herbemont | 68467db | 2004-06-18 19:36:26 +0000 | [diff] [blame] | 13189 | echo "$as_me:$LINENO: checking for .size in assembler" >&5 |
| 13190 | echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6 |
| 13191 | if test "${ac_cv_c_asm_size+set}" = set; then |
| 13192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13193 | else |
| 13194 | cat >conftest.$ac_ext <<_ACEOF |
| 13195 | /* confdefs.h. */ |
| 13196 | _ACEOF |
| 13197 | cat confdefs.h >>conftest.$ac_ext |
| 13198 | cat >>conftest.$ac_ext <<_ACEOF |
| 13199 | /* end confdefs.h. */ |
| 13200 | void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); } |
| 13201 | |
| 13202 | int |
| 13203 | main () |
| 13204 | { |
| 13205 | |
| 13206 | ; |
| 13207 | return 0; |
| 13208 | } |
| 13209 | _ACEOF |
| 13210 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13212 | (eval $ac_link) 2>conftest.er1 |
| 13213 | ac_status=$? |
| 13214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13215 | rm -f conftest.er1 |
| 13216 | cat conftest.err >&5 |
| 13217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13218 | (exit $ac_status); } && |
| 13219 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13221 | (eval $ac_try) 2>&5 |
| 13222 | ac_status=$? |
| 13223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13224 | (exit $ac_status); }; } && |
| 13225 | { ac_try='test -s conftest$ac_exeext' |
| 13226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13227 | (eval $ac_try) 2>&5 |
| 13228 | ac_status=$? |
| 13229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13230 | (exit $ac_status); }; }; then |
| 13231 | ac_cv_c_asm_size="yes" |
| 13232 | else |
| 13233 | echo "$as_me: failed program was:" >&5 |
| 13234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13235 | |
| 13236 | ac_cv_c_asm_size="no" |
| 13237 | fi |
| 13238 | rm -f conftest.err conftest.$ac_objext \ |
| 13239 | conftest$ac_exeext conftest.$ac_ext |
| 13240 | fi |
| 13241 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5 |
| 13242 | echo "${ECHO_T}$ac_cv_c_asm_size" >&6 |
| 13243 | |
| 13244 | if test "$ac_cv_c_asm_size" = "yes" |
| 13245 | then |
| 13246 | |
| 13247 | cat >>confdefs.h <<\_ACEOF |
| 13248 | #define HAVE_ASM_DOT_SIZE 1 |
| 13249 | _ACEOF |
| 13250 | |
| 13251 | fi |
| 13252 | |
| 13253 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13254 | DLLEXT="" |
| 13255 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 13256 | DLLFLAGS="-D_REENTRANT" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13257 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13258 | DLLIBS="" |
| 13259 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13260 | LDSHARED="" |
| 13261 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13262 | LDDLLFLAGS="" |
Alexandre Julliard | 6ac34ac | 2003-10-11 01:05:18 +0000 | [diff] [blame] | 13263 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 13264 | LIBEXT="so" |
| 13265 | |
| 13266 | IMPLIBEXT="def" |
| 13267 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13268 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13269 | case $host_os in |
| 13270 | cygwin*|mingw32*) |
| 13271 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 13272 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 13273 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 13274 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13276 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 13277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13278 | else |
| 13279 | if test -n "$DLLTOOL"; then |
| 13280 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 13281 | else |
| 13282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13283 | for as_dir in $PATH |
| 13284 | do |
| 13285 | IFS=$as_save_IFS |
| 13286 | test -z "$as_dir" && as_dir=. |
| 13287 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13289 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 13290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13291 | break 2 |
| 13292 | fi |
| 13293 | done |
| 13294 | done |
| 13295 | |
| 13296 | fi |
| 13297 | fi |
| 13298 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 13299 | if test -n "$DLLTOOL"; then |
| 13300 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 13301 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 13302 | else |
| 13303 | echo "$as_me:$LINENO: result: no" >&5 |
| 13304 | echo "${ECHO_T}no" >&6 |
| 13305 | fi |
| 13306 | |
| 13307 | fi |
| 13308 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 13309 | ac_ct_DLLTOOL=$DLLTOOL |
| 13310 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 13311 | set dummy dlltool; ac_word=$2 |
| 13312 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13314 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 13315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13316 | else |
| 13317 | if test -n "$ac_ct_DLLTOOL"; then |
| 13318 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 13319 | else |
| 13320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13321 | for as_dir in $PATH |
| 13322 | do |
| 13323 | IFS=$as_save_IFS |
| 13324 | test -z "$as_dir" && as_dir=. |
| 13325 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13326 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13327 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 13328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13329 | break 2 |
| 13330 | fi |
| 13331 | done |
| 13332 | done |
| 13333 | |
| 13334 | test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" |
| 13335 | fi |
| 13336 | fi |
| 13337 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 13338 | if test -n "$ac_ct_DLLTOOL"; then |
| 13339 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 13340 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 |
| 13341 | else |
| 13342 | echo "$as_me:$LINENO: result: no" >&5 |
| 13343 | echo "${ECHO_T}no" >&6 |
| 13344 | fi |
| 13345 | |
| 13346 | DLLTOOL=$ac_ct_DLLTOOL |
| 13347 | else |
| 13348 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 13349 | fi |
| 13350 | |
| 13351 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13352 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 13353 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 13354 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13356 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
| 13357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13358 | else |
| 13359 | if test -n "$DLLWRAP"; then |
| 13360 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 13361 | else |
| 13362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13363 | for as_dir in $PATH |
| 13364 | do |
| 13365 | IFS=$as_save_IFS |
| 13366 | test -z "$as_dir" && as_dir=. |
| 13367 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13368 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13369 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 13370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13371 | break 2 |
| 13372 | fi |
| 13373 | done |
| 13374 | done |
| 13375 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 13376 | fi |
| 13377 | fi |
| 13378 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 13379 | if test -n "$DLLWRAP"; then |
| 13380 | echo "$as_me:$LINENO: result: $DLLWRAP" >&5 |
| 13381 | echo "${ECHO_T}$DLLWRAP" >&6 |
| 13382 | else |
| 13383 | echo "$as_me:$LINENO: result: no" >&5 |
| 13384 | echo "${ECHO_T}no" >&6 |
| 13385 | fi |
| 13386 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13387 | fi |
| 13388 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 13389 | ac_ct_DLLWRAP=$DLLWRAP |
| 13390 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 13391 | set dummy dllwrap; ac_word=$2 |
| 13392 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13393 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13394 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then |
| 13395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13396 | else |
| 13397 | if test -n "$ac_ct_DLLWRAP"; then |
| 13398 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 13399 | else |
| 13400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13401 | for as_dir in $PATH |
| 13402 | do |
| 13403 | IFS=$as_save_IFS |
| 13404 | test -z "$as_dir" && as_dir=. |
| 13405 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13406 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13407 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
| 13408 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13409 | break 2 |
| 13410 | fi |
| 13411 | done |
| 13412 | done |
| 13413 | |
| 13414 | test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false" |
| 13415 | fi |
| 13416 | fi |
| 13417 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 13418 | if test -n "$ac_ct_DLLWRAP"; then |
| 13419 | echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 |
| 13420 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6 |
| 13421 | else |
| 13422 | echo "$as_me:$LINENO: result: no" >&5 |
| 13423 | echo "${ECHO_T}no" >&6 |
| 13424 | fi |
| 13425 | |
| 13426 | DLLWRAP=$ac_ct_DLLWRAP |
| 13427 | else |
| 13428 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 13429 | fi |
| 13430 | |
| 13431 | if test "$DLLWRAP" = "false"; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13432 | LIBEXT="a" |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13433 | else |
| 13434 | LIBEXT="dll" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13435 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 13436 | IMPLIBEXT="a" |
Alexandre Julliard | 56a4a76 | 2004-08-12 03:27:50 +0000 | [diff] [blame] | 13437 | WIN16_FILES="" |
| 13438 | WIN16_INSTALL="" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13439 | ;; |
| 13440 | *) |
| 13441 | |
| 13442 | for ac_header in dlfcn.h |
| 13443 | do |
| 13444 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13445 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13446 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13447 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13448 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13450 | fi |
| 13451 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13452 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13453 | else |
| 13454 | # Is the header compilable? |
| 13455 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13456 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13457 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13458 | /* confdefs.h. */ |
| 13459 | _ACEOF |
| 13460 | cat confdefs.h >>conftest.$ac_ext |
| 13461 | cat >>conftest.$ac_ext <<_ACEOF |
| 13462 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13463 | $ac_includes_default |
| 13464 | #include <$ac_header> |
| 13465 | _ACEOF |
| 13466 | rm -f conftest.$ac_objext |
| 13467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13468 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13469 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13470 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13471 | rm -f conftest.er1 |
| 13472 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13474 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13477 | (eval $ac_try) 2>&5 |
| 13478 | ac_status=$? |
| 13479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13480 | (exit $ac_status); }; } && |
| 13481 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13483 | (eval $ac_try) 2>&5 |
| 13484 | ac_status=$? |
| 13485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13486 | (exit $ac_status); }; }; then |
| 13487 | ac_header_compiler=yes |
| 13488 | else |
| 13489 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13491 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13492 | ac_header_compiler=no |
| 13493 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13495 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13496 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13497 | |
| 13498 | # Is the header present? |
| 13499 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 13500 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 13501 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13502 | /* confdefs.h. */ |
| 13503 | _ACEOF |
| 13504 | cat confdefs.h >>conftest.$ac_ext |
| 13505 | cat >>conftest.$ac_ext <<_ACEOF |
| 13506 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13507 | #include <$ac_header> |
| 13508 | _ACEOF |
| 13509 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13510 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13511 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13512 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13513 | rm -f conftest.er1 |
| 13514 | cat conftest.err >&5 |
| 13515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13516 | (exit $ac_status); } >/dev/null; then |
| 13517 | if test -s conftest.err; then |
| 13518 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13519 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13520 | else |
| 13521 | ac_cpp_err= |
| 13522 | fi |
| 13523 | else |
| 13524 | ac_cpp_err=yes |
| 13525 | fi |
| 13526 | if test -z "$ac_cpp_err"; then |
| 13527 | ac_header_preproc=yes |
| 13528 | else |
| 13529 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13530 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13531 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13532 | ac_header_preproc=no |
| 13533 | fi |
| 13534 | rm -f conftest.err conftest.$ac_ext |
| 13535 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13536 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13537 | |
| 13538 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13539 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13540 | yes:no: ) |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13541 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13542 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13543 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 13544 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 13545 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13546 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13547 | no:yes:* ) |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13548 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13549 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13550 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13551 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13552 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 13553 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 13554 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 13555 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13556 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13557 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13558 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 13559 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13560 | ( |
| 13561 | cat <<\_ASBOX |
| 13562 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13563 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13564 | ## ------------------------------------ ## |
| 13565 | _ASBOX |
| 13566 | ) | |
| 13567 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13568 | ;; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13569 | esac |
| 13570 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13571 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13572 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13574 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13575 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13576 | fi |
| 13577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13578 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13579 | |
| 13580 | fi |
| 13581 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13582 | cat >>confdefs.h <<_ACEOF |
| 13583 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13584 | _ACEOF |
| 13585 | |
| 13586 | for ac_func in dlopen |
| 13587 | do |
| 13588 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13589 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13590 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13591 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13593 | else |
| 13594 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13595 | /* confdefs.h. */ |
| 13596 | _ACEOF |
| 13597 | cat confdefs.h >>conftest.$ac_ext |
| 13598 | cat >>conftest.$ac_ext <<_ACEOF |
| 13599 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13600 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13601 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13602 | #define $ac_func innocuous_$ac_func |
| 13603 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13604 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13605 | which can conflict with char $ac_func (); below. |
| 13606 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13607 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13608 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13609 | #ifdef __STDC__ |
| 13610 | # include <limits.h> |
| 13611 | #else |
| 13612 | # include <assert.h> |
| 13613 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13614 | |
| 13615 | #undef $ac_func |
| 13616 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13617 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13618 | #ifdef __cplusplus |
| 13619 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13620 | { |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13621 | #endif |
| 13622 | /* We use char because int might match the return type of a gcc2 |
| 13623 | builtin and then its argument prototype would still apply. */ |
| 13624 | char $ac_func (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13625 | /* The GNU C library defines this for functions which it implements |
| 13626 | to always fail with ENOSYS. Some functions are actually named |
| 13627 | something starting with __ and the normal name is an alias. */ |
| 13628 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13629 | choke me |
| 13630 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13631 | char (*f) () = $ac_func; |
| 13632 | #endif |
| 13633 | #ifdef __cplusplus |
| 13634 | } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13635 | #endif |
| 13636 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13637 | int |
| 13638 | main () |
| 13639 | { |
| 13640 | return f != $ac_func; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13641 | ; |
| 13642 | return 0; |
| 13643 | } |
| 13644 | _ACEOF |
| 13645 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13647 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13648 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13650 | rm -f conftest.er1 |
| 13651 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13653 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13654 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13656 | (eval $ac_try) 2>&5 |
| 13657 | ac_status=$? |
| 13658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13659 | (exit $ac_status); }; } && |
| 13660 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13662 | (eval $ac_try) 2>&5 |
| 13663 | ac_status=$? |
| 13664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13665 | (exit $ac_status); }; }; then |
| 13666 | eval "$as_ac_var=yes" |
| 13667 | else |
| 13668 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13670 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13671 | eval "$as_ac_var=no" |
| 13672 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13673 | rm -f conftest.err conftest.$ac_objext \ |
| 13674 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13675 | fi |
| 13676 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13677 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13678 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13679 | cat >>confdefs.h <<_ACEOF |
| 13680 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13681 | _ACEOF |
| 13682 | |
| 13683 | else |
| 13684 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13685 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 13686 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 13687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13688 | else |
| 13689 | ac_check_lib_save_LIBS=$LIBS |
| 13690 | LIBS="-ldl $LIBS" |
| 13691 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13692 | /* confdefs.h. */ |
| 13693 | _ACEOF |
| 13694 | cat confdefs.h >>conftest.$ac_ext |
| 13695 | cat >>conftest.$ac_ext <<_ACEOF |
| 13696 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13697 | |
| 13698 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13699 | #ifdef __cplusplus |
| 13700 | extern "C" |
| 13701 | #endif |
| 13702 | /* We use char because int might match the return type of a gcc2 |
| 13703 | builtin and then its argument prototype would still apply. */ |
| 13704 | char dlopen (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13705 | int |
| 13706 | main () |
| 13707 | { |
| 13708 | dlopen (); |
| 13709 | ; |
| 13710 | return 0; |
| 13711 | } |
| 13712 | _ACEOF |
| 13713 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13715 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13716 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13718 | rm -f conftest.er1 |
| 13719 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13721 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13724 | (eval $ac_try) 2>&5 |
| 13725 | ac_status=$? |
| 13726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13727 | (exit $ac_status); }; } && |
| 13728 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13730 | (eval $ac_try) 2>&5 |
| 13731 | ac_status=$? |
| 13732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13733 | (exit $ac_status); }; }; then |
| 13734 | ac_cv_lib_dl_dlopen=yes |
| 13735 | else |
| 13736 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13738 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13739 | ac_cv_lib_dl_dlopen=no |
| 13740 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13741 | rm -f conftest.err conftest.$ac_objext \ |
| 13742 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13743 | LIBS=$ac_check_lib_save_LIBS |
| 13744 | fi |
| 13745 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13746 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 13747 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 13748 | |
| 13749 | cat >>confdefs.h <<\_ACEOF |
| 13750 | #define HAVE_DLOPEN 1 |
| 13751 | _ACEOF |
| 13752 | |
| 13753 | DLLIBS="-ldl" |
| 13754 | else |
| 13755 | LIBEXT="a" |
| 13756 | fi |
| 13757 | |
| 13758 | fi |
| 13759 | done |
| 13760 | |
| 13761 | else |
| 13762 | LIBEXT="a" |
| 13763 | fi |
| 13764 | |
| 13765 | done |
| 13766 | |
| 13767 | |
| 13768 | if test "$LIBEXT" = "so" |
| 13769 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 13770 | DLLFLAGS="$DLLFLAGS -fPIC" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13771 | DLLEXT=".so" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 13772 | 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] | 13773 | echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6 |
| 13774 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then |
| 13775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 13776 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 13777 | ac_wine_try_cflags_saved=$CFLAGS |
| 13778 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic" |
| 13779 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 13780 | void myfunc() {} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13781 | _ACEOF |
| 13782 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13784 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13785 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13787 | rm -f conftest.er1 |
| 13788 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13790 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13793 | (eval $ac_try) 2>&5 |
| 13794 | ac_status=$? |
| 13795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13796 | (exit $ac_status); }; } && |
| 13797 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13799 | (eval $ac_try) 2>&5 |
| 13800 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13802 | (exit $ac_status); }; }; then |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 13803 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 13804 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13805 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13807 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13808 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 13809 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13810 | rm -f conftest.err conftest.$ac_objext \ |
| 13811 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 13812 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13813 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13814 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13815 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 13816 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 13817 | then |
| 13818 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13819 | LDDLLFLAGS="-shared -Wl,-Bsymbolic" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13820 | echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5 |
| 13821 | echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6 |
| 13822 | if test "${ac_cv_c_dll_zdefs+set}" = set; then |
| 13823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13824 | else |
| 13825 | ac_wine_try_cflags_saved=$CFLAGS |
| 13826 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
| 13827 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13828 | /* confdefs.h. */ |
| 13829 | _ACEOF |
| 13830 | cat confdefs.h >>conftest.$ac_ext |
| 13831 | cat >>conftest.$ac_ext <<_ACEOF |
| 13832 | /* end confdefs.h. */ |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13833 | |
| 13834 | int |
| 13835 | main () |
| 13836 | { |
| 13837 | |
| 13838 | ; |
| 13839 | return 0; |
| 13840 | } |
| 13841 | _ACEOF |
| 13842 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13844 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13845 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13846 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13847 | rm -f conftest.er1 |
| 13848 | cat conftest.err >&5 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13850 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13851 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13853 | (eval $ac_try) 2>&5 |
| 13854 | ac_status=$? |
| 13855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13856 | (exit $ac_status); }; } && |
| 13857 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13859 | (eval $ac_try) 2>&5 |
| 13860 | ac_status=$? |
| 13861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13862 | (exit $ac_status); }; }; then |
| 13863 | ac_cv_c_dll_zdefs="yes" |
| 13864 | else |
| 13865 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13867 | |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13868 | ac_cv_c_dll_zdefs="no" |
| 13869 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13870 | rm -f conftest.err conftest.$ac_objext \ |
| 13871 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13872 | CFLAGS=$ac_wine_try_cflags_saved |
| 13873 | fi |
| 13874 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5 |
| 13875 | echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6 |
| 13876 | if test "$ac_cv_c_dll_zdefs" = "yes" |
| 13877 | then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13878 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13879 | fi |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 13880 | |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 13881 | echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5 |
| 13882 | echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6 |
| 13883 | if test "${ac_cv_c_dll_init_fini+set}" = set; then |
| 13884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13885 | else |
| 13886 | ac_wine_try_cflags_saved=$CFLAGS |
| 13887 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" |
| 13888 | cat >conftest.$ac_ext <<_ACEOF |
| 13889 | /* confdefs.h. */ |
| 13890 | _ACEOF |
| 13891 | cat confdefs.h >>conftest.$ac_ext |
| 13892 | cat >>conftest.$ac_ext <<_ACEOF |
| 13893 | /* end confdefs.h. */ |
| 13894 | |
| 13895 | int |
| 13896 | main () |
| 13897 | { |
| 13898 | |
| 13899 | ; |
| 13900 | return 0; |
| 13901 | } |
| 13902 | _ACEOF |
| 13903 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13905 | (eval $ac_link) 2>conftest.er1 |
| 13906 | ac_status=$? |
| 13907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13908 | rm -f conftest.er1 |
| 13909 | cat conftest.err >&5 |
| 13910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13911 | (exit $ac_status); } && |
| 13912 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13914 | (eval $ac_try) 2>&5 |
| 13915 | ac_status=$? |
| 13916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13917 | (exit $ac_status); }; } && |
| 13918 | { ac_try='test -s conftest$ac_exeext' |
| 13919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13920 | (eval $ac_try) 2>&5 |
| 13921 | ac_status=$? |
| 13922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13923 | (exit $ac_status); }; }; then |
| 13924 | ac_cv_c_dll_init_fini="yes" |
| 13925 | else |
| 13926 | echo "$as_me: failed program was:" >&5 |
| 13927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13928 | |
| 13929 | ac_cv_c_dll_init_fini="no" |
| 13930 | fi |
| 13931 | rm -f conftest.err conftest.$ac_objext \ |
| 13932 | conftest$ac_exeext conftest.$ac_ext |
| 13933 | CFLAGS=$ac_wine_try_cflags_saved |
| 13934 | fi |
| 13935 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5 |
| 13936 | echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6 |
| 13937 | if test "$ac_cv_c_dll_init_fini" = "yes" |
| 13938 | then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13939 | LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini" |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 13940 | fi |
| 13941 | |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 13942 | echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5 |
| 13943 | echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6 |
| 13944 | if test "${ac_cv_c_ld_version_scripts+set}" = set; then |
| 13945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13946 | else |
| 13947 | echo '{ global: *; };' >conftest.map |
| 13948 | ac_wine_try_cflags_saved=$CFLAGS |
| 13949 | CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map" |
| 13950 | cat >conftest.$ac_ext <<_ACEOF |
| 13951 | /* confdefs.h. */ |
| 13952 | _ACEOF |
| 13953 | cat confdefs.h >>conftest.$ac_ext |
| 13954 | cat >>conftest.$ac_ext <<_ACEOF |
| 13955 | /* end confdefs.h. */ |
| 13956 | |
| 13957 | int |
| 13958 | main () |
| 13959 | { |
| 13960 | |
| 13961 | ; |
| 13962 | return 0; |
| 13963 | } |
| 13964 | _ACEOF |
| 13965 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13967 | (eval $ac_link) 2>conftest.er1 |
| 13968 | ac_status=$? |
| 13969 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13970 | rm -f conftest.er1 |
| 13971 | cat conftest.err >&5 |
| 13972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13973 | (exit $ac_status); } && |
| 13974 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13976 | (eval $ac_try) 2>&5 |
| 13977 | ac_status=$? |
| 13978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13979 | (exit $ac_status); }; } && |
| 13980 | { ac_try='test -s conftest$ac_exeext' |
| 13981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13982 | (eval $ac_try) 2>&5 |
| 13983 | ac_status=$? |
| 13984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13985 | (exit $ac_status); }; }; then |
| 13986 | ac_cv_c_ld_version_scripts="yes" |
| 13987 | else |
| 13988 | echo "$as_me: failed program was:" >&5 |
| 13989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13990 | |
| 13991 | ac_cv_c_ld_version_scripts="no" |
| 13992 | fi |
| 13993 | rm -f conftest.err conftest.$ac_objext \ |
| 13994 | conftest$ac_exeext conftest.$ac_ext |
| 13995 | CFLAGS=$ac_wine_try_cflags_saved |
| 13996 | rm -f conftest.map |
| 13997 | fi |
| 13998 | echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5 |
| 13999 | echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6 |
| 14000 | if test "$ac_cv_c_ld_version_scripts" = "yes" |
| 14001 | then |
| 14002 | LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)" |
| 14003 | fi |
| 14004 | |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14005 | echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5 |
| 14006 | echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6 |
| 14007 | if test "${ac_cv_c_export_dynamic+set}" = set; then |
| 14008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14009 | else |
| 14010 | ac_wine_try_cflags_saved=$CFLAGS |
| 14011 | CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic" |
| 14012 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14013 | /* confdefs.h. */ |
| 14014 | _ACEOF |
| 14015 | cat confdefs.h >>conftest.$ac_ext |
| 14016 | cat >>conftest.$ac_ext <<_ACEOF |
| 14017 | /* end confdefs.h. */ |
| 14018 | |
| 14019 | int |
| 14020 | main () |
| 14021 | { |
| 14022 | |
| 14023 | ; |
| 14024 | return 0; |
| 14025 | } |
| 14026 | _ACEOF |
| 14027 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14029 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14030 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14032 | rm -f conftest.er1 |
| 14033 | cat conftest.err >&5 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14035 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14036 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14038 | (eval $ac_try) 2>&5 |
| 14039 | ac_status=$? |
| 14040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14041 | (exit $ac_status); }; } && |
| 14042 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14044 | (eval $ac_try) 2>&5 |
| 14045 | ac_status=$? |
| 14046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14047 | (exit $ac_status); }; }; then |
| 14048 | ac_cv_c_export_dynamic="yes" |
| 14049 | else |
| 14050 | echo "$as_me: failed program was:" >&5 |
| 14051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14052 | |
| 14053 | ac_cv_c_export_dynamic="no" |
| 14054 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14055 | rm -f conftest.err conftest.$ac_objext \ |
| 14056 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14057 | CFLAGS=$ac_wine_try_cflags_saved |
| 14058 | fi |
| 14059 | echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5 |
| 14060 | echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6 |
| 14061 | if test "$ac_cv_c_export_dynamic" = "yes" |
| 14062 | then |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14063 | LDEXECFLAGS="-Wl,--export-dynamic" |
| 14064 | |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 14065 | fi |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14066 | |
| 14067 | case $host_cpu in |
| 14068 | *i[3456789]86*) |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14069 | echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5 |
| 14070 | echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14071 | if test "${ac_cv_ld_reloc_exec+set}" = set; then |
| 14072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14073 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14074 | ac_wine_try_cflags_saved=$CFLAGS |
| 14075 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400" |
| 14076 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14077 | /* confdefs.h. */ |
| 14078 | _ACEOF |
| 14079 | cat confdefs.h >>conftest.$ac_ext |
| 14080 | cat >>conftest.$ac_ext <<_ACEOF |
| 14081 | /* end confdefs.h. */ |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14082 | |
| 14083 | int |
| 14084 | main () |
| 14085 | { |
| 14086 | |
| 14087 | ; |
| 14088 | return 0; |
| 14089 | } |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14090 | _ACEOF |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14091 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14093 | (eval $ac_link) 2>conftest.er1 |
| 14094 | ac_status=$? |
| 14095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14096 | rm -f conftest.er1 |
| 14097 | cat conftest.err >&5 |
| 14098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14099 | (exit $ac_status); } && |
| 14100 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14102 | (eval $ac_try) 2>&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14103 | ac_status=$? |
| 14104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14105 | (exit $ac_status); }; } && |
| 14106 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14108 | (eval $ac_try) 2>&5 |
| 14109 | ac_status=$? |
| 14110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14111 | (exit $ac_status); }; }; then |
| 14112 | ac_cv_ld_reloc_exec="yes" |
| 14113 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14114 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14116 | |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14117 | ac_cv_ld_reloc_exec="no" |
| 14118 | fi |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14119 | rm -f conftest.err conftest.$ac_objext \ |
| 14120 | conftest$ac_exeext conftest.$ac_ext |
| 14121 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14122 | fi |
| 14123 | echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5 |
| 14124 | echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6 |
| 14125 | if test "$ac_cv_ld_reloc_exec" = "yes" |
| 14126 | then |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14127 | LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400" |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14128 | fi |
| 14129 | ;; |
| 14130 | esac |
| 14131 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14132 | else |
| 14133 | 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] | 14134 | echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6 |
| 14135 | if test "${ac_cv_c_dll_unixware+set}" = set; then |
| 14136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 14137 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14138 | ac_wine_try_cflags_saved=$CFLAGS |
| 14139 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
| 14140 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 14141 | void myfunc() {} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14142 | _ACEOF |
| 14143 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14145 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14146 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14148 | rm -f conftest.er1 |
| 14149 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14151 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14152 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14154 | (eval $ac_try) 2>&5 |
| 14155 | ac_status=$? |
| 14156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14157 | (exit $ac_status); }; } && |
| 14158 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14160 | (eval $ac_try) 2>&5 |
| 14161 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14163 | (exit $ac_status); }; }; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 14164 | ac_cv_c_dll_unixware="yes" |
| 14165 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14166 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14167 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14168 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14169 | ac_cv_c_dll_unixware="no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 14170 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14171 | rm -f conftest.err conftest.$ac_objext \ |
| 14172 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14173 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14174 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14175 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14176 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14177 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 14178 | then |
| 14179 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14180 | LDDLLFLAGS="-Wl,-G,-B,symbolic" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14181 | |
| 14182 | else |
| 14183 | echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5 |
| 14184 | echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6 |
| 14185 | if test "${ac_cv_c_dll_macho+set}" = set; then |
| 14186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14187 | else |
| 14188 | ac_wine_try_cflags_saved=$CFLAGS |
| 14189 | CFLAGS="$CFLAGS -bundle" |
| 14190 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 14191 | void myfunc() {} |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14192 | _ACEOF |
| 14193 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14195 | (eval $ac_link) 2>conftest.er1 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14196 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14197 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14198 | rm -f conftest.er1 |
| 14199 | cat conftest.err >&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14201 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14202 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14204 | (eval $ac_try) 2>&5 |
| 14205 | ac_status=$? |
| 14206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14207 | (exit $ac_status); }; } && |
| 14208 | { ac_try='test -s conftest$ac_exeext' |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14210 | (eval $ac_try) 2>&5 |
| 14211 | ac_status=$? |
| 14212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14213 | (exit $ac_status); }; }; then |
| 14214 | ac_cv_c_dll_macho="yes" |
| 14215 | else |
| 14216 | echo "$as_me: failed program was:" >&5 |
| 14217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14218 | |
| 14219 | ac_cv_c_dll_macho="no" |
| 14220 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14221 | rm -f conftest.err conftest.$ac_objext \ |
| 14222 | conftest$ac_exeext conftest.$ac_ext |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14223 | CFLAGS=$ac_wine_try_cflags_saved |
| 14224 | fi |
| 14225 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5 |
| 14226 | echo "${ECHO_T}$ac_cv_c_dll_macho" >&6 |
| 14227 | if test "$ac_cv_c_dll_macho" = "yes" |
| 14228 | then |
| 14229 | LIBEXT="dylib" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14230 | LDDLLFLAGS="-bundle -flat_namespace -undefined suppress" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14231 | LDSHARED="\$(CC) -dynamiclib" |
| 14232 | CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp" |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14233 | STRIP="$STRIP -u -r" |
Emmanuel Maillard | 46718f8 | 2004-07-22 19:48:41 +0000 | [diff] [blame] | 14234 | LDEXECFLAGS="-seg1addr 0x120000" |
| 14235 | |
| 14236 | LDLIBWINEFLAGS="-seg1addr 0x140000" |
| 14237 | |
Emmanuel Maillard | 2300ce6 | 2004-08-19 01:20:45 +0000 | [diff] [blame] | 14238 | COREFOUNDATIONLIB="-framework CoreFoundation" |
| 14239 | |
| 14240 | IOKITLIB="-framework IOKit" |
| 14241 | |
| 14242 | IOKITLIB = "$IOKITLIB $COREFOUNDATIONLIB" |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 14243 | else |
| 14244 | echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5 |
| 14245 | echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6 |
| 14246 | if test "${ac_cv_c_dll_hpux+set}" = set; then |
| 14247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14248 | else |
| 14249 | ac_wine_try_cflags_saved=$CFLAGS |
| 14250 | CFLAGS="$CFLAGS -shared" |
| 14251 | cat >conftest.$ac_ext <<_ACEOF |
| 14252 | void myfunc() {} |
| 14253 | _ACEOF |
| 14254 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14256 | (eval $ac_link) 2>conftest.er1 |
| 14257 | ac_status=$? |
| 14258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14259 | rm -f conftest.er1 |
| 14260 | cat conftest.err >&5 |
| 14261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14262 | (exit $ac_status); } && |
| 14263 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14265 | (eval $ac_try) 2>&5 |
| 14266 | ac_status=$? |
| 14267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14268 | (exit $ac_status); }; } && |
| 14269 | { ac_try='test -s conftest$ac_exeext' |
| 14270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14271 | (eval $ac_try) 2>&5 |
| 14272 | ac_status=$? |
| 14273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14274 | (exit $ac_status); }; }; then |
| 14275 | ac_cv_c_dll_hpux="yes" |
| 14276 | else |
| 14277 | echo "$as_me: failed program was:" >&5 |
| 14278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14279 | |
| 14280 | ac_cv_c_dll_hpux="no" |
| 14281 | fi |
| 14282 | rm -f conftest.err conftest.$ac_objext \ |
| 14283 | conftest$ac_exeext conftest.$ac_ext |
| 14284 | CFLAGS=$ac_wine_try_cflags_saved |
| 14285 | fi |
| 14286 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5 |
| 14287 | echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6 |
| 14288 | if test "$ac_cv_c_dll_hpux" = "yes" |
| 14289 | then |
| 14290 | LIBEXT="sl" |
| 14291 | LDDLLFLAGS="-shared" |
| 14292 | LDSHARED="\$(CC) -shared" |
| 14293 | fi |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14294 | fi |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14295 | fi |
| 14296 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14297 | fi |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 14298 | |
| 14299 | CROSSTEST="" |
| 14300 | |
| 14301 | if test "$cross_compiling" = "no" |
| 14302 | then |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 14303 | for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 14304 | do |
| 14305 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14306 | set dummy $ac_prog; ac_word=$2 |
| 14307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14309 | if test "${ac_cv_prog_CROSSCC+set}" = set; then |
| 14310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14311 | else |
| 14312 | if test -n "$CROSSCC"; then |
| 14313 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 14314 | else |
| 14315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14316 | for as_dir in $PATH |
| 14317 | do |
| 14318 | IFS=$as_save_IFS |
| 14319 | test -z "$as_dir" && as_dir=. |
| 14320 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14321 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14322 | ac_cv_prog_CROSSCC="$ac_prog" |
| 14323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14324 | break 2 |
| 14325 | fi |
| 14326 | done |
| 14327 | done |
| 14328 | |
| 14329 | fi |
| 14330 | fi |
| 14331 | CROSSCC=$ac_cv_prog_CROSSCC |
| 14332 | if test -n "$CROSSCC"; then |
| 14333 | echo "$as_me:$LINENO: result: $CROSSCC" >&5 |
| 14334 | echo "${ECHO_T}$CROSSCC" >&6 |
| 14335 | else |
| 14336 | echo "$as_me:$LINENO: result: no" >&5 |
| 14337 | echo "${ECHO_T}no" >&6 |
| 14338 | fi |
| 14339 | |
| 14340 | test -n "$CROSSCC" && break |
| 14341 | done |
| 14342 | test -n "$CROSSCC" || CROSSCC="false" |
| 14343 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 14344 | for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 14345 | do |
| 14346 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14347 | set dummy $ac_prog; ac_word=$2 |
| 14348 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14350 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 14351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14352 | else |
| 14353 | if test -n "$DLLTOOL"; then |
| 14354 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 14355 | else |
| 14356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14357 | for as_dir in $PATH |
| 14358 | do |
| 14359 | IFS=$as_save_IFS |
| 14360 | test -z "$as_dir" && as_dir=. |
| 14361 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14362 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14363 | ac_cv_prog_DLLTOOL="$ac_prog" |
| 14364 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14365 | break 2 |
| 14366 | fi |
| 14367 | done |
| 14368 | done |
| 14369 | |
| 14370 | fi |
| 14371 | fi |
| 14372 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 14373 | if test -n "$DLLTOOL"; then |
| 14374 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 14375 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 14376 | else |
| 14377 | echo "$as_me:$LINENO: result: no" >&5 |
| 14378 | echo "${ECHO_T}no" >&6 |
| 14379 | fi |
| 14380 | |
| 14381 | test -n "$DLLTOOL" && break |
| 14382 | done |
| 14383 | test -n "$DLLTOOL" || DLLTOOL="false" |
| 14384 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 14385 | for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 14386 | do |
| 14387 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14388 | set dummy $ac_prog; ac_word=$2 |
| 14389 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14390 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14391 | if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then |
| 14392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14393 | else |
| 14394 | if test -n "$CROSSWINDRES"; then |
| 14395 | ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test. |
| 14396 | else |
| 14397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14398 | for as_dir in $PATH |
| 14399 | do |
| 14400 | IFS=$as_save_IFS |
| 14401 | test -z "$as_dir" && as_dir=. |
| 14402 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14403 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14404 | ac_cv_prog_CROSSWINDRES="$ac_prog" |
| 14405 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14406 | break 2 |
| 14407 | fi |
| 14408 | done |
| 14409 | done |
| 14410 | |
| 14411 | fi |
| 14412 | fi |
| 14413 | CROSSWINDRES=$ac_cv_prog_CROSSWINDRES |
| 14414 | if test -n "$CROSSWINDRES"; then |
| 14415 | echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5 |
| 14416 | echo "${ECHO_T}$CROSSWINDRES" >&6 |
| 14417 | else |
| 14418 | echo "$as_me:$LINENO: result: no" >&5 |
| 14419 | echo "${ECHO_T}no" >&6 |
| 14420 | fi |
| 14421 | |
| 14422 | test -n "$CROSSWINDRES" && break |
| 14423 | done |
| 14424 | test -n "$CROSSWINDRES" || CROSSWINDRES="false" |
| 14425 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 14426 | if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi |
| 14427 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14428 | ;; |
| 14429 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 14430 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 14431 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14432 | { { 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] | 14433 | It is currently not possible to build Wine without shared library |
| 14434 | (.so) support to allow transparent switch between .so and .dll files. |
| 14435 | If you are using Linux, you will need a newer binutils. |
| 14436 | " >&5 |
| 14437 | echo "$as_me: error: could not find a way to build shared libraries. |
| 14438 | It is currently not possible to build Wine without shared library |
| 14439 | (.so) support to allow transparent switch between .so and .dll files. |
| 14440 | If you are using Linux, you will need a newer binutils. |
| 14441 | " >&2;} |
| 14442 | { (exit 1); exit 1; }; } |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 14443 | fi |
| 14444 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14445 | case $build_os in |
| 14446 | cygwin*|mingw32*) |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 14447 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14448 | ;; |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14449 | darwin*|macosx*) |
| 14450 | LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\"" |
| 14451 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14452 | *) |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 14453 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14454 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14455 | esac |
| 14456 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14457 | case $host_os in |
| 14458 | mingw32*) |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14459 | CRTLIBS="-lmsvcrt" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 14460 | |
| 14461 | SOCKETLIBS="-lws2_32" |
| 14462 | |
| 14463 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14464 | esac |
| 14465 | |
| 14466 | case $host_os in |
| 14467 | linux*) |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14468 | WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader" |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14469 | |
Alexandre Julliard | a628c13 | 2003-11-12 03:28:21 +0000 | [diff] [blame] | 14470 | MAIN_BINARY="wine-glibc" |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14471 | |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14472 | ;; |
Emmanuel Maillard | 3bc8d2e | 2004-07-19 20:11:10 +0000 | [diff] [blame] | 14473 | darwin*) |
| 14474 | WINE_BINARIES="wine-pthread" |
| 14475 | |
| 14476 | MAIN_BINARY="wine-pthread" |
| 14477 | |
| 14478 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14479 | *) |
| 14480 | WINE_BINARIES="wine-kthread" |
| 14481 | |
| 14482 | MAIN_BINARY="wine-kthread" |
| 14483 | |
| 14484 | ;; |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14485 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14486 | |
| 14487 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14488 | if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14489 | then |
| 14490 | # Extract the first word of "ldd", so it can be a program name with args. |
| 14491 | set dummy ldd; ac_word=$2 |
| 14492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14494 | if test "${ac_cv_path_LDD+set}" = set; then |
| 14495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14496 | else |
| 14497 | case $LDD in |
| 14498 | [\\/]* | ?:[\\/]*) |
| 14499 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 14500 | ;; |
| 14501 | *) |
| 14502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14503 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 14504 | for as_dir in $as_dummy |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14505 | do |
| 14506 | IFS=$as_save_IFS |
| 14507 | test -z "$as_dir" && as_dir=. |
| 14508 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14509 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14510 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
| 14511 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14512 | break 2 |
| 14513 | fi |
| 14514 | done |
| 14515 | done |
| 14516 | |
| 14517 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 14518 | ;; |
| 14519 | esac |
| 14520 | fi |
| 14521 | LDD=$ac_cv_path_LDD |
| 14522 | |
| 14523 | if test -n "$LDD"; then |
| 14524 | echo "$as_me:$LINENO: result: $LDD" >&5 |
| 14525 | echo "${ECHO_T}$LDD" >&6 |
| 14526 | else |
| 14527 | echo "$as_me:$LINENO: result: no" >&5 |
| 14528 | echo "${ECHO_T}no" >&6 |
| 14529 | fi |
| 14530 | |
| 14531 | |
| 14532 | echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
| 14533 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6 |
| 14534 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 14535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14536 | else |
| 14537 | ac_get_soname_save_LIBS=$LIBS |
| 14538 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 14539 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14540 | /* confdefs.h. */ |
| 14541 | _ACEOF |
| 14542 | cat confdefs.h >>conftest.$ac_ext |
| 14543 | cat >>conftest.$ac_ext <<_ACEOF |
| 14544 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14545 | |
| 14546 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14547 | #ifdef __cplusplus |
| 14548 | extern "C" |
| 14549 | #endif |
| 14550 | /* We use char because int might match the return type of a gcc2 |
| 14551 | builtin and then its argument prototype would still apply. */ |
| 14552 | char XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14553 | int |
| 14554 | main () |
| 14555 | { |
| 14556 | XCreateWindow (); |
| 14557 | ; |
| 14558 | return 0; |
| 14559 | } |
| 14560 | _ACEOF |
| 14561 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14563 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14564 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14566 | rm -f conftest.er1 |
| 14567 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14569 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14572 | (eval $ac_try) 2>&5 |
| 14573 | ac_status=$? |
| 14574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14575 | (exit $ac_status); }; } && |
| 14576 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14578 | (eval $ac_try) 2>&5 |
| 14579 | ac_status=$? |
| 14580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14581 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14582 | ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14583 | if test "x$ac_cv_lib_soname_X11" = "x" |
| 14584 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14585 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14586 | fi |
| 14587 | else |
| 14588 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14590 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14591 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14592 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14593 | rm -f conftest.err conftest.$ac_objext \ |
| 14594 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14595 | LIBS=$ac_get_soname_save_LIBS |
| 14596 | fi |
| 14597 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 |
| 14598 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6 |
| 14599 | if test "x$ac_cv_lib_soname_X11" != xNONE |
| 14600 | then |
| 14601 | cat >>confdefs.h <<_ACEOF |
| 14602 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 14603 | _ACEOF |
| 14604 | fi |
| 14605 | |
| 14606 | echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
| 14607 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6 |
| 14608 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 14609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14610 | else |
| 14611 | ac_get_soname_save_LIBS=$LIBS |
| 14612 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 14613 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14614 | /* confdefs.h. */ |
| 14615 | _ACEOF |
| 14616 | cat confdefs.h >>conftest.$ac_ext |
| 14617 | cat >>conftest.$ac_ext <<_ACEOF |
| 14618 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14619 | |
| 14620 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14621 | #ifdef __cplusplus |
| 14622 | extern "C" |
| 14623 | #endif |
| 14624 | /* We use char because int might match the return type of a gcc2 |
| 14625 | builtin and then its argument prototype would still apply. */ |
| 14626 | char XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14627 | int |
| 14628 | main () |
| 14629 | { |
| 14630 | XextCreateExtension (); |
| 14631 | ; |
| 14632 | return 0; |
| 14633 | } |
| 14634 | _ACEOF |
| 14635 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14637 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14638 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14640 | rm -f conftest.er1 |
| 14641 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14643 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14644 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14646 | (eval $ac_try) 2>&5 |
| 14647 | ac_status=$? |
| 14648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14649 | (exit $ac_status); }; } && |
| 14650 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14652 | (eval $ac_try) 2>&5 |
| 14653 | ac_status=$? |
| 14654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14655 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14656 | ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14657 | if test "x$ac_cv_lib_soname_Xext" = "x" |
| 14658 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14659 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14660 | fi |
| 14661 | else |
| 14662 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14664 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14665 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14666 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14667 | rm -f conftest.err conftest.$ac_objext \ |
| 14668 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14669 | LIBS=$ac_get_soname_save_LIBS |
| 14670 | fi |
| 14671 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5 |
| 14672 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6 |
| 14673 | if test "x$ac_cv_lib_soname_Xext" != xNONE |
| 14674 | then |
| 14675 | cat >>confdefs.h <<_ACEOF |
| 14676 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 14677 | _ACEOF |
| 14678 | fi |
| 14679 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 14680 | echo "$as_me:$LINENO: checking for -lXi soname" >&5 |
| 14681 | echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6 |
| 14682 | if test "${ac_cv_lib_soname_Xi+set}" = set; then |
| 14683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14684 | else |
| 14685 | ac_get_soname_save_LIBS=$LIBS |
| 14686 | LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 14687 | cat >conftest.$ac_ext <<_ACEOF |
| 14688 | /* confdefs.h. */ |
| 14689 | _ACEOF |
| 14690 | cat confdefs.h >>conftest.$ac_ext |
| 14691 | cat >>conftest.$ac_ext <<_ACEOF |
| 14692 | /* end confdefs.h. */ |
| 14693 | |
| 14694 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14695 | #ifdef __cplusplus |
| 14696 | extern "C" |
| 14697 | #endif |
| 14698 | /* We use char because int might match the return type of a gcc2 |
| 14699 | builtin and then its argument prototype would still apply. */ |
| 14700 | char XOpenDevice (); |
| 14701 | int |
| 14702 | main () |
| 14703 | { |
| 14704 | XOpenDevice (); |
| 14705 | ; |
| 14706 | return 0; |
| 14707 | } |
| 14708 | _ACEOF |
| 14709 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14711 | (eval $ac_link) 2>conftest.er1 |
| 14712 | ac_status=$? |
| 14713 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14714 | rm -f conftest.er1 |
| 14715 | cat conftest.err >&5 |
| 14716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14717 | (exit $ac_status); } && |
| 14718 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14720 | (eval $ac_try) 2>&5 |
| 14721 | ac_status=$? |
| 14722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14723 | (exit $ac_status); }; } && |
| 14724 | { ac_try='test -s conftest$ac_exeext' |
| 14725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14726 | (eval $ac_try) 2>&5 |
| 14727 | ac_status=$? |
| 14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14729 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14730 | ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"` |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 14731 | if test "x$ac_cv_lib_soname_Xi" = "x" |
| 14732 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14733 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 14734 | fi |
| 14735 | else |
| 14736 | echo "$as_me: failed program was:" >&5 |
| 14737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14738 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14739 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 14740 | fi |
| 14741 | rm -f conftest.err conftest.$ac_objext \ |
| 14742 | conftest$ac_exeext conftest.$ac_ext |
| 14743 | LIBS=$ac_get_soname_save_LIBS |
| 14744 | fi |
| 14745 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5 |
| 14746 | echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6 |
| 14747 | if test "x$ac_cv_lib_soname_Xi" != xNONE |
| 14748 | then |
| 14749 | cat >>confdefs.h <<_ACEOF |
| 14750 | #define SONAME_LIBXI "$ac_cv_lib_soname_Xi" |
| 14751 | _ACEOF |
| 14752 | fi |
| 14753 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14754 | echo "$as_me:$LINENO: checking for -lXrender soname" >&5 |
| 14755 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6 |
| 14756 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 14757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14758 | else |
| 14759 | ac_get_soname_save_LIBS=$LIBS |
| 14760 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 14761 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14762 | /* confdefs.h. */ |
| 14763 | _ACEOF |
| 14764 | cat confdefs.h >>conftest.$ac_ext |
| 14765 | cat >>conftest.$ac_ext <<_ACEOF |
| 14766 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14767 | |
| 14768 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14769 | #ifdef __cplusplus |
| 14770 | extern "C" |
| 14771 | #endif |
| 14772 | /* We use char because int might match the return type of a gcc2 |
| 14773 | builtin and then its argument prototype would still apply. */ |
| 14774 | char XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14775 | int |
| 14776 | main () |
| 14777 | { |
| 14778 | XRenderQueryExtension (); |
| 14779 | ; |
| 14780 | return 0; |
| 14781 | } |
| 14782 | _ACEOF |
| 14783 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14785 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14786 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14788 | rm -f conftest.er1 |
| 14789 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14791 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14792 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14794 | (eval $ac_try) 2>&5 |
| 14795 | ac_status=$? |
| 14796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14797 | (exit $ac_status); }; } && |
| 14798 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14800 | (eval $ac_try) 2>&5 |
| 14801 | ac_status=$? |
| 14802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14803 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14804 | ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14805 | if test "x$ac_cv_lib_soname_Xrender" = "x" |
| 14806 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14807 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14808 | fi |
| 14809 | else |
| 14810 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14812 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14813 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14814 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14815 | rm -f conftest.err conftest.$ac_objext \ |
| 14816 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14817 | LIBS=$ac_get_soname_save_LIBS |
| 14818 | fi |
| 14819 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 |
| 14820 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6 |
| 14821 | if test "x$ac_cv_lib_soname_Xrender" != xNONE |
| 14822 | then |
| 14823 | cat >>confdefs.h <<_ACEOF |
| 14824 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 14825 | _ACEOF |
| 14826 | fi |
| 14827 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 14828 | echo "$as_me:$LINENO: checking for -lXrandr soname" >&5 |
| 14829 | echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6 |
| 14830 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then |
| 14831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14832 | else |
| 14833 | ac_get_soname_save_LIBS=$LIBS |
| 14834 | LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 14835 | cat >conftest.$ac_ext <<_ACEOF |
| 14836 | /* confdefs.h. */ |
| 14837 | _ACEOF |
| 14838 | cat confdefs.h >>conftest.$ac_ext |
| 14839 | cat >>conftest.$ac_ext <<_ACEOF |
| 14840 | /* end confdefs.h. */ |
| 14841 | |
| 14842 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14843 | #ifdef __cplusplus |
| 14844 | extern "C" |
| 14845 | #endif |
| 14846 | /* We use char because int might match the return type of a gcc2 |
| 14847 | builtin and then its argument prototype would still apply. */ |
| 14848 | char XRRQueryExtension (); |
| 14849 | int |
| 14850 | main () |
| 14851 | { |
| 14852 | XRRQueryExtension (); |
| 14853 | ; |
| 14854 | return 0; |
| 14855 | } |
| 14856 | _ACEOF |
| 14857 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14859 | (eval $ac_link) 2>conftest.er1 |
| 14860 | ac_status=$? |
| 14861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14862 | rm -f conftest.er1 |
| 14863 | cat conftest.err >&5 |
| 14864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14865 | (exit $ac_status); } && |
| 14866 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14868 | (eval $ac_try) 2>&5 |
| 14869 | ac_status=$? |
| 14870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14871 | (exit $ac_status); }; } && |
| 14872 | { ac_try='test -s conftest$ac_exeext' |
| 14873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14874 | (eval $ac_try) 2>&5 |
| 14875 | ac_status=$? |
| 14876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14877 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14878 | ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"` |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 14879 | if test "x$ac_cv_lib_soname_Xrandr" = "x" |
| 14880 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14881 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 14882 | fi |
| 14883 | else |
| 14884 | echo "$as_me: failed program was:" >&5 |
| 14885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14886 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14887 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 14888 | fi |
| 14889 | rm -f conftest.err conftest.$ac_objext \ |
| 14890 | conftest$ac_exeext conftest.$ac_ext |
| 14891 | LIBS=$ac_get_soname_save_LIBS |
| 14892 | fi |
| 14893 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5 |
| 14894 | echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6 |
| 14895 | if test "x$ac_cv_lib_soname_Xrandr" != xNONE |
| 14896 | then |
| 14897 | cat >>confdefs.h <<_ACEOF |
| 14898 | #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr" |
| 14899 | _ACEOF |
| 14900 | fi |
| 14901 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14902 | echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 |
| 14903 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6 |
| 14904 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 14905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14906 | else |
| 14907 | ac_get_soname_save_LIBS=$LIBS |
| 14908 | LIBS="-lfreetype $X_LIBS $LIBS" |
| 14909 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14910 | /* confdefs.h. */ |
| 14911 | _ACEOF |
| 14912 | cat confdefs.h >>conftest.$ac_ext |
| 14913 | cat >>conftest.$ac_ext <<_ACEOF |
| 14914 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14915 | |
| 14916 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14917 | #ifdef __cplusplus |
| 14918 | extern "C" |
| 14919 | #endif |
| 14920 | /* We use char because int might match the return type of a gcc2 |
| 14921 | builtin and then its argument prototype would still apply. */ |
| 14922 | char FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14923 | int |
| 14924 | main () |
| 14925 | { |
| 14926 | FT_Init_FreeType (); |
| 14927 | ; |
| 14928 | return 0; |
| 14929 | } |
| 14930 | _ACEOF |
| 14931 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14933 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14934 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14935 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14936 | rm -f conftest.er1 |
| 14937 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14939 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14942 | (eval $ac_try) 2>&5 |
| 14943 | ac_status=$? |
| 14944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14945 | (exit $ac_status); }; } && |
| 14946 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14948 | (eval $ac_try) 2>&5 |
| 14949 | ac_status=$? |
| 14950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14951 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14952 | ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"` |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14953 | if test "x$ac_cv_lib_soname_freetype" = "x" |
| 14954 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14955 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14956 | fi |
| 14957 | else |
| 14958 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14960 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14961 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14962 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14963 | rm -f conftest.err conftest.$ac_objext \ |
| 14964 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14965 | LIBS=$ac_get_soname_save_LIBS |
| 14966 | fi |
| 14967 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 |
| 14968 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6 |
| 14969 | if test "x$ac_cv_lib_soname_freetype" != xNONE |
| 14970 | then |
| 14971 | cat >>confdefs.h <<_ACEOF |
| 14972 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 14973 | _ACEOF |
| 14974 | fi |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 14975 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 14976 | echo "$as_me:$LINENO: checking for -lGL soname" >&5 |
| 14977 | echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6 |
| 14978 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 14979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14980 | else |
| 14981 | ac_get_soname_save_LIBS=$LIBS |
| 14982 | LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 14983 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14984 | /* confdefs.h. */ |
| 14985 | _ACEOF |
| 14986 | cat confdefs.h >>conftest.$ac_ext |
| 14987 | cat >>conftest.$ac_ext <<_ACEOF |
| 14988 | /* end confdefs.h. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 14989 | |
| 14990 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14991 | #ifdef __cplusplus |
| 14992 | extern "C" |
| 14993 | #endif |
| 14994 | /* We use char because int might match the return type of a gcc2 |
| 14995 | builtin and then its argument prototype would still apply. */ |
| 14996 | char glXQueryExtension (); |
| 14997 | int |
| 14998 | main () |
| 14999 | { |
| 15000 | glXQueryExtension (); |
| 15001 | ; |
| 15002 | return 0; |
| 15003 | } |
| 15004 | _ACEOF |
| 15005 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15007 | (eval $ac_link) 2>conftest.er1 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15008 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15010 | rm -f conftest.er1 |
| 15011 | cat conftest.err >&5 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15013 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15014 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15016 | (eval $ac_try) 2>&5 |
| 15017 | ac_status=$? |
| 15018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15019 | (exit $ac_status); }; } && |
| 15020 | { ac_try='test -s conftest$ac_exeext' |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15022 | (eval $ac_try) 2>&5 |
| 15023 | ac_status=$? |
| 15024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15025 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15026 | ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"` |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15027 | if test "x$ac_cv_lib_soname_GL" = "x" |
| 15028 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15029 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15030 | fi |
| 15031 | else |
| 15032 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15034 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15035 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15036 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15037 | rm -f conftest.err conftest.$ac_objext \ |
| 15038 | conftest$ac_exeext conftest.$ac_ext |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 15039 | LIBS=$ac_get_soname_save_LIBS |
| 15040 | fi |
| 15041 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5 |
| 15042 | echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6 |
| 15043 | if test "x$ac_cv_lib_soname_GL" != xNONE |
| 15044 | then |
| 15045 | cat >>confdefs.h <<_ACEOF |
| 15046 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 15047 | _ACEOF |
| 15048 | fi |
| 15049 | |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 15050 | echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5 |
| 15051 | echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6 |
| 15052 | if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then |
| 15053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15054 | else |
| 15055 | ac_get_soname_save_LIBS=$LIBS |
| 15056 | LIBS="-ltxc_dxtn $LIBS" |
| 15057 | cat >conftest.$ac_ext <<_ACEOF |
| 15058 | /* confdefs.h. */ |
| 15059 | _ACEOF |
| 15060 | cat confdefs.h >>conftest.$ac_ext |
| 15061 | cat >>conftest.$ac_ext <<_ACEOF |
| 15062 | /* end confdefs.h. */ |
| 15063 | |
| 15064 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15065 | #ifdef __cplusplus |
| 15066 | extern "C" |
| 15067 | #endif |
| 15068 | /* We use char because int might match the return type of a gcc2 |
| 15069 | builtin and then its argument prototype would still apply. */ |
| 15070 | char fetch_2d_texel_rgba_dxt1 (); |
| 15071 | int |
| 15072 | main () |
| 15073 | { |
| 15074 | fetch_2d_texel_rgba_dxt1 (); |
| 15075 | ; |
| 15076 | return 0; |
| 15077 | } |
| 15078 | _ACEOF |
| 15079 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15081 | (eval $ac_link) 2>conftest.er1 |
| 15082 | ac_status=$? |
| 15083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15084 | rm -f conftest.er1 |
| 15085 | cat conftest.err >&5 |
| 15086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15087 | (exit $ac_status); } && |
| 15088 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15090 | (eval $ac_try) 2>&5 |
| 15091 | ac_status=$? |
| 15092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15093 | (exit $ac_status); }; } && |
| 15094 | { ac_try='test -s conftest$ac_exeext' |
| 15095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15096 | (eval $ac_try) 2>&5 |
| 15097 | ac_status=$? |
| 15098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15099 | (exit $ac_status); }; }; then |
| 15100 | ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"` |
| 15101 | if test "x$ac_cv_lib_soname_txc_dxtn" = "x" |
| 15102 | then |
| 15103 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
| 15104 | fi |
| 15105 | else |
| 15106 | echo "$as_me: failed program was:" >&5 |
| 15107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15108 | |
| 15109 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
| 15110 | fi |
| 15111 | rm -f conftest.err conftest.$ac_objext \ |
| 15112 | conftest$ac_exeext conftest.$ac_ext |
| 15113 | LIBS=$ac_get_soname_save_LIBS |
| 15114 | fi |
| 15115 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5 |
| 15116 | echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6 |
| 15117 | if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE |
| 15118 | then |
| 15119 | cat >>confdefs.h <<_ACEOF |
| 15120 | #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn" |
| 15121 | _ACEOF |
| 15122 | fi |
| 15123 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15124 | echo "$as_me:$LINENO: checking for -lcups soname" >&5 |
| 15125 | echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6 |
| 15126 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 15127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15128 | else |
| 15129 | ac_get_soname_save_LIBS=$LIBS |
| 15130 | LIBS="-lcups $LIBS" |
| 15131 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15132 | /* confdefs.h. */ |
| 15133 | _ACEOF |
| 15134 | cat confdefs.h >>conftest.$ac_ext |
| 15135 | cat >>conftest.$ac_ext <<_ACEOF |
| 15136 | /* end confdefs.h. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15137 | |
| 15138 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15139 | #ifdef __cplusplus |
| 15140 | extern "C" |
| 15141 | #endif |
| 15142 | /* We use char because int might match the return type of a gcc2 |
| 15143 | builtin and then its argument prototype would still apply. */ |
| 15144 | char cupsGetDefault (); |
| 15145 | int |
| 15146 | main () |
| 15147 | { |
| 15148 | cupsGetDefault (); |
| 15149 | ; |
| 15150 | return 0; |
| 15151 | } |
| 15152 | _ACEOF |
| 15153 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15155 | (eval $ac_link) 2>conftest.er1 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15156 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15157 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15158 | rm -f conftest.er1 |
| 15159 | cat conftest.err >&5 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15161 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15164 | (eval $ac_try) 2>&5 |
| 15165 | ac_status=$? |
| 15166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15167 | (exit $ac_status); }; } && |
| 15168 | { ac_try='test -s conftest$ac_exeext' |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15170 | (eval $ac_try) 2>&5 |
| 15171 | ac_status=$? |
| 15172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15173 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15174 | ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"` |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15175 | if test "x$ac_cv_lib_soname_cups" = "x" |
| 15176 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15177 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15178 | fi |
| 15179 | else |
| 15180 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15182 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15183 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15184 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15185 | rm -f conftest.err conftest.$ac_objext \ |
| 15186 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15187 | LIBS=$ac_get_soname_save_LIBS |
| 15188 | fi |
| 15189 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5 |
| 15190 | echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6 |
| 15191 | if test "x$ac_cv_lib_soname_cups" != xNONE |
| 15192 | then |
| 15193 | cat >>confdefs.h <<_ACEOF |
| 15194 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 15195 | _ACEOF |
| 15196 | fi |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15197 | |
| 15198 | echo "$as_me:$LINENO: checking for -ljack soname" >&5 |
| 15199 | echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6 |
| 15200 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 15201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15202 | else |
| 15203 | ac_get_soname_save_LIBS=$LIBS |
| 15204 | LIBS="-ljack $LIBS" |
| 15205 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15206 | /* confdefs.h. */ |
| 15207 | _ACEOF |
| 15208 | cat confdefs.h >>conftest.$ac_ext |
| 15209 | cat >>conftest.$ac_ext <<_ACEOF |
| 15210 | /* end confdefs.h. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15211 | |
| 15212 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15213 | #ifdef __cplusplus |
| 15214 | extern "C" |
| 15215 | #endif |
| 15216 | /* We use char because int might match the return type of a gcc2 |
| 15217 | builtin and then its argument prototype would still apply. */ |
| 15218 | char jack_client_new (); |
| 15219 | int |
| 15220 | main () |
| 15221 | { |
| 15222 | jack_client_new (); |
| 15223 | ; |
| 15224 | return 0; |
| 15225 | } |
| 15226 | _ACEOF |
| 15227 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15229 | (eval $ac_link) 2>conftest.er1 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15230 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15232 | rm -f conftest.er1 |
| 15233 | cat conftest.err >&5 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15235 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15236 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15238 | (eval $ac_try) 2>&5 |
| 15239 | ac_status=$? |
| 15240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15241 | (exit $ac_status); }; } && |
| 15242 | { ac_try='test -s conftest$ac_exeext' |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15244 | (eval $ac_try) 2>&5 |
| 15245 | ac_status=$? |
| 15246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15247 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15248 | ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"` |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15249 | if test "x$ac_cv_lib_soname_jack" = "x" |
| 15250 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15251 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15252 | fi |
| 15253 | else |
| 15254 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15256 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15257 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15258 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15259 | rm -f conftest.err conftest.$ac_objext \ |
| 15260 | conftest$ac_exeext conftest.$ac_ext |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15261 | LIBS=$ac_get_soname_save_LIBS |
| 15262 | fi |
| 15263 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5 |
| 15264 | echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6 |
| 15265 | if test "x$ac_cv_lib_soname_jack" != xNONE |
| 15266 | then |
| 15267 | cat >>confdefs.h <<_ACEOF |
| 15268 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
| 15269 | _ACEOF |
| 15270 | fi |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15271 | |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15272 | echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5 |
| 15273 | echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6 |
| 15274 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then |
| 15275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15276 | else |
| 15277 | ac_get_soname_save_LIBS=$LIBS |
| 15278 | LIBS="-lfontconfig $LIBS" |
| 15279 | cat >conftest.$ac_ext <<_ACEOF |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15280 | /* confdefs.h. */ |
| 15281 | _ACEOF |
| 15282 | cat confdefs.h >>conftest.$ac_ext |
| 15283 | cat >>conftest.$ac_ext <<_ACEOF |
| 15284 | /* end confdefs.h. */ |
| 15285 | |
| 15286 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15287 | #ifdef __cplusplus |
| 15288 | extern "C" |
| 15289 | #endif |
| 15290 | /* We use char because int might match the return type of a gcc2 |
| 15291 | builtin and then its argument prototype would still apply. */ |
| 15292 | char FcInit (); |
| 15293 | int |
| 15294 | main () |
| 15295 | { |
| 15296 | FcInit (); |
| 15297 | ; |
| 15298 | return 0; |
| 15299 | } |
| 15300 | _ACEOF |
| 15301 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15303 | (eval $ac_link) 2>conftest.er1 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15304 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15306 | rm -f conftest.er1 |
| 15307 | cat conftest.err >&5 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15309 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15310 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15312 | (eval $ac_try) 2>&5 |
| 15313 | ac_status=$? |
| 15314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15315 | (exit $ac_status); }; } && |
| 15316 | { ac_try='test -s conftest$ac_exeext' |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15318 | (eval $ac_try) 2>&5 |
| 15319 | ac_status=$? |
| 15320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15321 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15322 | ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"` |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15323 | if test "x$ac_cv_lib_soname_fontconfig" = "x" |
| 15324 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15325 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15326 | fi |
| 15327 | else |
| 15328 | echo "$as_me: failed program was:" >&5 |
| 15329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15330 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15331 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15332 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15333 | rm -f conftest.err conftest.$ac_objext \ |
| 15334 | conftest$ac_exeext conftest.$ac_ext |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15335 | LIBS=$ac_get_soname_save_LIBS |
| 15336 | fi |
| 15337 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5 |
| 15338 | echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6 |
| 15339 | if test "x$ac_cv_lib_soname_fontconfig" != xNONE |
| 15340 | then |
| 15341 | cat >>confdefs.h <<_ACEOF |
| 15342 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 15343 | _ACEOF |
Alexandre Julliard | 7999469 | 2003-11-13 20:58:55 +0000 | [diff] [blame] | 15344 | fi |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15345 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15346 | echo "$as_me:$LINENO: checking for -lssl soname" >&5 |
| 15347 | echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6 |
| 15348 | if test "${ac_cv_lib_soname_ssl+set}" = set; then |
| 15349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15350 | else |
| 15351 | ac_get_soname_save_LIBS=$LIBS |
| 15352 | LIBS="-lssl $LIBS" |
| 15353 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15354 | /* confdefs.h. */ |
| 15355 | _ACEOF |
| 15356 | cat confdefs.h >>conftest.$ac_ext |
| 15357 | cat >>conftest.$ac_ext <<_ACEOF |
| 15358 | /* end confdefs.h. */ |
| 15359 | |
| 15360 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15361 | #ifdef __cplusplus |
| 15362 | extern "C" |
| 15363 | #endif |
| 15364 | /* We use char because int might match the return type of a gcc2 |
| 15365 | builtin and then its argument prototype would still apply. */ |
| 15366 | char SSL_library_init (); |
| 15367 | int |
| 15368 | main () |
| 15369 | { |
| 15370 | SSL_library_init (); |
| 15371 | ; |
| 15372 | return 0; |
| 15373 | } |
| 15374 | _ACEOF |
| 15375 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15377 | (eval $ac_link) 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15378 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15380 | rm -f conftest.er1 |
| 15381 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15383 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15384 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15386 | (eval $ac_try) 2>&5 |
| 15387 | ac_status=$? |
| 15388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15389 | (exit $ac_status); }; } && |
| 15390 | { ac_try='test -s conftest$ac_exeext' |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15392 | (eval $ac_try) 2>&5 |
| 15393 | ac_status=$? |
| 15394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15395 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15396 | ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"` |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15397 | if test "x$ac_cv_lib_soname_ssl" = "x" |
| 15398 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15399 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15400 | fi |
| 15401 | else |
| 15402 | echo "$as_me: failed program was:" >&5 |
| 15403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15404 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15405 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15406 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15407 | rm -f conftest.err conftest.$ac_objext \ |
| 15408 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15409 | LIBS=$ac_get_soname_save_LIBS |
| 15410 | fi |
| 15411 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5 |
| 15412 | echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6 |
| 15413 | if test "x$ac_cv_lib_soname_ssl" != xNONE |
| 15414 | then |
| 15415 | cat >>confdefs.h <<_ACEOF |
| 15416 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
| 15417 | _ACEOF |
| 15418 | fi |
| 15419 | |
| 15420 | echo "$as_me:$LINENO: checking for -lcrypto soname" >&5 |
| 15421 | echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6 |
| 15422 | if test "${ac_cv_lib_soname_crypto+set}" = set; then |
| 15423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15424 | else |
| 15425 | ac_get_soname_save_LIBS=$LIBS |
| 15426 | LIBS="-lcrypto $LIBS" |
| 15427 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15428 | /* confdefs.h. */ |
| 15429 | _ACEOF |
| 15430 | cat confdefs.h >>conftest.$ac_ext |
| 15431 | cat >>conftest.$ac_ext <<_ACEOF |
| 15432 | /* end confdefs.h. */ |
| 15433 | |
| 15434 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15435 | #ifdef __cplusplus |
| 15436 | extern "C" |
| 15437 | #endif |
| 15438 | /* We use char because int might match the return type of a gcc2 |
| 15439 | builtin and then its argument prototype would still apply. */ |
| 15440 | char BIO_new_socket (); |
| 15441 | int |
| 15442 | main () |
| 15443 | { |
| 15444 | BIO_new_socket (); |
| 15445 | ; |
| 15446 | return 0; |
| 15447 | } |
| 15448 | _ACEOF |
| 15449 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15451 | (eval $ac_link) 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15452 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15454 | rm -f conftest.er1 |
| 15455 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15457 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15458 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15460 | (eval $ac_try) 2>&5 |
| 15461 | ac_status=$? |
| 15462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15463 | (exit $ac_status); }; } && |
| 15464 | { ac_try='test -s conftest$ac_exeext' |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15466 | (eval $ac_try) 2>&5 |
| 15467 | ac_status=$? |
| 15468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15469 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15470 | ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"` |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15471 | if test "x$ac_cv_lib_soname_crypto" = "x" |
| 15472 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15473 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15474 | fi |
| 15475 | else |
| 15476 | echo "$as_me: failed program was:" >&5 |
| 15477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15478 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15479 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15480 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15481 | rm -f conftest.err conftest.$ac_objext \ |
| 15482 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15483 | LIBS=$ac_get_soname_save_LIBS |
| 15484 | fi |
| 15485 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5 |
| 15486 | echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6 |
| 15487 | if test "x$ac_cv_lib_soname_crypto" != xNONE |
| 15488 | then |
| 15489 | cat >>confdefs.h <<_ACEOF |
| 15490 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
| 15491 | _ACEOF |
| 15492 | fi |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15493 | |
| 15494 | echo "$as_me:$LINENO: checking for -lncurses soname" >&5 |
| 15495 | echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6 |
| 15496 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then |
| 15497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15498 | else |
| 15499 | ac_get_soname_save_LIBS=$LIBS |
| 15500 | LIBS="-lncurses $LIBS" |
| 15501 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15502 | /* confdefs.h. */ |
| 15503 | _ACEOF |
| 15504 | cat confdefs.h >>conftest.$ac_ext |
| 15505 | cat >>conftest.$ac_ext <<_ACEOF |
| 15506 | /* end confdefs.h. */ |
| 15507 | |
| 15508 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15509 | #ifdef __cplusplus |
| 15510 | extern "C" |
| 15511 | #endif |
| 15512 | /* We use char because int might match the return type of a gcc2 |
| 15513 | builtin and then its argument prototype would still apply. */ |
| 15514 | char waddch (); |
| 15515 | int |
| 15516 | main () |
| 15517 | { |
| 15518 | waddch (); |
| 15519 | ; |
| 15520 | return 0; |
| 15521 | } |
| 15522 | _ACEOF |
| 15523 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15525 | (eval $ac_link) 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15526 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15528 | rm -f conftest.er1 |
| 15529 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15531 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15534 | (eval $ac_try) 2>&5 |
| 15535 | ac_status=$? |
| 15536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15537 | (exit $ac_status); }; } && |
| 15538 | { ac_try='test -s conftest$ac_exeext' |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15540 | (eval $ac_try) 2>&5 |
| 15541 | ac_status=$? |
| 15542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15543 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15544 | ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"` |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15545 | if test "x$ac_cv_lib_soname_ncurses" = "x" |
| 15546 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15547 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15548 | fi |
| 15549 | else |
| 15550 | echo "$as_me: failed program was:" >&5 |
| 15551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15552 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15553 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15554 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15555 | rm -f conftest.err conftest.$ac_objext \ |
| 15556 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15557 | LIBS=$ac_get_soname_save_LIBS |
| 15558 | fi |
| 15559 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5 |
| 15560 | echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6 |
| 15561 | if test "x$ac_cv_lib_soname_ncurses" != xNONE |
| 15562 | then |
| 15563 | cat >>confdefs.h <<_ACEOF |
| 15564 | #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" |
| 15565 | _ACEOF |
| 15566 | fi |
| 15567 | |
| 15568 | echo "$as_me:$LINENO: checking for -lcurses soname" >&5 |
| 15569 | echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6 |
| 15570 | if test "${ac_cv_lib_soname_curses+set}" = set; then |
| 15571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15572 | else |
| 15573 | ac_get_soname_save_LIBS=$LIBS |
| 15574 | LIBS="-lcurses $LIBS" |
| 15575 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15576 | /* confdefs.h. */ |
| 15577 | _ACEOF |
| 15578 | cat confdefs.h >>conftest.$ac_ext |
| 15579 | cat >>conftest.$ac_ext <<_ACEOF |
| 15580 | /* end confdefs.h. */ |
| 15581 | |
| 15582 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15583 | #ifdef __cplusplus |
| 15584 | extern "C" |
| 15585 | #endif |
| 15586 | /* We use char because int might match the return type of a gcc2 |
| 15587 | builtin and then its argument prototype would still apply. */ |
| 15588 | char waddch (); |
| 15589 | int |
| 15590 | main () |
| 15591 | { |
| 15592 | waddch (); |
| 15593 | ; |
| 15594 | return 0; |
| 15595 | } |
| 15596 | _ACEOF |
| 15597 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15599 | (eval $ac_link) 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15600 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15602 | rm -f conftest.er1 |
| 15603 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15605 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15606 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15608 | (eval $ac_try) 2>&5 |
| 15609 | ac_status=$? |
| 15610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15611 | (exit $ac_status); }; } && |
| 15612 | { ac_try='test -s conftest$ac_exeext' |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15614 | (eval $ac_try) 2>&5 |
| 15615 | ac_status=$? |
| 15616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15617 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15618 | ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"` |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15619 | if test "x$ac_cv_lib_soname_curses" = "x" |
| 15620 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15621 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15622 | fi |
| 15623 | else |
| 15624 | echo "$as_me: failed program was:" >&5 |
| 15625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15626 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15627 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15628 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15629 | rm -f conftest.err conftest.$ac_objext \ |
| 15630 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15631 | LIBS=$ac_get_soname_save_LIBS |
| 15632 | fi |
| 15633 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5 |
| 15634 | echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6 |
| 15635 | if test "x$ac_cv_lib_soname_curses" != xNONE |
| 15636 | then |
| 15637 | cat >>confdefs.h <<_ACEOF |
| 15638 | #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" |
| 15639 | _ACEOF |
| 15640 | fi |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 15641 | |
| 15642 | echo "$as_me:$LINENO: checking for -ljpeg soname" >&5 |
| 15643 | echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6 |
| 15644 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then |
| 15645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15646 | else |
| 15647 | ac_get_soname_save_LIBS=$LIBS |
| 15648 | LIBS="-ljpeg $LIBS" |
| 15649 | cat >conftest.$ac_ext <<_ACEOF |
| 15650 | /* confdefs.h. */ |
| 15651 | _ACEOF |
| 15652 | cat confdefs.h >>conftest.$ac_ext |
| 15653 | cat >>conftest.$ac_ext <<_ACEOF |
| 15654 | /* end confdefs.h. */ |
| 15655 | |
| 15656 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15657 | #ifdef __cplusplus |
| 15658 | extern "C" |
| 15659 | #endif |
| 15660 | /* We use char because int might match the return type of a gcc2 |
| 15661 | builtin and then its argument prototype would still apply. */ |
| 15662 | char jpeg_start_decompress (); |
| 15663 | int |
| 15664 | main () |
| 15665 | { |
| 15666 | jpeg_start_decompress (); |
| 15667 | ; |
| 15668 | return 0; |
| 15669 | } |
| 15670 | _ACEOF |
| 15671 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15673 | (eval $ac_link) 2>conftest.er1 |
| 15674 | ac_status=$? |
| 15675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15676 | rm -f conftest.er1 |
| 15677 | cat conftest.err >&5 |
| 15678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15679 | (exit $ac_status); } && |
| 15680 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15682 | (eval $ac_try) 2>&5 |
| 15683 | ac_status=$? |
| 15684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15685 | (exit $ac_status); }; } && |
| 15686 | { ac_try='test -s conftest$ac_exeext' |
| 15687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15688 | (eval $ac_try) 2>&5 |
| 15689 | ac_status=$? |
| 15690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15691 | (exit $ac_status); }; }; then |
| 15692 | ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"` |
| 15693 | if test "x$ac_cv_lib_soname_jpeg" = "x" |
| 15694 | then |
| 15695 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
| 15696 | fi |
| 15697 | else |
| 15698 | echo "$as_me: failed program was:" >&5 |
| 15699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15700 | |
| 15701 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
| 15702 | fi |
| 15703 | rm -f conftest.err conftest.$ac_objext \ |
| 15704 | conftest$ac_exeext conftest.$ac_ext |
| 15705 | LIBS=$ac_get_soname_save_LIBS |
| 15706 | fi |
| 15707 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5 |
| 15708 | echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6 |
| 15709 | if test "x$ac_cv_lib_soname_jpeg" != xNONE |
| 15710 | then |
| 15711 | cat >>confdefs.h <<_ACEOF |
| 15712 | #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg" |
| 15713 | _ACEOF |
| 15714 | fi |
| 15715 | |
| 15716 | echo "$as_me:$LINENO: checking for -lungif soname" >&5 |
| 15717 | echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6 |
| 15718 | if test "${ac_cv_lib_soname_ungif+set}" = set; then |
| 15719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15720 | else |
| 15721 | ac_get_soname_save_LIBS=$LIBS |
| 15722 | LIBS="-lungif $LIBS" |
| 15723 | cat >conftest.$ac_ext <<_ACEOF |
| 15724 | /* confdefs.h. */ |
| 15725 | _ACEOF |
| 15726 | cat confdefs.h >>conftest.$ac_ext |
| 15727 | cat >>conftest.$ac_ext <<_ACEOF |
| 15728 | /* end confdefs.h. */ |
| 15729 | |
| 15730 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15731 | #ifdef __cplusplus |
| 15732 | extern "C" |
| 15733 | #endif |
| 15734 | /* We use char because int might match the return type of a gcc2 |
| 15735 | builtin and then its argument prototype would still apply. */ |
| 15736 | char DGifOpen (); |
| 15737 | int |
| 15738 | main () |
| 15739 | { |
| 15740 | DGifOpen (); |
| 15741 | ; |
| 15742 | return 0; |
| 15743 | } |
| 15744 | _ACEOF |
| 15745 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15747 | (eval $ac_link) 2>conftest.er1 |
| 15748 | ac_status=$? |
| 15749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15750 | rm -f conftest.er1 |
| 15751 | cat conftest.err >&5 |
| 15752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15753 | (exit $ac_status); } && |
| 15754 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15756 | (eval $ac_try) 2>&5 |
| 15757 | ac_status=$? |
| 15758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15759 | (exit $ac_status); }; } && |
| 15760 | { ac_try='test -s conftest$ac_exeext' |
| 15761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15762 | (eval $ac_try) 2>&5 |
| 15763 | ac_status=$? |
| 15764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15765 | (exit $ac_status); }; }; then |
| 15766 | ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"` |
| 15767 | if test "x$ac_cv_lib_soname_ungif" = "x" |
| 15768 | then |
| 15769 | ac_cv_lib_soname_ungif="libungif.$LIBEXT" |
| 15770 | fi |
| 15771 | else |
| 15772 | echo "$as_me: failed program was:" >&5 |
| 15773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15774 | |
| 15775 | ac_cv_lib_soname_ungif="libungif.$LIBEXT" |
| 15776 | fi |
| 15777 | rm -f conftest.err conftest.$ac_objext \ |
| 15778 | conftest$ac_exeext conftest.$ac_ext |
| 15779 | LIBS=$ac_get_soname_save_LIBS |
| 15780 | fi |
| 15781 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5 |
| 15782 | echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6 |
| 15783 | if test "x$ac_cv_lib_soname_ungif" != xNONE |
| 15784 | then |
| 15785 | cat >>confdefs.h <<_ACEOF |
| 15786 | #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif" |
| 15787 | _ACEOF |
| 15788 | fi |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 15789 | |
| 15790 | echo "$as_me:$LINENO: checking for -lgif soname" >&5 |
| 15791 | echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6 |
| 15792 | if test "${ac_cv_lib_soname_gif+set}" = set; then |
| 15793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15794 | else |
| 15795 | ac_get_soname_save_LIBS=$LIBS |
| 15796 | LIBS="-lgif $LIBS" |
| 15797 | cat >conftest.$ac_ext <<_ACEOF |
| 15798 | /* confdefs.h. */ |
| 15799 | _ACEOF |
| 15800 | cat confdefs.h >>conftest.$ac_ext |
| 15801 | cat >>conftest.$ac_ext <<_ACEOF |
| 15802 | /* end confdefs.h. */ |
| 15803 | |
| 15804 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15805 | #ifdef __cplusplus |
| 15806 | extern "C" |
| 15807 | #endif |
| 15808 | /* We use char because int might match the return type of a gcc2 |
| 15809 | builtin and then its argument prototype would still apply. */ |
| 15810 | char DGifOpen (); |
| 15811 | int |
| 15812 | main () |
| 15813 | { |
| 15814 | DGifOpen (); |
| 15815 | ; |
| 15816 | return 0; |
| 15817 | } |
| 15818 | _ACEOF |
| 15819 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15821 | (eval $ac_link) 2>conftest.er1 |
| 15822 | ac_status=$? |
| 15823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15824 | rm -f conftest.er1 |
| 15825 | cat conftest.err >&5 |
| 15826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15827 | (exit $ac_status); } && |
| 15828 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15830 | (eval $ac_try) 2>&5 |
| 15831 | ac_status=$? |
| 15832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15833 | (exit $ac_status); }; } && |
| 15834 | { ac_try='test -s conftest$ac_exeext' |
| 15835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15836 | (eval $ac_try) 2>&5 |
| 15837 | ac_status=$? |
| 15838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15839 | (exit $ac_status); }; }; then |
| 15840 | ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"` |
| 15841 | if test "x$ac_cv_lib_soname_gif" = "x" |
| 15842 | then |
| 15843 | ac_cv_lib_soname_gif="libgif.$LIBEXT" |
| 15844 | fi |
| 15845 | else |
| 15846 | echo "$as_me: failed program was:" >&5 |
| 15847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15848 | |
| 15849 | ac_cv_lib_soname_gif="libgif.$LIBEXT" |
| 15850 | fi |
| 15851 | rm -f conftest.err conftest.$ac_objext \ |
| 15852 | conftest$ac_exeext conftest.$ac_ext |
| 15853 | LIBS=$ac_get_soname_save_LIBS |
| 15854 | fi |
| 15855 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5 |
| 15856 | echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6 |
| 15857 | if test "x$ac_cv_lib_soname_gif" != xNONE |
| 15858 | then |
| 15859 | cat >>confdefs.h <<_ACEOF |
| 15860 | #define SONAME_LIBGIF "$ac_cv_lib_soname_gif" |
| 15861 | _ACEOF |
| 15862 | fi |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15863 | fi |
| 15864 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15865 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15866 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15867 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 15868 | # for constant arguments. Useless! |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15869 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15870 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 15871 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 15872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15873 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15874 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15875 | /* confdefs.h. */ |
| 15876 | _ACEOF |
| 15877 | cat confdefs.h >>conftest.$ac_ext |
| 15878 | cat >>conftest.$ac_ext <<_ACEOF |
| 15879 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15880 | #include <alloca.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15881 | int |
| 15882 | main () |
| 15883 | { |
| 15884 | char *p = (char *) alloca (2 * sizeof (int)); |
| 15885 | ; |
| 15886 | return 0; |
| 15887 | } |
| 15888 | _ACEOF |
| 15889 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15891 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15892 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15893 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15894 | rm -f conftest.er1 |
| 15895 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15897 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15898 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15900 | (eval $ac_try) 2>&5 |
| 15901 | ac_status=$? |
| 15902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15903 | (exit $ac_status); }; } && |
| 15904 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15906 | (eval $ac_try) 2>&5 |
| 15907 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15909 | (exit $ac_status); }; }; then |
| 15910 | ac_cv_working_alloca_h=yes |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15911 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15912 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15914 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15915 | ac_cv_working_alloca_h=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15916 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15917 | rm -f conftest.err conftest.$ac_objext \ |
| 15918 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15919 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15920 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15921 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 15922 | if test $ac_cv_working_alloca_h = yes; then |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 15923 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15924 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15925 | #define HAVE_ALLOCA_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15926 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15927 | |
| 15928 | fi |
| 15929 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15930 | echo "$as_me:$LINENO: checking for alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15931 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 15932 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 15933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15934 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15935 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15936 | /* confdefs.h. */ |
| 15937 | _ACEOF |
| 15938 | cat confdefs.h >>conftest.$ac_ext |
| 15939 | cat >>conftest.$ac_ext <<_ACEOF |
| 15940 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15941 | #ifdef __GNUC__ |
| 15942 | # define alloca __builtin_alloca |
| 15943 | #else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 15944 | # ifdef _MSC_VER |
| 15945 | # include <malloc.h> |
| 15946 | # define alloca _alloca |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15947 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 15948 | # if HAVE_ALLOCA_H |
| 15949 | # include <alloca.h> |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15950 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 15951 | # ifdef _AIX |
| 15952 | #pragma alloca |
| 15953 | # else |
| 15954 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15955 | char *alloca (); |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 15956 | # endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15957 | # endif |
| 15958 | # endif |
| 15959 | # endif |
| 15960 | #endif |
| 15961 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15962 | int |
| 15963 | main () |
| 15964 | { |
| 15965 | char *p = (char *) alloca (1); |
| 15966 | ; |
| 15967 | return 0; |
| 15968 | } |
| 15969 | _ACEOF |
| 15970 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15972 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15973 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15974 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15975 | rm -f conftest.er1 |
| 15976 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15978 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15979 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15981 | (eval $ac_try) 2>&5 |
| 15982 | ac_status=$? |
| 15983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15984 | (exit $ac_status); }; } && |
| 15985 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15987 | (eval $ac_try) 2>&5 |
| 15988 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15990 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15991 | ac_cv_func_alloca_works=yes |
| 15992 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15993 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15995 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15996 | ac_cv_func_alloca_works=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15997 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15998 | rm -f conftest.err conftest.$ac_objext \ |
| 15999 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16000 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16001 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16002 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16003 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16004 | if test $ac_cv_func_alloca_works = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16005 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16006 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16007 | #define HAVE_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16008 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16009 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16010 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16011 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16012 | # that cause trouble. Some versions do not even contain alloca or |
| 16013 | # contain a buggy version. If you still want to use their alloca, |
| 16014 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 16015 | |
| 16016 | ALLOCA=alloca.$ac_objext |
| 16017 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16018 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16019 | #define C_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16020 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16021 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16022 | |
| 16023 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16024 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 16025 | if test "${ac_cv_os_cray+set}" = set; then |
| 16026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16027 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16028 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16029 | /* confdefs.h. */ |
| 16030 | _ACEOF |
| 16031 | cat confdefs.h >>conftest.$ac_ext |
| 16032 | cat >>conftest.$ac_ext <<_ACEOF |
| 16033 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16034 | #if defined(CRAY) && ! defined(CRAY2) |
| 16035 | webecray |
| 16036 | #else |
| 16037 | wenotbecray |
| 16038 | #endif |
| 16039 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16040 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16041 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16042 | $EGREP "webecray" >/dev/null 2>&1; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16043 | ac_cv_os_cray=yes |
| 16044 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16045 | ac_cv_os_cray=no |
| 16046 | fi |
| 16047 | rm -f conftest* |
| 16048 | |
| 16049 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16050 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16051 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16052 | if test $ac_cv_os_cray = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16053 | for ac_func in _getb67 GETB67 getb67; do |
| 16054 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16055 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16056 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16057 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16059 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16060 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16061 | /* confdefs.h. */ |
| 16062 | _ACEOF |
| 16063 | cat confdefs.h >>conftest.$ac_ext |
| 16064 | cat >>conftest.$ac_ext <<_ACEOF |
| 16065 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16066 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16067 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16068 | #define $ac_func innocuous_$ac_func |
| 16069 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16070 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16071 | which can conflict with char $ac_func (); below. |
| 16072 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16073 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16074 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16075 | #ifdef __STDC__ |
| 16076 | # include <limits.h> |
| 16077 | #else |
| 16078 | # include <assert.h> |
| 16079 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16080 | |
| 16081 | #undef $ac_func |
| 16082 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16083 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16084 | #ifdef __cplusplus |
| 16085 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16086 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16087 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 16088 | /* 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] | 16089 | builtin and then its argument prototype would still apply. */ |
| 16090 | char $ac_func (); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16091 | /* The GNU C library defines this for functions which it implements |
| 16092 | to always fail with ENOSYS. Some functions are actually named |
| 16093 | something starting with __ and the normal name is an alias. */ |
| 16094 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16095 | choke me |
| 16096 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16097 | char (*f) () = $ac_func; |
| 16098 | #endif |
| 16099 | #ifdef __cplusplus |
| 16100 | } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16101 | #endif |
| 16102 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16103 | int |
| 16104 | main () |
| 16105 | { |
| 16106 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16107 | ; |
| 16108 | return 0; |
| 16109 | } |
| 16110 | _ACEOF |
| 16111 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16113 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16114 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16116 | rm -f conftest.er1 |
| 16117 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16119 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16120 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16122 | (eval $ac_try) 2>&5 |
| 16123 | ac_status=$? |
| 16124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16125 | (exit $ac_status); }; } && |
| 16126 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16128 | (eval $ac_try) 2>&5 |
| 16129 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16131 | (exit $ac_status); }; }; then |
| 16132 | eval "$as_ac_var=yes" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16133 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16134 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16136 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16137 | eval "$as_ac_var=no" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16138 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16139 | rm -f conftest.err conftest.$ac_objext \ |
| 16140 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16141 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16142 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16143 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16144 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16145 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16146 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16147 | #define CRAY_STACKSEG_END $ac_func |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16148 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16149 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16150 | break |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16151 | fi |
| 16152 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16153 | done |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16154 | fi |
| 16155 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16156 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16157 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 16158 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 16159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16160 | else |
| 16161 | if test "$cross_compiling" = yes; then |
| 16162 | ac_cv_c_stack_direction=0 |
| 16163 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16164 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16165 | /* confdefs.h. */ |
| 16166 | _ACEOF |
| 16167 | cat confdefs.h >>conftest.$ac_ext |
| 16168 | cat >>conftest.$ac_ext <<_ACEOF |
| 16169 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16170 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16171 | find_stack_direction () |
| 16172 | { |
| 16173 | static char *addr = 0; |
| 16174 | auto char dummy; |
| 16175 | if (addr == 0) |
| 16176 | { |
| 16177 | addr = &dummy; |
| 16178 | return find_stack_direction (); |
| 16179 | } |
| 16180 | else |
| 16181 | return (&dummy > addr) ? 1 : -1; |
| 16182 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16183 | |
| 16184 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16185 | main () |
| 16186 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16187 | exit (find_stack_direction () < 0); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16188 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16189 | _ACEOF |
| 16190 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16192 | (eval $ac_link) 2>&5 |
| 16193 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16195 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16197 | (eval $ac_try) 2>&5 |
| 16198 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16200 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16201 | ac_cv_c_stack_direction=1 |
| 16202 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16203 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16204 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16206 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16207 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16208 | ac_cv_c_stack_direction=-1 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16209 | fi |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 16210 | rm -f 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] | 16211 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16212 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16213 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16214 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16215 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16216 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16217 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16218 | _ACEOF |
| 16219 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16220 | |
| 16221 | fi |
| 16222 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16223 | |
| 16224 | |
| 16225 | |
| 16226 | |
| 16227 | |
| 16228 | |
| 16229 | |
| 16230 | |
| 16231 | |
| 16232 | |
| 16233 | |
| 16234 | |
| 16235 | |
| 16236 | |
| 16237 | |
| 16238 | |
| 16239 | |
| 16240 | |
| 16241 | |
| 16242 | |
| 16243 | |
| 16244 | |
| 16245 | |
| 16246 | |
| 16247 | |
| 16248 | |
| 16249 | |
| 16250 | |
| 16251 | |
| 16252 | |
| 16253 | |
| 16254 | |
| 16255 | |
| 16256 | |
| 16257 | |
| 16258 | |
| 16259 | |
| 16260 | |
| 16261 | |
| 16262 | |
| 16263 | |
| 16264 | |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 16265 | |
| 16266 | |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 16267 | |
| 16268 | |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 16269 | |
Patrik Stridvall | 6caeb72 | 2002-11-25 21:12:26 +0000 | [diff] [blame] | 16270 | |
| 16271 | |
| 16272 | |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 16273 | |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 16274 | |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 16275 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 16276 | |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 16277 | |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 16278 | |
| 16279 | |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 16280 | |
Steven Edwards | e7c3ab1 | 2004-10-04 20:45:49 +0000 | [diff] [blame] | 16281 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16282 | for ac_func in \ |
| 16283 | _lwp_create \ |
Alexandre Julliard | 6f7a204 | 2003-04-01 04:39:35 +0000 | [diff] [blame] | 16284 | _lwp_self \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16285 | _pclose \ |
| 16286 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 16287 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 16288 | _spawnvp \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16289 | _stricmp \ |
| 16290 | _strnicmp \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 16291 | _vsnprintf \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 16292 | chsize \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16293 | clone \ |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 16294 | epoll_create \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 16295 | finite \ |
| 16296 | fpclass \ |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 16297 | fstatfs \ |
| 16298 | fstatvfs \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 16299 | ftruncate \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 16300 | ftruncate64 \ |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 16301 | futimes \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16302 | getnetbyaddr \ |
| 16303 | getnetbyname \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 16304 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16305 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16306 | getprotobyname \ |
| 16307 | getprotobynumber \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 16308 | getpwuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16309 | getservbyport \ |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 16310 | gettid \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 16311 | gettimeofday \ |
Steven Edwards | e7c3ab1 | 2004-10-04 20:45:49 +0000 | [diff] [blame] | 16312 | getuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16313 | inet_network \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 16314 | lseek64 \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 16315 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16316 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 16317 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16318 | pclose \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16319 | popen \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 16320 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 16321 | pwrite \ |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 16322 | readlink \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16323 | rfork \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16324 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16325 | sendmsg \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16326 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16327 | sigaltstack \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 16328 | snprintf \ |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 16329 | spawnvp \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16330 | statfs \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 16331 | statvfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 16332 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16333 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 16334 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16335 | tcgetattr \ |
| 16336 | timegm \ |
| 16337 | usleep \ |
| 16338 | vfscanf \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 16339 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16340 | wait4 \ |
| 16341 | waitpid \ |
| 16342 | |
| 16343 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16344 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16345 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16346 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16347 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16349 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16350 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16351 | /* confdefs.h. */ |
| 16352 | _ACEOF |
| 16353 | cat confdefs.h >>conftest.$ac_ext |
| 16354 | cat >>conftest.$ac_ext <<_ACEOF |
| 16355 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16356 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16357 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16358 | #define $ac_func innocuous_$ac_func |
| 16359 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16360 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16361 | which can conflict with char $ac_func (); below. |
| 16362 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16363 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16364 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16365 | #ifdef __STDC__ |
| 16366 | # include <limits.h> |
| 16367 | #else |
| 16368 | # include <assert.h> |
| 16369 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16370 | |
| 16371 | #undef $ac_func |
| 16372 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16373 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16374 | #ifdef __cplusplus |
| 16375 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16376 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16377 | #endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16378 | /* 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] | 16379 | builtin and then its argument prototype would still apply. */ |
| 16380 | char $ac_func (); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16381 | /* The GNU C library defines this for functions which it implements |
| 16382 | to always fail with ENOSYS. Some functions are actually named |
| 16383 | something starting with __ and the normal name is an alias. */ |
| 16384 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16385 | choke me |
| 16386 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16387 | char (*f) () = $ac_func; |
| 16388 | #endif |
| 16389 | #ifdef __cplusplus |
| 16390 | } |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16391 | #endif |
| 16392 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16393 | int |
| 16394 | main () |
| 16395 | { |
| 16396 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16397 | ; |
| 16398 | return 0; |
| 16399 | } |
| 16400 | _ACEOF |
| 16401 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16403 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16404 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16405 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16406 | rm -f conftest.er1 |
| 16407 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16409 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16412 | (eval $ac_try) 2>&5 |
| 16413 | ac_status=$? |
| 16414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16415 | (exit $ac_status); }; } && |
| 16416 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16418 | (eval $ac_try) 2>&5 |
| 16419 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16421 | (exit $ac_status); }; }; then |
| 16422 | eval "$as_ac_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16423 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16424 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16426 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16427 | eval "$as_ac_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16428 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16429 | rm -f conftest.err conftest.$ac_objext \ |
| 16430 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16431 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16432 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16433 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16434 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16435 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16436 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16437 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 16438 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16439 | fi |
| 16440 | done |
| 16441 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16442 | |
| 16443 | |
| 16444 | |
| 16445 | |
| 16446 | |
| 16447 | |
| 16448 | |
| 16449 | |
| 16450 | |
| 16451 | |
| 16452 | |
| 16453 | |
| 16454 | |
| 16455 | |
| 16456 | |
| 16457 | |
| 16458 | |
| 16459 | |
| 16460 | |
| 16461 | |
| 16462 | |
| 16463 | |
| 16464 | |
| 16465 | |
| 16466 | |
| 16467 | |
| 16468 | |
| 16469 | |
| 16470 | |
| 16471 | |
| 16472 | |
| 16473 | |
| 16474 | |
| 16475 | |
| 16476 | |
| 16477 | |
| 16478 | |
| 16479 | |
| 16480 | |
| 16481 | |
| 16482 | |
| 16483 | |
| 16484 | |
| 16485 | |
| 16486 | |
| 16487 | |
| 16488 | |
| 16489 | |
| 16490 | |
| 16491 | |
| 16492 | |
| 16493 | |
| 16494 | |
| 16495 | |
| 16496 | |
| 16497 | |
| 16498 | |
| 16499 | |
| 16500 | |
| 16501 | |
| 16502 | |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 16503 | |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 16504 | |
| 16505 | |
| 16506 | |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 16507 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 16508 | |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 16509 | |
| 16510 | |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 16511 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16512 | |
Alexandre Julliard | b693895 | 2003-01-13 18:41:40 +0000 | [diff] [blame] | 16513 | |
Alexandre Julliard | c44555b | 2003-04-02 01:42:06 +0000 | [diff] [blame] | 16514 | |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 16515 | |
Yorick Hardy | c26b7db | 2003-05-19 21:46:09 +0000 | [diff] [blame] | 16516 | |
Yorick Hardy | b133454 | 2003-05-20 17:48:40 +0000 | [diff] [blame] | 16517 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16518 | |
Pavel Roskin | 6ce0569 | 2003-10-03 04:31:49 +0000 | [diff] [blame] | 16519 | |
Rein Klazes | c6c404d | 2003-10-07 22:49:22 +0000 | [diff] [blame] | 16520 | |
Alexandre Julliard | 0b1a82a | 2003-10-14 01:27:31 +0000 | [diff] [blame] | 16521 | |
Dmitry Timoshkov | 2581db8 | 2003-10-14 05:27:43 +0000 | [diff] [blame] | 16522 | |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16523 | |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 16524 | |
| 16525 | |
Alexandre Julliard | e8a339c | 2004-03-01 21:32:02 +0000 | [diff] [blame] | 16526 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 16527 | |
Alexandre Julliard | ffcc67a | 2004-04-29 20:04:48 +0000 | [diff] [blame] | 16528 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16529 | |
| 16530 | |
Rein Klazes | d1993fb | 2004-09-07 22:44:34 +0000 | [diff] [blame] | 16531 | |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 16532 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16533 | for ac_header in \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16534 | arpa/inet.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16535 | arpa/nameser.h \ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 16536 | cups/cups.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16537 | direct.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16538 | elf.h \ |
| 16539 | float.h \ |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 16540 | fontconfig/fontconfig.h \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 16541 | getopt.h \ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16542 | gif_lib.h \ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 16543 | ieeefp.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16544 | io.h \ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 16545 | jack/jack.h \ |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 16546 | jpeglib.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16547 | libio.h \ |
Hidenori Takeshima | 01f78aa | 2000-07-09 12:19:09 +0000 | [diff] [blame] | 16548 | libutil.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16549 | link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16550 | linux/cdrom.h \ |
Rein Klazes | d1993fb | 2004-09-07 22:44:34 +0000 | [diff] [blame] | 16551 | linux/compiler.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 16552 | linux/hdreg.h \ |
Marcus Meissner | c9b3b2e | 2000-12-12 00:38:58 +0000 | [diff] [blame] | 16553 | linux/input.h \ |
Alexandre Julliard | e8a339c | 2004-03-01 21:32:02 +0000 | [diff] [blame] | 16554 | linux/ioctl.h \ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 16555 | linux/joystick.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 16556 | linux/major.h \ |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 16557 | linux/param.h \ |
Lawson Whitney | 533e7ee | 2002-02-19 18:41:56 +0000 | [diff] [blame] | 16558 | linux/serial.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16559 | linux/ucdrom.h \ |
Yorick Hardy | b133454 | 2003-05-20 17:48:40 +0000 | [diff] [blame] | 16560 | machine/cpu.h \ |
Alexandre Julliard | ffcc67a | 2004-04-29 20:04:48 +0000 | [diff] [blame] | 16561 | mntent.h \ |
Hidenori Takeshima | 5d1a638 | 2000-11-26 04:00:53 +0000 | [diff] [blame] | 16562 | netdb.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16563 | netinet/in.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 16564 | netinet/in_systm.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16565 | netinet/tcp.h \ |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 16566 | netinet/tcp_fsm.h \ |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 16567 | openssl/ssl.h \ |
Dmitry Timoshkov | 2581db8 | 2003-10-14 05:27:43 +0000 | [diff] [blame] | 16568 | process.h \ |
Alexandre Julliard | 0b1a82a | 2003-10-14 01:27:31 +0000 | [diff] [blame] | 16569 | pthread.h \ |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 16570 | pty.h \ |
Steven Edwards | ff4525c | 2002-06-24 23:00:25 +0000 | [diff] [blame] | 16571 | pwd.h \ |
Alexandre Julliard | b693895 | 2003-01-13 18:41:40 +0000 | [diff] [blame] | 16572 | regex.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16573 | sched.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 16574 | scsi/sg.h \ |
Rein Klazes | c6c404d | 2003-10-07 22:49:22 +0000 | [diff] [blame] | 16575 | scsi/scsi.h \ |
Pavel Roskin | 6ce0569 | 2003-10-03 04:31:49 +0000 | [diff] [blame] | 16576 | scsi/scsi_ioctl.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16577 | socket.h \ |
Bang Jun-Young | eda758e | 2001-12-14 22:47:19 +0000 | [diff] [blame] | 16578 | stdint.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16579 | strings.h \ |
| 16580 | sys/cdio.h \ |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 16581 | sys/elf32.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 16582 | sys/errno.h \ |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 16583 | sys/epoll.h \ |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 16584 | sys/exec_elf.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16585 | sys/file.h \ |
| 16586 | sys/filio.h \ |
Michal Pasternak | 6098399 | 2002-03-29 18:04:43 +0000 | [diff] [blame] | 16587 | sys/inttypes.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 16588 | sys/ioctl.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16589 | sys/ipc.h \ |
Eric Pouech | 624cbd7 | 2001-08-10 22:29:21 +0000 | [diff] [blame] | 16590 | sys/link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16591 | sys/lwp.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 16592 | sys/mman.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16593 | sys/modem.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16594 | sys/msg.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16595 | sys/param.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 16596 | sys/poll.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 16597 | sys/ptrace.h \ |
Ulrich Weigand | 8a1bdb3 | 2000-01-30 22:22:22 +0000 | [diff] [blame] | 16598 | sys/reg.h \ |
Yorick Hardy | c26b7db | 2003-05-19 21:46:09 +0000 | [diff] [blame] | 16599 | sys/scsiio.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16600 | sys/shm.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 16601 | sys/signal.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16602 | sys/socket.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16603 | sys/sockio.h \ |
| 16604 | sys/statfs.h \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 16605 | sys/statvfs.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16606 | sys/strtio.h \ |
| 16607 | sys/syscall.h \ |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 16608 | sys/sysctl.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16609 | sys/time.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 16610 | sys/times.h \ |
Steven Edwards | 45e5681 | 2002-10-31 03:41:56 +0000 | [diff] [blame] | 16611 | sys/uio.h \ |
| 16612 | sys/un.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16613 | sys/v86.h \ |
| 16614 | sys/v86intr.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16615 | sys/vfs.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 16616 | sys/vm86.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 16617 | sys/wait.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16618 | syscall.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 16619 | termios.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16620 | unistd.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 16621 | utime.h \ |
Alexandre Julliard | c44555b | 2003-04-02 01:42:06 +0000 | [diff] [blame] | 16622 | valgrind/memcheck.h |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 16623 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16624 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16625 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16626 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16627 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16628 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16629 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16631 | fi |
| 16632 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16633 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16634 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16635 | # Is the header compilable? |
| 16636 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 16637 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 16638 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16639 | /* confdefs.h. */ |
| 16640 | _ACEOF |
| 16641 | cat confdefs.h >>conftest.$ac_ext |
| 16642 | cat >>conftest.$ac_ext <<_ACEOF |
| 16643 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16644 | $ac_includes_default |
| 16645 | #include <$ac_header> |
| 16646 | _ACEOF |
| 16647 | rm -f conftest.$ac_objext |
| 16648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16649 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16650 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16652 | rm -f conftest.er1 |
| 16653 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16655 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16656 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16658 | (eval $ac_try) 2>&5 |
| 16659 | ac_status=$? |
| 16660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16661 | (exit $ac_status); }; } && |
| 16662 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16664 | (eval $ac_try) 2>&5 |
| 16665 | ac_status=$? |
| 16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16667 | (exit $ac_status); }; }; then |
| 16668 | ac_header_compiler=yes |
| 16669 | else |
| 16670 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16672 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16673 | ac_header_compiler=no |
| 16674 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16676 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16677 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16678 | |
| 16679 | # Is the header present? |
| 16680 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 16681 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 16682 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16683 | /* confdefs.h. */ |
| 16684 | _ACEOF |
| 16685 | cat confdefs.h >>conftest.$ac_ext |
| 16686 | cat >>conftest.$ac_ext <<_ACEOF |
| 16687 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16688 | #include <$ac_header> |
| 16689 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16690 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16691 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16692 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16693 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16694 | rm -f conftest.er1 |
| 16695 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16697 | (exit $ac_status); } >/dev/null; then |
| 16698 | if test -s conftest.err; then |
| 16699 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16700 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16701 | else |
| 16702 | ac_cpp_err= |
| 16703 | fi |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16704 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16705 | ac_cpp_err=yes |
| 16706 | fi |
| 16707 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16708 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16709 | else |
| 16710 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16711 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16712 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16713 | ac_header_preproc=no |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16714 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16715 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16716 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16717 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16718 | |
| 16719 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16720 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 16721 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16722 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16723 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 16725 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 16726 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16727 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16728 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16729 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 16730 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16731 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 16732 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 16733 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 16734 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 16735 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 16736 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16737 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16738 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16739 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 16740 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16741 | ( |
| 16742 | cat <<\_ASBOX |
| 16743 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16744 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16745 | ## ------------------------------------ ## |
| 16746 | _ASBOX |
| 16747 | ) | |
| 16748 | sed "s/^/$as_me: WARNING: /" >&2 |
| 16749 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16750 | esac |
| 16751 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16752 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16753 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16755 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16756 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16757 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16758 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16759 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16760 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16761 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16762 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16763 | cat >>confdefs.h <<_ACEOF |
| 16764 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16765 | _ACEOF |
| 16766 | |
| 16767 | fi |
| 16768 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 16769 | done |
| 16770 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16771 | 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] | 16772 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 16773 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 16774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16775 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16776 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16777 | /* confdefs.h. */ |
| 16778 | _ACEOF |
| 16779 | cat confdefs.h >>conftest.$ac_ext |
| 16780 | cat >>conftest.$ac_ext <<_ACEOF |
| 16781 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16782 | #include <sys/types.h> |
| 16783 | #include <sys/stat.h> |
| 16784 | |
| 16785 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 16786 | # if S_ISBLK (S_IFDIR) |
| 16787 | You lose. |
| 16788 | # endif |
| 16789 | #endif |
| 16790 | |
| 16791 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 16792 | # if S_ISBLK (S_IFCHR) |
| 16793 | You lose. |
| 16794 | # endif |
| 16795 | #endif |
| 16796 | |
| 16797 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 16798 | # if S_ISLNK (S_IFREG) |
| 16799 | You lose. |
| 16800 | # endif |
| 16801 | #endif |
| 16802 | |
| 16803 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 16804 | # if S_ISSOCK (S_IFREG) |
| 16805 | You lose. |
| 16806 | # endif |
| 16807 | #endif |
| 16808 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16809 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16810 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16811 | $EGREP "You lose" >/dev/null 2>&1; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16812 | ac_cv_header_stat_broken=yes |
| 16813 | else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16814 | ac_cv_header_stat_broken=no |
| 16815 | fi |
| 16816 | rm -f conftest* |
| 16817 | |
| 16818 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16819 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16820 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16821 | if test $ac_cv_header_stat_broken = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16822 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16823 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16824 | #define STAT_MACROS_BROKEN 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16825 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16826 | |
| 16827 | fi |
| 16828 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16829 | |
| 16830 | |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16831 | |
| 16832 | |
| 16833 | for ac_header in sys/mount.h sys/user.h |
| 16834 | do |
| 16835 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16836 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16837 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16838 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16840 | else |
| 16841 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16842 | /* confdefs.h. */ |
| 16843 | _ACEOF |
| 16844 | cat confdefs.h >>conftest.$ac_ext |
| 16845 | cat >>conftest.$ac_ext <<_ACEOF |
| 16846 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 16847 | #include <sys/types.h> |
| 16848 | #if HAVE_SYS_PARAM_H |
| 16849 | # include <sys/param.h> |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16850 | #endif |
| 16851 | |
| 16852 | #include <$ac_header> |
| 16853 | _ACEOF |
| 16854 | rm -f conftest.$ac_objext |
| 16855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16856 | (eval $ac_compile) 2>conftest.er1 |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16857 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16858 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16859 | rm -f conftest.er1 |
| 16860 | cat conftest.err >&5 |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16862 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16863 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16865 | (eval $ac_try) 2>&5 |
| 16866 | ac_status=$? |
| 16867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16868 | (exit $ac_status); }; } && |
| 16869 | { ac_try='test -s conftest.$ac_objext' |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16871 | (eval $ac_try) 2>&5 |
| 16872 | ac_status=$? |
| 16873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16874 | (exit $ac_status); }; }; then |
| 16875 | eval "$as_ac_Header=yes" |
| 16876 | else |
| 16877 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16879 | |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16880 | eval "$as_ac_Header=no" |
| 16881 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16883 | fi |
| 16884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16885 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16886 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16887 | cat >>confdefs.h <<_ACEOF |
| 16888 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16889 | _ACEOF |
| 16890 | |
| 16891 | fi |
| 16892 | |
| 16893 | done |
| 16894 | |
| 16895 | |
| 16896 | |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 16897 | |
| 16898 | |
| 16899 | |
| 16900 | |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16901 | for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16902 | do |
| 16903 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16904 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16908 | else |
| 16909 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16910 | /* confdefs.h. */ |
| 16911 | _ACEOF |
| 16912 | cat confdefs.h >>conftest.$ac_ext |
| 16913 | cat >>conftest.$ac_ext <<_ACEOF |
| 16914 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 16915 | #include <sys/types.h> |
Gerald Pfeifer | 87c369d | 2002-07-23 02:02:02 +0000 | [diff] [blame] | 16916 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16917 | # include <sys/socket.h> |
| 16918 | #endif |
| 16919 | |
| 16920 | #include <$ac_header> |
| 16921 | _ACEOF |
| 16922 | rm -f conftest.$ac_objext |
| 16923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16924 | (eval $ac_compile) 2>conftest.er1 |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16925 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16927 | rm -f conftest.er1 |
| 16928 | cat conftest.err >&5 |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16930 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16931 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16933 | (eval $ac_try) 2>&5 |
| 16934 | ac_status=$? |
| 16935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16936 | (exit $ac_status); }; } && |
| 16937 | { ac_try='test -s conftest.$ac_objext' |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16939 | (eval $ac_try) 2>&5 |
| 16940 | ac_status=$? |
| 16941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16942 | (exit $ac_status); }; }; then |
| 16943 | eval "$as_ac_Header=yes" |
| 16944 | else |
| 16945 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16947 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16948 | eval "$as_ac_Header=no" |
| 16949 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16951 | fi |
| 16952 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16953 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16954 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16955 | cat >>confdefs.h <<_ACEOF |
| 16956 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16957 | _ACEOF |
| 16958 | |
| 16959 | fi |
| 16960 | |
| 16961 | done |
| 16962 | |
| 16963 | |
| 16964 | |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16965 | for ac_header in resolv.h |
| 16966 | do |
| 16967 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16968 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16969 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16970 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16972 | else |
| 16973 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16974 | /* confdefs.h. */ |
| 16975 | _ACEOF |
| 16976 | cat confdefs.h >>conftest.$ac_ext |
| 16977 | cat >>conftest.$ac_ext <<_ACEOF |
| 16978 | /* end confdefs.h. */ |
| 16979 | #include <sys/types.h> |
| 16980 | #if HAVE_SYS_SOCKET_H |
| 16981 | # include <sys/socket.h> |
| 16982 | #endif |
| 16983 | #if HAVE_NETINET_IN_H |
| 16984 | # include <netinet/in.h> |
| 16985 | #endif |
Pierre d'Herbemont | ae8ca36 | 2003-10-27 21:55:00 +0000 | [diff] [blame] | 16986 | #if HAVE_ARPA_NAMESER_H |
| 16987 | # include <arpa/nameser.h> |
| 16988 | #endif |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16989 | |
| 16990 | #include <$ac_header> |
| 16991 | _ACEOF |
| 16992 | rm -f conftest.$ac_objext |
| 16993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16994 | (eval $ac_compile) 2>conftest.er1 |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16995 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16997 | rm -f conftest.er1 |
| 16998 | cat conftest.err >&5 |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17000 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17003 | (eval $ac_try) 2>&5 |
| 17004 | ac_status=$? |
| 17005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17006 | (exit $ac_status); }; } && |
| 17007 | { ac_try='test -s conftest.$ac_objext' |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 17008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17009 | (eval $ac_try) 2>&5 |
| 17010 | ac_status=$? |
| 17011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17012 | (exit $ac_status); }; }; then |
| 17013 | eval "$as_ac_Header=yes" |
| 17014 | else |
| 17015 | echo "$as_me: failed program was:" >&5 |
| 17016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17017 | |
| 17018 | eval "$as_ac_Header=no" |
| 17019 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 17021 | fi |
| 17022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 17023 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 17024 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17025 | cat >>confdefs.h <<_ACEOF |
| 17026 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17027 | _ACEOF |
| 17028 | |
| 17029 | fi |
| 17030 | |
| 17031 | done |
| 17032 | |
| 17033 | |
| 17034 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 17035 | for ac_header in netinet/ip.h |
| 17036 | do |
| 17037 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17038 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17039 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 17040 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 17041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17042 | else |
| 17043 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17044 | /* confdefs.h. */ |
| 17045 | _ACEOF |
| 17046 | cat confdefs.h >>conftest.$ac_ext |
| 17047 | cat >>conftest.$ac_ext <<_ACEOF |
| 17048 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 17049 | #include <sys/types.h> |
| 17050 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 17051 | # include <sys/socket.h> |
| 17052 | #endif |
| 17053 | #if HAVE_NETINET_IN_SYSTM_H |
| 17054 | # include <netinet/in_systm.h> |
| 17055 | #endif |
| 17056 | |
| 17057 | #include <$ac_header> |
| 17058 | _ACEOF |
| 17059 | rm -f conftest.$ac_objext |
| 17060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17061 | (eval $ac_compile) 2>conftest.er1 |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 17062 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17064 | rm -f conftest.er1 |
| 17065 | cat conftest.err >&5 |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 17066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17067 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17068 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17070 | (eval $ac_try) 2>&5 |
| 17071 | ac_status=$? |
| 17072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17073 | (exit $ac_status); }; } && |
| 17074 | { ac_try='test -s conftest.$ac_objext' |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 17075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17076 | (eval $ac_try) 2>&5 |
| 17077 | ac_status=$? |
| 17078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17079 | (exit $ac_status); }; }; then |
| 17080 | eval "$as_ac_Header=yes" |
| 17081 | else |
| 17082 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17084 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 17085 | eval "$as_ac_Header=no" |
| 17086 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 17088 | fi |
| 17089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 17090 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 17091 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17092 | cat >>confdefs.h <<_ACEOF |
| 17093 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17094 | _ACEOF |
| 17095 | |
| 17096 | fi |
| 17097 | |
| 17098 | done |
| 17099 | |
| 17100 | |
| 17101 | |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17102 | for ac_header in ucontext.h |
| 17103 | do |
| 17104 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 17105 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 17106 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 17107 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 17108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17109 | else |
| 17110 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17111 | /* confdefs.h. */ |
| 17112 | _ACEOF |
| 17113 | cat confdefs.h >>conftest.$ac_ext |
| 17114 | cat >>conftest.$ac_ext <<_ACEOF |
| 17115 | /* end confdefs.h. */ |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17116 | #include <signal.h> |
| 17117 | |
| 17118 | #include <$ac_header> |
| 17119 | _ACEOF |
| 17120 | rm -f conftest.$ac_objext |
| 17121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17122 | (eval $ac_compile) 2>conftest.er1 |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17123 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17125 | rm -f conftest.er1 |
| 17126 | cat conftest.err >&5 |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17128 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17129 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17131 | (eval $ac_try) 2>&5 |
| 17132 | ac_status=$? |
| 17133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17134 | (exit $ac_status); }; } && |
| 17135 | { ac_try='test -s conftest.$ac_objext' |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17137 | (eval $ac_try) 2>&5 |
| 17138 | ac_status=$? |
| 17139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17140 | (exit $ac_status); }; }; then |
| 17141 | eval "$as_ac_Header=yes" |
| 17142 | else |
| 17143 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17145 | |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17146 | eval "$as_ac_Header=no" |
| 17147 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17148 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 17149 | fi |
| 17150 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 17151 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 17152 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 17153 | cat >>confdefs.h <<_ACEOF |
| 17154 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 17155 | _ACEOF |
| 17156 | |
| 17157 | fi |
| 17158 | |
| 17159 | done |
| 17160 | |
| 17161 | |
| 17162 | |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17163 | echo "$as_me:$LINENO: checking for GNU style IPX support" >&5 |
| 17164 | echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6 |
| 17165 | if test "${ac_cv_c_ipx_gnu+set}" = set; then |
| 17166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17167 | else |
| 17168 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17169 | /* confdefs.h. */ |
| 17170 | _ACEOF |
| 17171 | cat confdefs.h >>conftest.$ac_ext |
| 17172 | cat >>conftest.$ac_ext <<_ACEOF |
| 17173 | /* end confdefs.h. */ |
| 17174 | #include <sys/types.h> |
| 17175 | #ifdef HAVE_SYS_SOCKET_H |
| 17176 | # include <sys/socket.h> |
| 17177 | #endif |
| 17178 | #include <netipx/ipx.h> |
| 17179 | int |
| 17180 | main () |
| 17181 | { |
| 17182 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 17183 | ; |
| 17184 | return 0; |
| 17185 | } |
| 17186 | _ACEOF |
| 17187 | rm -f conftest.$ac_objext |
| 17188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17189 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17190 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17191 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17192 | rm -f conftest.er1 |
| 17193 | cat conftest.err >&5 |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17195 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17198 | (eval $ac_try) 2>&5 |
| 17199 | ac_status=$? |
| 17200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17201 | (exit $ac_status); }; } && |
| 17202 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17204 | (eval $ac_try) 2>&5 |
| 17205 | ac_status=$? |
| 17206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17207 | (exit $ac_status); }; }; then |
| 17208 | ac_cv_c_ipx_gnu="yes" |
| 17209 | else |
| 17210 | echo "$as_me: failed program was:" >&5 |
| 17211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17212 | |
| 17213 | ac_cv_c_ipx_gnu="no" |
| 17214 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17216 | |
| 17217 | fi |
| 17218 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5 |
| 17219 | echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6 |
| 17220 | if test "$ac_cv_c_ipx_gnu" = "yes" |
| 17221 | then |
| 17222 | |
| 17223 | cat >>confdefs.h <<\_ACEOF |
| 17224 | #define HAVE_IPX_GNU 1 |
| 17225 | _ACEOF |
| 17226 | |
| 17227 | fi |
| 17228 | |
| 17229 | if test "$ac_cv_c_ipx_gnu" = "no" |
| 17230 | then |
| 17231 | echo "$as_me:$LINENO: checking for linux style IPX support" >&5 |
| 17232 | echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6 |
| 17233 | if test "${ac_cv_c_ipx_linux+set}" = set; then |
| 17234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17235 | else |
| 17236 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17237 | /* confdefs.h. */ |
| 17238 | _ACEOF |
| 17239 | cat confdefs.h >>conftest.$ac_ext |
| 17240 | cat >>conftest.$ac_ext <<_ACEOF |
| 17241 | /* end confdefs.h. */ |
| 17242 | #include <sys/types.h> |
| 17243 | #ifdef HAVE_SYS_SOCKET_H |
| 17244 | # include <sys/socket.h> |
| 17245 | #endif |
| 17246 | #include <asm/types.h> |
| 17247 | #include <linux/ipx.h> |
| 17248 | int |
| 17249 | main () |
| 17250 | { |
| 17251 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 17252 | ; |
| 17253 | return 0; |
| 17254 | } |
| 17255 | _ACEOF |
| 17256 | rm -f conftest.$ac_objext |
| 17257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17258 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17259 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17261 | rm -f conftest.er1 |
| 17262 | cat conftest.err >&5 |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17264 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17265 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17267 | (eval $ac_try) 2>&5 |
| 17268 | ac_status=$? |
| 17269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17270 | (exit $ac_status); }; } && |
| 17271 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17273 | (eval $ac_try) 2>&5 |
| 17274 | ac_status=$? |
| 17275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17276 | (exit $ac_status); }; }; then |
| 17277 | ac_cv_c_ipx_linux="yes" |
| 17278 | else |
| 17279 | echo "$as_me: failed program was:" >&5 |
| 17280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17281 | |
| 17282 | ac_cv_c_ipx_linux="no" |
| 17283 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 17285 | |
| 17286 | fi |
| 17287 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5 |
| 17288 | echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6 |
| 17289 | if test "$ac_cv_c_ipx_linux" = "yes" |
| 17290 | then |
| 17291 | |
| 17292 | cat >>confdefs.h <<\_ACEOF |
| 17293 | #define HAVE_IPX_LINUX 1 |
| 17294 | _ACEOF |
| 17295 | |
| 17296 | fi |
| 17297 | fi |
| 17298 | |
| 17299 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17300 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17301 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 17302 | if test "${ac_cv_c_const+set}" = set; then |
| 17303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17304 | else |
| 17305 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17306 | /* confdefs.h. */ |
| 17307 | _ACEOF |
| 17308 | cat confdefs.h >>conftest.$ac_ext |
| 17309 | cat >>conftest.$ac_ext <<_ACEOF |
| 17310 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17311 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17312 | int |
| 17313 | main () |
| 17314 | { |
| 17315 | /* FIXME: Include the comments suggested by Paul. */ |
| 17316 | #ifndef __cplusplus |
| 17317 | /* Ultrix mips cc rejects this. */ |
| 17318 | typedef int charset[2]; |
| 17319 | const charset x; |
| 17320 | /* SunOS 4.1.1 cc rejects this. */ |
| 17321 | char const *const *ccp; |
| 17322 | char **p; |
| 17323 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 17324 | struct point {int x, y;}; |
| 17325 | static struct point const zero = {0,0}; |
| 17326 | /* AIX XL C 1.02.0.0 rejects this. |
| 17327 | It does not let you subtract one const X* pointer from another in |
| 17328 | an arm of an if-expression whose if-part is not a constant |
| 17329 | expression */ |
| 17330 | const char *g = "string"; |
| 17331 | ccp = &g + (g ? g-g : 0); |
| 17332 | /* HPUX 7.0 cc rejects these. */ |
| 17333 | ++ccp; |
| 17334 | p = (char**) ccp; |
| 17335 | ccp = (char const *const *) p; |
| 17336 | { /* SCO 3.2v4 cc rejects this. */ |
| 17337 | char *t; |
| 17338 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17339 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17340 | *t++ = 0; |
| 17341 | } |
| 17342 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 17343 | int x[] = {25, 17}; |
| 17344 | const int *foo = &x[0]; |
| 17345 | ++foo; |
| 17346 | } |
| 17347 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 17348 | typedef const int *iptr; |
| 17349 | iptr p = 0; |
| 17350 | ++p; |
| 17351 | } |
| 17352 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 17353 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 17354 | struct s { int j; const int *ap[3]; }; |
| 17355 | struct s *b; b->j = 5; |
| 17356 | } |
| 17357 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 17358 | const int foo = 10; |
| 17359 | } |
| 17360 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17361 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17362 | ; |
| 17363 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17364 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17365 | _ACEOF |
| 17366 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17368 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17369 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17370 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17371 | rm -f conftest.er1 |
| 17372 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17374 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17375 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17377 | (eval $ac_try) 2>&5 |
| 17378 | ac_status=$? |
| 17379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17380 | (exit $ac_status); }; } && |
| 17381 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17383 | (eval $ac_try) 2>&5 |
| 17384 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17386 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17387 | ac_cv_c_const=yes |
| 17388 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17389 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17391 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17392 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17393 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17395 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17396 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17397 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17398 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17399 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17400 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17401 | #define const |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17402 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17403 | |
| 17404 | fi |
| 17405 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17406 | echo "$as_me:$LINENO: checking for inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17407 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 17408 | if test "${ac_cv_c_inline+set}" = set; then |
| 17409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17410 | else |
| 17411 | ac_cv_c_inline=no |
| 17412 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17413 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17414 | /* confdefs.h. */ |
| 17415 | _ACEOF |
| 17416 | cat confdefs.h >>conftest.$ac_ext |
| 17417 | cat >>conftest.$ac_ext <<_ACEOF |
| 17418 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17419 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17420 | typedef int foo_t; |
| 17421 | static $ac_kw foo_t static_foo () {return 0; } |
| 17422 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17423 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17424 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17425 | _ACEOF |
| 17426 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17428 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17429 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17431 | rm -f conftest.er1 |
| 17432 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17434 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17437 | (eval $ac_try) 2>&5 |
| 17438 | ac_status=$? |
| 17439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17440 | (exit $ac_status); }; } && |
| 17441 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17443 | (eval $ac_try) 2>&5 |
| 17444 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17446 | (exit $ac_status); }; }; then |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17447 | ac_cv_c_inline=$ac_kw; break |
| 17448 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17449 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17451 | |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17452 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17454 | done |
| 17455 | |
| 17456 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17457 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17458 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17459 | |
| 17460 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17461 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17462 | inline | yes) ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17463 | *) |
| 17464 | case $ac_cv_c_inline in |
| 17465 | no) ac_val=;; |
| 17466 | *) ac_val=$ac_cv_c_inline;; |
| 17467 | esac |
| 17468 | cat >>confdefs.h <<_ACEOF |
| 17469 | #ifndef __cplusplus |
| 17470 | #define inline $ac_val |
| 17471 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17472 | _ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17473 | ;; |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17474 | esac |
| 17475 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17476 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17477 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 17478 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 17479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17480 | else |
| 17481 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17482 | /* confdefs.h. */ |
| 17483 | _ACEOF |
| 17484 | cat confdefs.h >>conftest.$ac_ext |
| 17485 | cat >>conftest.$ac_ext <<_ACEOF |
| 17486 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17487 | $ac_includes_default |
| 17488 | int |
| 17489 | main () |
| 17490 | { |
| 17491 | if ((mode_t *) 0) |
| 17492 | return 0; |
| 17493 | if (sizeof (mode_t)) |
| 17494 | return 0; |
| 17495 | ; |
| 17496 | return 0; |
| 17497 | } |
| 17498 | _ACEOF |
| 17499 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17501 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17502 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17504 | rm -f conftest.er1 |
| 17505 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17507 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17510 | (eval $ac_try) 2>&5 |
| 17511 | ac_status=$? |
| 17512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17513 | (exit $ac_status); }; } && |
| 17514 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17516 | (eval $ac_try) 2>&5 |
| 17517 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17519 | (exit $ac_status); }; }; then |
| 17520 | ac_cv_type_mode_t=yes |
| 17521 | else |
| 17522 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17524 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17525 | ac_cv_type_mode_t=no |
| 17526 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17528 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17529 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17530 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 17531 | if test $ac_cv_type_mode_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17532 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17533 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17534 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17535 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17536 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17537 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17538 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17539 | echo "$as_me:$LINENO: checking for off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17540 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 17541 | if test "${ac_cv_type_off_t+set}" = set; then |
| 17542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17543 | else |
| 17544 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17545 | /* confdefs.h. */ |
| 17546 | _ACEOF |
| 17547 | cat confdefs.h >>conftest.$ac_ext |
| 17548 | cat >>conftest.$ac_ext <<_ACEOF |
| 17549 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17550 | $ac_includes_default |
| 17551 | int |
| 17552 | main () |
| 17553 | { |
| 17554 | if ((off_t *) 0) |
| 17555 | return 0; |
| 17556 | if (sizeof (off_t)) |
| 17557 | return 0; |
| 17558 | ; |
| 17559 | return 0; |
| 17560 | } |
| 17561 | _ACEOF |
| 17562 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17564 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17565 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17567 | rm -f conftest.er1 |
| 17568 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17570 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17571 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17573 | (eval $ac_try) 2>&5 |
| 17574 | ac_status=$? |
| 17575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17576 | (exit $ac_status); }; } && |
| 17577 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17579 | (eval $ac_try) 2>&5 |
| 17580 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17582 | (exit $ac_status); }; }; then |
| 17583 | ac_cv_type_off_t=yes |
| 17584 | else |
| 17585 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17587 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17588 | ac_cv_type_off_t=no |
| 17589 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17591 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17592 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17593 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 17594 | if test $ac_cv_type_off_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17595 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17596 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17597 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17598 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17599 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17600 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17601 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17602 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17603 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 17604 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 17605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17606 | else |
| 17607 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17608 | /* confdefs.h. */ |
| 17609 | _ACEOF |
| 17610 | cat confdefs.h >>conftest.$ac_ext |
| 17611 | cat >>conftest.$ac_ext <<_ACEOF |
| 17612 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17613 | $ac_includes_default |
| 17614 | int |
| 17615 | main () |
| 17616 | { |
| 17617 | if ((pid_t *) 0) |
| 17618 | return 0; |
| 17619 | if (sizeof (pid_t)) |
| 17620 | return 0; |
| 17621 | ; |
| 17622 | return 0; |
| 17623 | } |
| 17624 | _ACEOF |
| 17625 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17627 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17628 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17630 | rm -f conftest.er1 |
| 17631 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17633 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17636 | (eval $ac_try) 2>&5 |
| 17637 | ac_status=$? |
| 17638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17639 | (exit $ac_status); }; } && |
| 17640 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17642 | (eval $ac_try) 2>&5 |
| 17643 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17645 | (exit $ac_status); }; }; then |
| 17646 | ac_cv_type_pid_t=yes |
| 17647 | else |
| 17648 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17650 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17651 | ac_cv_type_pid_t=no |
| 17652 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17654 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17655 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17656 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 17657 | if test $ac_cv_type_pid_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17658 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17659 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17660 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17661 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17662 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17663 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17664 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17665 | echo "$as_me:$LINENO: checking for size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17666 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 17667 | if test "${ac_cv_type_size_t+set}" = set; then |
| 17668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17669 | else |
| 17670 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17671 | /* confdefs.h. */ |
| 17672 | _ACEOF |
| 17673 | cat confdefs.h >>conftest.$ac_ext |
| 17674 | cat >>conftest.$ac_ext <<_ACEOF |
| 17675 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17676 | $ac_includes_default |
| 17677 | int |
| 17678 | main () |
| 17679 | { |
| 17680 | if ((size_t *) 0) |
| 17681 | return 0; |
| 17682 | if (sizeof (size_t)) |
| 17683 | return 0; |
| 17684 | ; |
| 17685 | return 0; |
| 17686 | } |
| 17687 | _ACEOF |
| 17688 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17690 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17691 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17693 | rm -f conftest.er1 |
| 17694 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17696 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17699 | (eval $ac_try) 2>&5 |
| 17700 | ac_status=$? |
| 17701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17702 | (exit $ac_status); }; } && |
| 17703 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17705 | (eval $ac_try) 2>&5 |
| 17706 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17708 | (exit $ac_status); }; }; then |
| 17709 | ac_cv_type_size_t=yes |
| 17710 | else |
| 17711 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17713 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17714 | ac_cv_type_size_t=no |
| 17715 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17717 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17718 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17719 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 17720 | if test $ac_cv_type_size_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17721 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17722 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17723 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17724 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17725 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17726 | |
| 17727 | fi |
| 17728 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 17729 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
| 17730 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 17731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17732 | else |
| 17733 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17734 | /* confdefs.h. */ |
| 17735 | _ACEOF |
| 17736 | cat confdefs.h >>conftest.$ac_ext |
| 17737 | cat >>conftest.$ac_ext <<_ACEOF |
| 17738 | /* end confdefs.h. */ |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17739 | $ac_includes_default |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17740 | int |
| 17741 | main () |
| 17742 | { |
| 17743 | if ((ssize_t *) 0) |
| 17744 | return 0; |
| 17745 | if (sizeof (ssize_t)) |
| 17746 | return 0; |
| 17747 | ; |
| 17748 | return 0; |
| 17749 | } |
| 17750 | _ACEOF |
| 17751 | rm -f conftest.$ac_objext |
| 17752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17753 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17754 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17756 | rm -f conftest.er1 |
| 17757 | cat conftest.err >&5 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17759 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17762 | (eval $ac_try) 2>&5 |
| 17763 | ac_status=$? |
| 17764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17765 | (exit $ac_status); }; } && |
| 17766 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17768 | (eval $ac_try) 2>&5 |
| 17769 | ac_status=$? |
| 17770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17771 | (exit $ac_status); }; }; then |
| 17772 | ac_cv_type_ssize_t=yes |
| 17773 | else |
| 17774 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17776 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17777 | ac_cv_type_ssize_t=no |
| 17778 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17780 | fi |
| 17781 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 17782 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
| 17783 | if test $ac_cv_type_ssize_t = yes; then |
| 17784 | |
| 17785 | cat >>confdefs.h <<_ACEOF |
| 17786 | #define HAVE_SSIZE_T 1 |
| 17787 | _ACEOF |
| 17788 | |
| 17789 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17790 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17791 | echo "$as_me:$LINENO: checking for long long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17792 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 17793 | if test "${ac_cv_type_long_long+set}" = set; then |
| 17794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17795 | else |
| 17796 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17797 | /* confdefs.h. */ |
| 17798 | _ACEOF |
| 17799 | cat confdefs.h >>conftest.$ac_ext |
| 17800 | cat >>conftest.$ac_ext <<_ACEOF |
| 17801 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17802 | $ac_includes_default |
| 17803 | int |
| 17804 | main () |
| 17805 | { |
| 17806 | if ((long long *) 0) |
| 17807 | return 0; |
| 17808 | if (sizeof (long long)) |
| 17809 | return 0; |
| 17810 | ; |
| 17811 | return 0; |
| 17812 | } |
| 17813 | _ACEOF |
| 17814 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17816 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17817 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17819 | rm -f conftest.er1 |
| 17820 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17822 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17825 | (eval $ac_try) 2>&5 |
| 17826 | ac_status=$? |
| 17827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17828 | (exit $ac_status); }; } && |
| 17829 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17831 | (eval $ac_try) 2>&5 |
| 17832 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17834 | (exit $ac_status); }; }; then |
| 17835 | ac_cv_type_long_long=yes |
| 17836 | else |
| 17837 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17839 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17840 | ac_cv_type_long_long=no |
| 17841 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17843 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17844 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17845 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17846 | if test $ac_cv_type_long_long = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17847 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17848 | cat >>confdefs.h <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17849 | #define HAVE_LONG_LONG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17850 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 17851 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17852 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17853 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17854 | echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 |
| 17855 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6 |
| 17856 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then |
| 17857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17858 | else |
| 17859 | cat >conftest.$ac_ext <<_ACEOF |
| 17860 | /* confdefs.h. */ |
| 17861 | _ACEOF |
| 17862 | cat confdefs.h >>conftest.$ac_ext |
| 17863 | cat >>conftest.$ac_ext <<_ACEOF |
| 17864 | /* end confdefs.h. */ |
| 17865 | $ac_includes_default |
| 17866 | int |
| 17867 | main () |
| 17868 | { |
| 17869 | if ((fsblkcnt_t *) 0) |
| 17870 | return 0; |
| 17871 | if (sizeof (fsblkcnt_t)) |
| 17872 | return 0; |
| 17873 | ; |
| 17874 | return 0; |
| 17875 | } |
| 17876 | _ACEOF |
| 17877 | rm -f conftest.$ac_objext |
| 17878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17879 | (eval $ac_compile) 2>conftest.er1 |
| 17880 | ac_status=$? |
| 17881 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17882 | rm -f conftest.er1 |
| 17883 | cat conftest.err >&5 |
| 17884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17885 | (exit $ac_status); } && |
| 17886 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17888 | (eval $ac_try) 2>&5 |
| 17889 | ac_status=$? |
| 17890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17891 | (exit $ac_status); }; } && |
| 17892 | { ac_try='test -s conftest.$ac_objext' |
| 17893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17894 | (eval $ac_try) 2>&5 |
| 17895 | ac_status=$? |
| 17896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17897 | (exit $ac_status); }; }; then |
| 17898 | ac_cv_type_fsblkcnt_t=yes |
| 17899 | else |
| 17900 | echo "$as_me: failed program was:" >&5 |
| 17901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17902 | |
| 17903 | ac_cv_type_fsblkcnt_t=no |
| 17904 | fi |
| 17905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17906 | fi |
| 17907 | echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 |
| 17908 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6 |
| 17909 | if test $ac_cv_type_fsblkcnt_t = yes; then |
| 17910 | |
| 17911 | cat >>confdefs.h <<_ACEOF |
| 17912 | #define HAVE_FSBLKCNT_T 1 |
| 17913 | _ACEOF |
| 17914 | |
| 17915 | |
| 17916 | fi |
| 17917 | echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 |
| 17918 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6 |
| 17919 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then |
| 17920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17921 | else |
| 17922 | cat >conftest.$ac_ext <<_ACEOF |
| 17923 | /* confdefs.h. */ |
| 17924 | _ACEOF |
| 17925 | cat confdefs.h >>conftest.$ac_ext |
| 17926 | cat >>conftest.$ac_ext <<_ACEOF |
| 17927 | /* end confdefs.h. */ |
| 17928 | $ac_includes_default |
| 17929 | int |
| 17930 | main () |
| 17931 | { |
| 17932 | if ((fsfilcnt_t *) 0) |
| 17933 | return 0; |
| 17934 | if (sizeof (fsfilcnt_t)) |
| 17935 | return 0; |
| 17936 | ; |
| 17937 | return 0; |
| 17938 | } |
| 17939 | _ACEOF |
| 17940 | rm -f conftest.$ac_objext |
| 17941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17942 | (eval $ac_compile) 2>conftest.er1 |
| 17943 | ac_status=$? |
| 17944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17945 | rm -f conftest.er1 |
| 17946 | cat conftest.err >&5 |
| 17947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17948 | (exit $ac_status); } && |
| 17949 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17951 | (eval $ac_try) 2>&5 |
| 17952 | ac_status=$? |
| 17953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17954 | (exit $ac_status); }; } && |
| 17955 | { ac_try='test -s conftest.$ac_objext' |
| 17956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17957 | (eval $ac_try) 2>&5 |
| 17958 | ac_status=$? |
| 17959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17960 | (exit $ac_status); }; }; then |
| 17961 | ac_cv_type_fsfilcnt_t=yes |
| 17962 | else |
| 17963 | echo "$as_me: failed program was:" >&5 |
| 17964 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17965 | |
| 17966 | ac_cv_type_fsfilcnt_t=no |
| 17967 | fi |
| 17968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17969 | fi |
| 17970 | echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 |
| 17971 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6 |
| 17972 | if test $ac_cv_type_fsfilcnt_t = yes; then |
| 17973 | |
| 17974 | cat >>confdefs.h <<_ACEOF |
| 17975 | #define HAVE_FSFILCNT_T 1 |
| 17976 | _ACEOF |
| 17977 | |
| 17978 | |
| 17979 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17980 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17981 | |
| 17982 | 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] | 17983 | echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6 |
| 17984 | if test "${wine_cv_linux_input_h+set}" = set; then |
| 17985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17986 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17987 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17988 | /* confdefs.h. */ |
| 17989 | _ACEOF |
| 17990 | cat confdefs.h >>conftest.$ac_ext |
| 17991 | cat >>conftest.$ac_ext <<_ACEOF |
| 17992 | /* end confdefs.h. */ |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17993 | |
| 17994 | #include <linux/input.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17995 | |
| 17996 | int |
| 17997 | main () |
| 17998 | { |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17999 | |
| 18000 | int foo = EVIOCGBIT(EV_ABS,42); |
| 18001 | int bar = BTN_PINKIE; |
| 18002 | int fortytwo = 42; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18003 | |
| 18004 | ; |
| 18005 | return 0; |
| 18006 | } |
| 18007 | _ACEOF |
| 18008 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18010 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18011 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18013 | rm -f conftest.er1 |
| 18014 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18016 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18017 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18019 | (eval $ac_try) 2>&5 |
| 18020 | ac_status=$? |
| 18021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18022 | (exit $ac_status); }; } && |
| 18023 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18025 | (eval $ac_try) 2>&5 |
| 18026 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18028 | (exit $ac_status); }; }; then |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 18029 | wine_cv_linux_input_h=yes |
| 18030 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18031 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18033 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18034 | wine_cv_linux_input_h=no |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 18035 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 18037 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18038 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18039 | echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18040 | echo "${ECHO_T}$wine_cv_linux_input_h" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 18041 | if test "$wine_cv_linux_input_h" = "yes" |
| 18042 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18043 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18044 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 18045 | #define HAVE_CORRECT_LINUXINPUT_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18046 | _ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 18047 | |
| 18048 | fi |
| 18049 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18050 | |
| 18051 | 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] | 18052 | echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6 |
| 18053 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
| 18054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18055 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18056 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18057 | /* confdefs.h. */ |
| 18058 | _ACEOF |
| 18059 | cat confdefs.h >>conftest.$ac_ext |
| 18060 | cat >>conftest.$ac_ext <<_ACEOF |
| 18061 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18062 | |
| 18063 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18064 | |
| 18065 | int |
| 18066 | main () |
| 18067 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18068 | |
| 18069 | char *name=NULL; |
| 18070 | struct hostent he; |
| 18071 | struct hostent *result; |
| 18072 | char *buf=NULL; |
| 18073 | int bufsize=0; |
| 18074 | int res,errnr; |
| 18075 | char *addr=NULL; |
| 18076 | int addrlen=0; |
| 18077 | int addrtype=0; |
| 18078 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 18079 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18080 | |
| 18081 | ; |
| 18082 | return 0; |
| 18083 | } |
| 18084 | _ACEOF |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 18085 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18087 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18088 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18089 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18090 | rm -f conftest.er1 |
| 18091 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18093 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18094 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18096 | (eval $ac_try) 2>&5 |
| 18097 | ac_status=$? |
| 18098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18099 | (exit $ac_status); }; } && |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 18100 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18102 | (eval $ac_try) 2>&5 |
| 18103 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18105 | (exit $ac_status); }; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18106 | wine_cv_linux_gethostbyname_r_6=yes |
| 18107 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18108 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18110 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18111 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18112 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18113 | fi |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 18114 | rm -f conftest.err conftest.$ac_objext \ |
| 18115 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18116 | |
| 18117 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18118 | echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18119 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18120 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 18121 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18122 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18123 | cat >>confdefs.h <<\_ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18124 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18125 | _ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 18126 | |
| 18127 | fi |
| 18128 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18129 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18130 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18131 | 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] | 18132 | echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6 |
| 18133 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
| 18134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18135 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18136 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18137 | /* confdefs.h. */ |
| 18138 | _ACEOF |
| 18139 | cat confdefs.h >>conftest.$ac_ext |
| 18140 | cat >>conftest.$ac_ext <<_ACEOF |
| 18141 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18142 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18143 | #include <sys/ioctl.h> |
| 18144 | #include <linux/joystick.h> |
| 18145 | |
| 18146 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 18147 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 18148 | #error "no 2.2 header" |
| 18149 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18150 | |
| 18151 | int |
| 18152 | main () |
| 18153 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18154 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18155 | ; |
| 18156 | return 0; |
| 18157 | } |
| 18158 | _ACEOF |
| 18159 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18161 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18162 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18163 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18164 | rm -f conftest.er1 |
| 18165 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18167 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18168 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18170 | (eval $ac_try) 2>&5 |
| 18171 | ac_status=$? |
| 18172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18173 | (exit $ac_status); }; } && |
| 18174 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18176 | (eval $ac_try) 2>&5 |
| 18177 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18179 | (exit $ac_status); }; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18180 | wine_cv_linux_joystick_22_api=yes |
| 18181 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18182 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18184 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18185 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18186 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18188 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18189 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18190 | echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18191 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6 |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 18192 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18193 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18194 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18195 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18196 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18197 | _ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18198 | |
| 18199 | fi |
| 18200 | fi |
| 18201 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18202 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18203 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
| 18204 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18205 | echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18206 | echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6 |
| 18207 | if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then |
| 18208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18209 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18210 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18211 | /* confdefs.h. */ |
| 18212 | _ACEOF |
| 18213 | cat confdefs.h >>conftest.$ac_ext |
| 18214 | cat >>conftest.$ac_ext <<_ACEOF |
| 18215 | /* end confdefs.h. */ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 18216 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18217 | #include <sys/types.h> |
| 18218 | #ifdef HAVE_SYS_PARAM_H |
| 18219 | # include <sys/param.h> |
| 18220 | #endif |
| 18221 | #include <sys/vfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18222 | |
| 18223 | int |
| 18224 | main () |
| 18225 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18226 | |
| 18227 | struct statfs stfs; |
| 18228 | |
| 18229 | memset(&stfs,0,sizeof(stfs)); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18230 | |
| 18231 | ; |
| 18232 | return 0; |
| 18233 | } |
| 18234 | _ACEOF |
| 18235 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18237 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18238 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18239 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18240 | rm -f conftest.er1 |
| 18241 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18243 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18244 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18246 | (eval $ac_try) 2>&5 |
| 18247 | ac_status=$? |
| 18248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18249 | (exit $ac_status); }; } && |
| 18250 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18252 | (eval $ac_try) 2>&5 |
| 18253 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18255 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18256 | wine_cv_sys_vfs_has_statfs=yes |
| 18257 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18258 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18260 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18261 | wine_cv_sys_vfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18262 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18263 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18265 | |
| 18266 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18267 | echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18268 | echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18269 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
| 18270 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18271 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18272 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18273 | #define STATFS_DEFINED_BY_SYS_VFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18274 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18275 | |
| 18276 | fi |
| 18277 | fi |
| 18278 | |
| 18279 | if test "$ac_cv_header_sys_statfs_h" = "yes" |
| 18280 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18281 | echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18282 | echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6 |
| 18283 | if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then |
| 18284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18285 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18286 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18287 | /* confdefs.h. */ |
| 18288 | _ACEOF |
| 18289 | cat confdefs.h >>conftest.$ac_ext |
| 18290 | cat >>conftest.$ac_ext <<_ACEOF |
| 18291 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18292 | |
| 18293 | #include <sys/types.h> |
| 18294 | #ifdef HAVE_SYS_PARAM_H |
| 18295 | # include <sys/param.h> |
| 18296 | #endif |
| 18297 | #include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18298 | |
| 18299 | int |
| 18300 | main () |
| 18301 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18302 | |
| 18303 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18304 | |
| 18305 | ; |
| 18306 | return 0; |
| 18307 | } |
| 18308 | _ACEOF |
| 18309 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18311 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18312 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18314 | rm -f conftest.er1 |
| 18315 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18317 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18318 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18320 | (eval $ac_try) 2>&5 |
| 18321 | ac_status=$? |
| 18322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18323 | (exit $ac_status); }; } && |
| 18324 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18326 | (eval $ac_try) 2>&5 |
| 18327 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18329 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18330 | wine_cv_sys_statfs_has_statfs=yes |
| 18331 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18332 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18334 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18335 | wine_cv_sys_statfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18336 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18337 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18339 | |
| 18340 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18341 | echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18342 | echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18343 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
| 18344 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18345 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18346 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18347 | #define STATFS_DEFINED_BY_SYS_STATFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18348 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18349 | |
| 18350 | fi |
| 18351 | fi |
| 18352 | |
| 18353 | if test "$ac_cv_header_sys_mount_h" = "yes" |
| 18354 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18355 | echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18356 | echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6 |
| 18357 | if test "${wine_cv_sys_mount_has_statfs+set}" = set; then |
| 18358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18359 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18360 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18361 | /* confdefs.h. */ |
| 18362 | _ACEOF |
| 18363 | cat confdefs.h >>conftest.$ac_ext |
| 18364 | cat >>conftest.$ac_ext <<_ACEOF |
| 18365 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18366 | |
| 18367 | #include <sys/types.h> |
| 18368 | #ifdef HAVE_SYS_PARAM_H |
| 18369 | # include <sys/param.h> |
| 18370 | #endif |
| 18371 | #include <sys/mount.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18372 | |
| 18373 | int |
| 18374 | main () |
| 18375 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18376 | |
| 18377 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18378 | |
| 18379 | ; |
| 18380 | return 0; |
| 18381 | } |
| 18382 | _ACEOF |
| 18383 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18385 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18386 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18388 | rm -f conftest.er1 |
| 18389 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18391 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18392 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18394 | (eval $ac_try) 2>&5 |
| 18395 | ac_status=$? |
| 18396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18397 | (exit $ac_status); }; } && |
| 18398 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18400 | (eval $ac_try) 2>&5 |
| 18401 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18403 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18404 | wine_cv_sys_mount_has_statfs=yes |
| 18405 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18406 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18408 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18409 | wine_cv_sys_mount_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18410 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18411 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18413 | |
| 18414 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18415 | echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18416 | echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18417 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
| 18418 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18419 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18420 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18421 | #define STATFS_DEFINED_BY_SYS_MOUNT 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18422 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18423 | |
| 18424 | fi |
| 18425 | fi |
| 18426 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18427 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18428 | echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5 |
| 18429 | echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6 |
| 18430 | if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18432 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18433 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18434 | /* confdefs.h. */ |
| 18435 | _ACEOF |
| 18436 | cat confdefs.h >>conftest.$ac_ext |
| 18437 | cat >>conftest.$ac_ext <<_ACEOF |
| 18438 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18439 | #include <sys/types.h> |
| 18440 | #ifdef HAVE_SYS_PARAM_H |
| 18441 | # include <sys/param.h> |
| 18442 | #endif |
| 18443 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18444 | # include <sys/mount.h> |
| 18445 | #else |
| 18446 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18447 | # include <sys/vfs.h> |
| 18448 | # else |
| 18449 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18450 | # include <sys/statfs.h> |
| 18451 | # endif |
| 18452 | # endif |
| 18453 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18454 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18455 | int |
| 18456 | main () |
| 18457 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18458 | static struct statfs ac_aggr; |
| 18459 | if (ac_aggr.f_bfree) |
| 18460 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18461 | ; |
| 18462 | return 0; |
| 18463 | } |
| 18464 | _ACEOF |
| 18465 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18467 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18468 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18470 | rm -f conftest.er1 |
| 18471 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18473 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18476 | (eval $ac_try) 2>&5 |
| 18477 | ac_status=$? |
| 18478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18479 | (exit $ac_status); }; } && |
| 18480 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18482 | (eval $ac_try) 2>&5 |
| 18483 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18485 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18486 | ac_cv_member_struct_statfs_f_bfree=yes |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18487 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18488 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18490 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18491 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18492 | /* confdefs.h. */ |
| 18493 | _ACEOF |
| 18494 | cat confdefs.h >>conftest.$ac_ext |
| 18495 | cat >>conftest.$ac_ext <<_ACEOF |
| 18496 | /* end confdefs.h. */ |
| 18497 | #include <sys/types.h> |
| 18498 | #ifdef HAVE_SYS_PARAM_H |
| 18499 | # include <sys/param.h> |
| 18500 | #endif |
| 18501 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18502 | # include <sys/mount.h> |
| 18503 | #else |
| 18504 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18505 | # include <sys/vfs.h> |
| 18506 | # else |
| 18507 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18508 | # include <sys/statfs.h> |
| 18509 | # endif |
| 18510 | # endif |
| 18511 | #endif |
| 18512 | |
| 18513 | int |
| 18514 | main () |
| 18515 | { |
| 18516 | static struct statfs ac_aggr; |
| 18517 | if (sizeof ac_aggr.f_bfree) |
| 18518 | return 0; |
| 18519 | ; |
| 18520 | return 0; |
| 18521 | } |
| 18522 | _ACEOF |
| 18523 | rm -f conftest.$ac_objext |
| 18524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18525 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18526 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18528 | rm -f conftest.er1 |
| 18529 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18531 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18534 | (eval $ac_try) 2>&5 |
| 18535 | ac_status=$? |
| 18536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18537 | (exit $ac_status); }; } && |
| 18538 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18540 | (eval $ac_try) 2>&5 |
| 18541 | ac_status=$? |
| 18542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18543 | (exit $ac_status); }; }; then |
| 18544 | ac_cv_member_struct_statfs_f_bfree=yes |
| 18545 | else |
| 18546 | echo "$as_me: failed program was:" >&5 |
| 18547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18548 | |
| 18549 | ac_cv_member_struct_statfs_f_bfree=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18550 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18551 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18552 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18554 | fi |
| 18555 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5 |
| 18556 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6 |
| 18557 | if test $ac_cv_member_struct_statfs_f_bfree = yes; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18558 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18559 | cat >>confdefs.h <<_ACEOF |
| 18560 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18561 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18562 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18563 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18564 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18565 | echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5 |
| 18566 | echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6 |
| 18567 | if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 18569 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18570 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18571 | /* confdefs.h. */ |
| 18572 | _ACEOF |
| 18573 | cat confdefs.h >>conftest.$ac_ext |
| 18574 | cat >>conftest.$ac_ext <<_ACEOF |
| 18575 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18576 | #include <sys/types.h> |
| 18577 | #ifdef HAVE_SYS_PARAM_H |
| 18578 | # include <sys/param.h> |
| 18579 | #endif |
| 18580 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18581 | # include <sys/mount.h> |
| 18582 | #else |
| 18583 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18584 | # include <sys/vfs.h> |
| 18585 | # else |
| 18586 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18587 | # include <sys/statfs.h> |
| 18588 | # endif |
| 18589 | # endif |
| 18590 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18591 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18592 | int |
| 18593 | main () |
| 18594 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18595 | static struct statfs ac_aggr; |
| 18596 | if (ac_aggr.f_bavail) |
| 18597 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18598 | ; |
| 18599 | return 0; |
| 18600 | } |
| 18601 | _ACEOF |
| 18602 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18604 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18605 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18607 | rm -f conftest.er1 |
| 18608 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18610 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18611 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18613 | (eval $ac_try) 2>&5 |
| 18614 | ac_status=$? |
| 18615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18616 | (exit $ac_status); }; } && |
| 18617 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18619 | (eval $ac_try) 2>&5 |
| 18620 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18622 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18623 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 18624 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18625 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18627 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18628 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18629 | /* confdefs.h. */ |
| 18630 | _ACEOF |
| 18631 | cat confdefs.h >>conftest.$ac_ext |
| 18632 | cat >>conftest.$ac_ext <<_ACEOF |
| 18633 | /* end confdefs.h. */ |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18634 | #include <sys/types.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18635 | #ifdef HAVE_SYS_PARAM_H |
| 18636 | # include <sys/param.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 18637 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18638 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18639 | # include <sys/mount.h> |
| 18640 | #else |
| 18641 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18642 | # include <sys/vfs.h> |
| 18643 | # else |
| 18644 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18645 | # include <sys/statfs.h> |
| 18646 | # endif |
| 18647 | # endif |
| 18648 | #endif |
| 18649 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18650 | int |
| 18651 | main () |
| 18652 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18653 | static struct statfs ac_aggr; |
| 18654 | if (sizeof ac_aggr.f_bavail) |
| 18655 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18656 | ; |
| 18657 | return 0; |
| 18658 | } |
| 18659 | _ACEOF |
| 18660 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18662 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18663 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18665 | rm -f conftest.er1 |
| 18666 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18668 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18671 | (eval $ac_try) 2>&5 |
| 18672 | ac_status=$? |
| 18673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18674 | (exit $ac_status); }; } && |
| 18675 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18677 | (eval $ac_try) 2>&5 |
| 18678 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18680 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18681 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18682 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18683 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18685 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18686 | ac_cv_member_struct_statfs_f_bavail=no |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18687 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18689 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18691 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18692 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5 |
| 18693 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6 |
| 18694 | if test $ac_cv_member_struct_statfs_f_bavail = yes; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18695 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18696 | cat >>confdefs.h <<_ACEOF |
| 18697 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18698 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18699 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18700 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18701 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18702 | echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5 |
| 18703 | echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6 |
| 18704 | if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then |
| 18705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18706 | else |
| 18707 | cat >conftest.$ac_ext <<_ACEOF |
| 18708 | /* confdefs.h. */ |
| 18709 | _ACEOF |
| 18710 | cat confdefs.h >>conftest.$ac_ext |
| 18711 | cat >>conftest.$ac_ext <<_ACEOF |
| 18712 | /* end confdefs.h. */ |
| 18713 | #include <sys/types.h> |
| 18714 | #ifdef HAVE_SYS_PARAM_H |
| 18715 | # include <sys/param.h> |
| 18716 | #endif |
| 18717 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18718 | # include <sys/mount.h> |
| 18719 | #else |
| 18720 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18721 | # include <sys/vfs.h> |
| 18722 | # else |
| 18723 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18724 | # include <sys/statfs.h> |
| 18725 | # endif |
| 18726 | # endif |
| 18727 | #endif |
| 18728 | |
| 18729 | int |
| 18730 | main () |
| 18731 | { |
| 18732 | static struct statfs ac_aggr; |
| 18733 | if (ac_aggr.f_frsize) |
| 18734 | return 0; |
| 18735 | ; |
| 18736 | return 0; |
| 18737 | } |
| 18738 | _ACEOF |
| 18739 | rm -f conftest.$ac_objext |
| 18740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18741 | (eval $ac_compile) 2>conftest.er1 |
| 18742 | ac_status=$? |
| 18743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18744 | rm -f conftest.er1 |
| 18745 | cat conftest.err >&5 |
| 18746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18747 | (exit $ac_status); } && |
| 18748 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18750 | (eval $ac_try) 2>&5 |
| 18751 | ac_status=$? |
| 18752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18753 | (exit $ac_status); }; } && |
| 18754 | { ac_try='test -s conftest.$ac_objext' |
| 18755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18756 | (eval $ac_try) 2>&5 |
| 18757 | ac_status=$? |
| 18758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18759 | (exit $ac_status); }; }; then |
| 18760 | ac_cv_member_struct_statfs_f_frsize=yes |
| 18761 | else |
| 18762 | echo "$as_me: failed program was:" >&5 |
| 18763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18764 | |
| 18765 | cat >conftest.$ac_ext <<_ACEOF |
| 18766 | /* confdefs.h. */ |
| 18767 | _ACEOF |
| 18768 | cat confdefs.h >>conftest.$ac_ext |
| 18769 | cat >>conftest.$ac_ext <<_ACEOF |
| 18770 | /* end confdefs.h. */ |
| 18771 | #include <sys/types.h> |
| 18772 | #ifdef HAVE_SYS_PARAM_H |
| 18773 | # include <sys/param.h> |
| 18774 | #endif |
| 18775 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18776 | # include <sys/mount.h> |
| 18777 | #else |
| 18778 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18779 | # include <sys/vfs.h> |
| 18780 | # else |
| 18781 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18782 | # include <sys/statfs.h> |
| 18783 | # endif |
| 18784 | # endif |
| 18785 | #endif |
| 18786 | |
| 18787 | int |
| 18788 | main () |
| 18789 | { |
| 18790 | static struct statfs ac_aggr; |
| 18791 | if (sizeof ac_aggr.f_frsize) |
| 18792 | return 0; |
| 18793 | ; |
| 18794 | return 0; |
| 18795 | } |
| 18796 | _ACEOF |
| 18797 | rm -f conftest.$ac_objext |
| 18798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18799 | (eval $ac_compile) 2>conftest.er1 |
| 18800 | ac_status=$? |
| 18801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18802 | rm -f conftest.er1 |
| 18803 | cat conftest.err >&5 |
| 18804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18805 | (exit $ac_status); } && |
| 18806 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18808 | (eval $ac_try) 2>&5 |
| 18809 | ac_status=$? |
| 18810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18811 | (exit $ac_status); }; } && |
| 18812 | { ac_try='test -s conftest.$ac_objext' |
| 18813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18814 | (eval $ac_try) 2>&5 |
| 18815 | ac_status=$? |
| 18816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18817 | (exit $ac_status); }; }; then |
| 18818 | ac_cv_member_struct_statfs_f_frsize=yes |
| 18819 | else |
| 18820 | echo "$as_me: failed program was:" >&5 |
| 18821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18822 | |
| 18823 | ac_cv_member_struct_statfs_f_frsize=no |
| 18824 | fi |
| 18825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18826 | fi |
| 18827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18828 | fi |
| 18829 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5 |
| 18830 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6 |
| 18831 | if test $ac_cv_member_struct_statfs_f_frsize = yes; then |
| 18832 | |
| 18833 | cat >>confdefs.h <<_ACEOF |
| 18834 | #define HAVE_STRUCT_STATFS_F_FRSIZE 1 |
| 18835 | _ACEOF |
| 18836 | |
| 18837 | |
| 18838 | fi |
| 18839 | echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5 |
| 18840 | echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6 |
| 18841 | if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then |
| 18842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18843 | else |
| 18844 | cat >conftest.$ac_ext <<_ACEOF |
| 18845 | /* confdefs.h. */ |
| 18846 | _ACEOF |
| 18847 | cat confdefs.h >>conftest.$ac_ext |
| 18848 | cat >>conftest.$ac_ext <<_ACEOF |
| 18849 | /* end confdefs.h. */ |
| 18850 | #include <sys/types.h> |
| 18851 | #ifdef HAVE_SYS_PARAM_H |
| 18852 | # include <sys/param.h> |
| 18853 | #endif |
| 18854 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18855 | # include <sys/mount.h> |
| 18856 | #else |
| 18857 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18858 | # include <sys/vfs.h> |
| 18859 | # else |
| 18860 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18861 | # include <sys/statfs.h> |
| 18862 | # endif |
| 18863 | # endif |
| 18864 | #endif |
| 18865 | |
| 18866 | int |
| 18867 | main () |
| 18868 | { |
| 18869 | static struct statfs ac_aggr; |
| 18870 | if (ac_aggr.f_ffree) |
| 18871 | return 0; |
| 18872 | ; |
| 18873 | return 0; |
| 18874 | } |
| 18875 | _ACEOF |
| 18876 | rm -f conftest.$ac_objext |
| 18877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18878 | (eval $ac_compile) 2>conftest.er1 |
| 18879 | ac_status=$? |
| 18880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18881 | rm -f conftest.er1 |
| 18882 | cat conftest.err >&5 |
| 18883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18884 | (exit $ac_status); } && |
| 18885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18887 | (eval $ac_try) 2>&5 |
| 18888 | ac_status=$? |
| 18889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18890 | (exit $ac_status); }; } && |
| 18891 | { ac_try='test -s conftest.$ac_objext' |
| 18892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18893 | (eval $ac_try) 2>&5 |
| 18894 | ac_status=$? |
| 18895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18896 | (exit $ac_status); }; }; then |
| 18897 | ac_cv_member_struct_statfs_f_ffree=yes |
| 18898 | else |
| 18899 | echo "$as_me: failed program was:" >&5 |
| 18900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18901 | |
| 18902 | cat >conftest.$ac_ext <<_ACEOF |
| 18903 | /* confdefs.h. */ |
| 18904 | _ACEOF |
| 18905 | cat confdefs.h >>conftest.$ac_ext |
| 18906 | cat >>conftest.$ac_ext <<_ACEOF |
| 18907 | /* end confdefs.h. */ |
| 18908 | #include <sys/types.h> |
| 18909 | #ifdef HAVE_SYS_PARAM_H |
| 18910 | # include <sys/param.h> |
| 18911 | #endif |
| 18912 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18913 | # include <sys/mount.h> |
| 18914 | #else |
| 18915 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18916 | # include <sys/vfs.h> |
| 18917 | # else |
| 18918 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18919 | # include <sys/statfs.h> |
| 18920 | # endif |
| 18921 | # endif |
| 18922 | #endif |
| 18923 | |
| 18924 | int |
| 18925 | main () |
| 18926 | { |
| 18927 | static struct statfs ac_aggr; |
| 18928 | if (sizeof ac_aggr.f_ffree) |
| 18929 | return 0; |
| 18930 | ; |
| 18931 | return 0; |
| 18932 | } |
| 18933 | _ACEOF |
| 18934 | rm -f conftest.$ac_objext |
| 18935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18936 | (eval $ac_compile) 2>conftest.er1 |
| 18937 | ac_status=$? |
| 18938 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18939 | rm -f conftest.er1 |
| 18940 | cat conftest.err >&5 |
| 18941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18942 | (exit $ac_status); } && |
| 18943 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18945 | (eval $ac_try) 2>&5 |
| 18946 | ac_status=$? |
| 18947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18948 | (exit $ac_status); }; } && |
| 18949 | { ac_try='test -s conftest.$ac_objext' |
| 18950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18951 | (eval $ac_try) 2>&5 |
| 18952 | ac_status=$? |
| 18953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18954 | (exit $ac_status); }; }; then |
| 18955 | ac_cv_member_struct_statfs_f_ffree=yes |
| 18956 | else |
| 18957 | echo "$as_me: failed program was:" >&5 |
| 18958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18959 | |
| 18960 | ac_cv_member_struct_statfs_f_ffree=no |
| 18961 | fi |
| 18962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18963 | fi |
| 18964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18965 | fi |
| 18966 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5 |
| 18967 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6 |
| 18968 | if test $ac_cv_member_struct_statfs_f_ffree = yes; then |
| 18969 | |
| 18970 | cat >>confdefs.h <<_ACEOF |
| 18971 | #define HAVE_STRUCT_STATFS_F_FFREE 1 |
| 18972 | _ACEOF |
| 18973 | |
| 18974 | |
| 18975 | fi |
| 18976 | echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5 |
| 18977 | echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6 |
| 18978 | if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then |
| 18979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18980 | else |
| 18981 | cat >conftest.$ac_ext <<_ACEOF |
| 18982 | /* confdefs.h. */ |
| 18983 | _ACEOF |
| 18984 | cat confdefs.h >>conftest.$ac_ext |
| 18985 | cat >>conftest.$ac_ext <<_ACEOF |
| 18986 | /* end confdefs.h. */ |
| 18987 | #include <sys/types.h> |
| 18988 | #ifdef HAVE_SYS_PARAM_H |
| 18989 | # include <sys/param.h> |
| 18990 | #endif |
| 18991 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18992 | # include <sys/mount.h> |
| 18993 | #else |
| 18994 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18995 | # include <sys/vfs.h> |
| 18996 | # else |
| 18997 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18998 | # include <sys/statfs.h> |
| 18999 | # endif |
| 19000 | # endif |
| 19001 | #endif |
| 19002 | |
| 19003 | int |
| 19004 | main () |
| 19005 | { |
| 19006 | static struct statfs ac_aggr; |
| 19007 | if (ac_aggr.f_favail) |
| 19008 | return 0; |
| 19009 | ; |
| 19010 | return 0; |
| 19011 | } |
| 19012 | _ACEOF |
| 19013 | rm -f conftest.$ac_objext |
| 19014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19015 | (eval $ac_compile) 2>conftest.er1 |
| 19016 | ac_status=$? |
| 19017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19018 | rm -f conftest.er1 |
| 19019 | cat conftest.err >&5 |
| 19020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19021 | (exit $ac_status); } && |
| 19022 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19024 | (eval $ac_try) 2>&5 |
| 19025 | ac_status=$? |
| 19026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19027 | (exit $ac_status); }; } && |
| 19028 | { ac_try='test -s conftest.$ac_objext' |
| 19029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19030 | (eval $ac_try) 2>&5 |
| 19031 | ac_status=$? |
| 19032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19033 | (exit $ac_status); }; }; then |
| 19034 | ac_cv_member_struct_statfs_f_favail=yes |
| 19035 | else |
| 19036 | echo "$as_me: failed program was:" >&5 |
| 19037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19038 | |
| 19039 | cat >conftest.$ac_ext <<_ACEOF |
| 19040 | /* confdefs.h. */ |
| 19041 | _ACEOF |
| 19042 | cat confdefs.h >>conftest.$ac_ext |
| 19043 | cat >>conftest.$ac_ext <<_ACEOF |
| 19044 | /* end confdefs.h. */ |
| 19045 | #include <sys/types.h> |
| 19046 | #ifdef HAVE_SYS_PARAM_H |
| 19047 | # include <sys/param.h> |
| 19048 | #endif |
| 19049 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 19050 | # include <sys/mount.h> |
| 19051 | #else |
| 19052 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 19053 | # include <sys/vfs.h> |
| 19054 | # else |
| 19055 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 19056 | # include <sys/statfs.h> |
| 19057 | # endif |
| 19058 | # endif |
| 19059 | #endif |
| 19060 | |
| 19061 | int |
| 19062 | main () |
| 19063 | { |
| 19064 | static struct statfs ac_aggr; |
| 19065 | if (sizeof ac_aggr.f_favail) |
| 19066 | return 0; |
| 19067 | ; |
| 19068 | return 0; |
| 19069 | } |
| 19070 | _ACEOF |
| 19071 | rm -f conftest.$ac_objext |
| 19072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19073 | (eval $ac_compile) 2>conftest.er1 |
| 19074 | ac_status=$? |
| 19075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19076 | rm -f conftest.er1 |
| 19077 | cat conftest.err >&5 |
| 19078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19079 | (exit $ac_status); } && |
| 19080 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19082 | (eval $ac_try) 2>&5 |
| 19083 | ac_status=$? |
| 19084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19085 | (exit $ac_status); }; } && |
| 19086 | { ac_try='test -s conftest.$ac_objext' |
| 19087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19088 | (eval $ac_try) 2>&5 |
| 19089 | ac_status=$? |
| 19090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19091 | (exit $ac_status); }; }; then |
| 19092 | ac_cv_member_struct_statfs_f_favail=yes |
| 19093 | else |
| 19094 | echo "$as_me: failed program was:" >&5 |
| 19095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19096 | |
| 19097 | ac_cv_member_struct_statfs_f_favail=no |
| 19098 | fi |
| 19099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19100 | fi |
| 19101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19102 | fi |
| 19103 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5 |
| 19104 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6 |
| 19105 | if test $ac_cv_member_struct_statfs_f_favail = yes; then |
| 19106 | |
| 19107 | cat >>confdefs.h <<_ACEOF |
| 19108 | #define HAVE_STRUCT_STATFS_F_FAVAIL 1 |
| 19109 | _ACEOF |
| 19110 | |
| 19111 | |
| 19112 | fi |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 19113 | echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5 |
| 19114 | echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6 |
| 19115 | if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then |
| 19116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19117 | else |
| 19118 | cat >conftest.$ac_ext <<_ACEOF |
| 19119 | /* confdefs.h. */ |
| 19120 | _ACEOF |
| 19121 | cat confdefs.h >>conftest.$ac_ext |
| 19122 | cat >>conftest.$ac_ext <<_ACEOF |
| 19123 | /* end confdefs.h. */ |
| 19124 | #include <sys/types.h> |
| 19125 | #ifdef HAVE_SYS_PARAM_H |
| 19126 | # include <sys/param.h> |
| 19127 | #endif |
| 19128 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 19129 | # include <sys/mount.h> |
| 19130 | #else |
| 19131 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 19132 | # include <sys/vfs.h> |
| 19133 | # else |
| 19134 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 19135 | # include <sys/statfs.h> |
| 19136 | # endif |
| 19137 | # endif |
| 19138 | #endif |
| 19139 | |
| 19140 | int |
| 19141 | main () |
| 19142 | { |
| 19143 | static struct statfs ac_aggr; |
| 19144 | if (ac_aggr.f_namelen) |
| 19145 | return 0; |
| 19146 | ; |
| 19147 | return 0; |
| 19148 | } |
| 19149 | _ACEOF |
| 19150 | rm -f conftest.$ac_objext |
| 19151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19152 | (eval $ac_compile) 2>conftest.er1 |
| 19153 | ac_status=$? |
| 19154 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19155 | rm -f conftest.er1 |
| 19156 | cat conftest.err >&5 |
| 19157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19158 | (exit $ac_status); } && |
| 19159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19161 | (eval $ac_try) 2>&5 |
| 19162 | ac_status=$? |
| 19163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19164 | (exit $ac_status); }; } && |
| 19165 | { ac_try='test -s conftest.$ac_objext' |
| 19166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19167 | (eval $ac_try) 2>&5 |
| 19168 | ac_status=$? |
| 19169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19170 | (exit $ac_status); }; }; then |
| 19171 | ac_cv_member_struct_statfs_f_namelen=yes |
| 19172 | else |
| 19173 | echo "$as_me: failed program was:" >&5 |
| 19174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19175 | |
| 19176 | cat >conftest.$ac_ext <<_ACEOF |
| 19177 | /* confdefs.h. */ |
| 19178 | _ACEOF |
| 19179 | cat confdefs.h >>conftest.$ac_ext |
| 19180 | cat >>conftest.$ac_ext <<_ACEOF |
| 19181 | /* end confdefs.h. */ |
| 19182 | #include <sys/types.h> |
| 19183 | #ifdef HAVE_SYS_PARAM_H |
| 19184 | # include <sys/param.h> |
| 19185 | #endif |
| 19186 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 19187 | # include <sys/mount.h> |
| 19188 | #else |
| 19189 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 19190 | # include <sys/vfs.h> |
| 19191 | # else |
| 19192 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 19193 | # include <sys/statfs.h> |
| 19194 | # endif |
| 19195 | # endif |
| 19196 | #endif |
| 19197 | |
| 19198 | int |
| 19199 | main () |
| 19200 | { |
| 19201 | static struct statfs ac_aggr; |
| 19202 | if (sizeof ac_aggr.f_namelen) |
| 19203 | return 0; |
| 19204 | ; |
| 19205 | return 0; |
| 19206 | } |
| 19207 | _ACEOF |
| 19208 | rm -f conftest.$ac_objext |
| 19209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19210 | (eval $ac_compile) 2>conftest.er1 |
| 19211 | ac_status=$? |
| 19212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19213 | rm -f conftest.er1 |
| 19214 | cat conftest.err >&5 |
| 19215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19216 | (exit $ac_status); } && |
| 19217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19219 | (eval $ac_try) 2>&5 |
| 19220 | ac_status=$? |
| 19221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19222 | (exit $ac_status); }; } && |
| 19223 | { ac_try='test -s conftest.$ac_objext' |
| 19224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19225 | (eval $ac_try) 2>&5 |
| 19226 | ac_status=$? |
| 19227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19228 | (exit $ac_status); }; }; then |
| 19229 | ac_cv_member_struct_statfs_f_namelen=yes |
| 19230 | else |
| 19231 | echo "$as_me: failed program was:" >&5 |
| 19232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19233 | |
| 19234 | ac_cv_member_struct_statfs_f_namelen=no |
| 19235 | fi |
| 19236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19237 | fi |
| 19238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19239 | fi |
| 19240 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5 |
| 19241 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6 |
| 19242 | if test $ac_cv_member_struct_statfs_f_namelen = yes; then |
| 19243 | |
| 19244 | cat >>confdefs.h <<_ACEOF |
| 19245 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1 |
| 19246 | _ACEOF |
| 19247 | |
| 19248 | |
| 19249 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 19250 | |
| 19251 | |
| 19252 | echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5 |
| 19253 | echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6 |
| 19254 | if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then |
| 19255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19256 | else |
| 19257 | cat >conftest.$ac_ext <<_ACEOF |
| 19258 | /* confdefs.h. */ |
| 19259 | _ACEOF |
| 19260 | cat confdefs.h >>conftest.$ac_ext |
| 19261 | cat >>conftest.$ac_ext <<_ACEOF |
| 19262 | /* end confdefs.h. */ |
| 19263 | #ifdef HAVE_SYS_STATVFS_H |
| 19264 | #include <sys/statvfs.h> |
| 19265 | #endif |
| 19266 | |
| 19267 | int |
| 19268 | main () |
| 19269 | { |
| 19270 | static struct statvfs ac_aggr; |
| 19271 | if (ac_aggr.f_blocks) |
| 19272 | return 0; |
| 19273 | ; |
| 19274 | return 0; |
| 19275 | } |
| 19276 | _ACEOF |
| 19277 | rm -f conftest.$ac_objext |
| 19278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19279 | (eval $ac_compile) 2>conftest.er1 |
| 19280 | ac_status=$? |
| 19281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19282 | rm -f conftest.er1 |
| 19283 | cat conftest.err >&5 |
| 19284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19285 | (exit $ac_status); } && |
| 19286 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19288 | (eval $ac_try) 2>&5 |
| 19289 | ac_status=$? |
| 19290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19291 | (exit $ac_status); }; } && |
| 19292 | { ac_try='test -s conftest.$ac_objext' |
| 19293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19294 | (eval $ac_try) 2>&5 |
| 19295 | ac_status=$? |
| 19296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19297 | (exit $ac_status); }; }; then |
| 19298 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 19299 | else |
| 19300 | echo "$as_me: failed program was:" >&5 |
| 19301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19302 | |
| 19303 | cat >conftest.$ac_ext <<_ACEOF |
| 19304 | /* confdefs.h. */ |
| 19305 | _ACEOF |
| 19306 | cat confdefs.h >>conftest.$ac_ext |
| 19307 | cat >>conftest.$ac_ext <<_ACEOF |
| 19308 | /* end confdefs.h. */ |
| 19309 | #ifdef HAVE_SYS_STATVFS_H |
| 19310 | #include <sys/statvfs.h> |
| 19311 | #endif |
| 19312 | |
| 19313 | int |
| 19314 | main () |
| 19315 | { |
| 19316 | static struct statvfs ac_aggr; |
| 19317 | if (sizeof ac_aggr.f_blocks) |
| 19318 | return 0; |
| 19319 | ; |
| 19320 | return 0; |
| 19321 | } |
| 19322 | _ACEOF |
| 19323 | rm -f conftest.$ac_objext |
| 19324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19325 | (eval $ac_compile) 2>conftest.er1 |
| 19326 | ac_status=$? |
| 19327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19328 | rm -f conftest.er1 |
| 19329 | cat conftest.err >&5 |
| 19330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19331 | (exit $ac_status); } && |
| 19332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19334 | (eval $ac_try) 2>&5 |
| 19335 | ac_status=$? |
| 19336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19337 | (exit $ac_status); }; } && |
| 19338 | { ac_try='test -s conftest.$ac_objext' |
| 19339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19340 | (eval $ac_try) 2>&5 |
| 19341 | ac_status=$? |
| 19342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19343 | (exit $ac_status); }; }; then |
| 19344 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 19345 | else |
| 19346 | echo "$as_me: failed program was:" >&5 |
| 19347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19348 | |
| 19349 | ac_cv_member_struct_statvfs_f_blocks=no |
| 19350 | fi |
| 19351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19352 | fi |
| 19353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19354 | fi |
| 19355 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5 |
| 19356 | echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6 |
| 19357 | if test $ac_cv_member_struct_statvfs_f_blocks = yes; then |
| 19358 | |
| 19359 | cat >>confdefs.h <<_ACEOF |
| 19360 | #define HAVE_STRUCT_STATVFS_F_BLOCKS 1 |
| 19361 | _ACEOF |
| 19362 | |
| 19363 | |
| 19364 | fi |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 19365 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19366 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19367 | echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5 |
| 19368 | echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6 |
| 19369 | if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 19371 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19372 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19373 | /* confdefs.h. */ |
| 19374 | _ACEOF |
| 19375 | cat confdefs.h >>conftest.$ac_ext |
| 19376 | cat >>conftest.$ac_ext <<_ACEOF |
| 19377 | /* end confdefs.h. */ |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 19378 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 19379 | #ifdef HAVE_SYS_SOCKET_H |
| 19380 | # include <sys/socket.h> |
| 19381 | #endif |
| 19382 | #ifdef HAVE_SYS_UN_H |
| 19383 | # include <sys/un.h> |
| 19384 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19385 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19386 | int |
| 19387 | main () |
| 19388 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19389 | static struct msghdr ac_aggr; |
| 19390 | if (ac_aggr.msg_accrights) |
| 19391 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19392 | ; |
| 19393 | return 0; |
| 19394 | } |
| 19395 | _ACEOF |
| 19396 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19398 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19399 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19400 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19401 | rm -f conftest.er1 |
| 19402 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19404 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19407 | (eval $ac_try) 2>&5 |
| 19408 | ac_status=$? |
| 19409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19410 | (exit $ac_status); }; } && |
| 19411 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19413 | (eval $ac_try) 2>&5 |
| 19414 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19416 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19417 | ac_cv_member_struct_msghdr_msg_accrights=yes |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19418 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19419 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19421 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19422 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19423 | /* confdefs.h. */ |
| 19424 | _ACEOF |
| 19425 | cat confdefs.h >>conftest.$ac_ext |
| 19426 | cat >>conftest.$ac_ext <<_ACEOF |
| 19427 | /* end confdefs.h. */ |
| 19428 | #include <sys/types.h> |
| 19429 | #ifdef HAVE_SYS_SOCKET_H |
| 19430 | # include <sys/socket.h> |
| 19431 | #endif |
| 19432 | #ifdef HAVE_SYS_UN_H |
| 19433 | # include <sys/un.h> |
| 19434 | #endif |
| 19435 | |
| 19436 | int |
| 19437 | main () |
| 19438 | { |
| 19439 | static struct msghdr ac_aggr; |
| 19440 | if (sizeof ac_aggr.msg_accrights) |
| 19441 | return 0; |
| 19442 | ; |
| 19443 | return 0; |
| 19444 | } |
| 19445 | _ACEOF |
| 19446 | rm -f conftest.$ac_objext |
| 19447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19448 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19449 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19451 | rm -f conftest.er1 |
| 19452 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19454 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19455 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19457 | (eval $ac_try) 2>&5 |
| 19458 | ac_status=$? |
| 19459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19460 | (exit $ac_status); }; } && |
| 19461 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19463 | (eval $ac_try) 2>&5 |
| 19464 | ac_status=$? |
| 19465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19466 | (exit $ac_status); }; }; then |
| 19467 | ac_cv_member_struct_msghdr_msg_accrights=yes |
| 19468 | else |
| 19469 | echo "$as_me: failed program was:" >&5 |
| 19470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19471 | |
| 19472 | ac_cv_member_struct_msghdr_msg_accrights=no |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19473 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19475 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19477 | fi |
| 19478 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5 |
| 19479 | echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6 |
| 19480 | if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19481 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19482 | cat >>confdefs.h <<_ACEOF |
| 19483 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19484 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19485 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19486 | |
| 19487 | fi |
| 19488 | echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 19489 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6 |
| 19490 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
| 19491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19492 | else |
| 19493 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19494 | /* confdefs.h. */ |
| 19495 | _ACEOF |
| 19496 | cat confdefs.h >>conftest.$ac_ext |
| 19497 | cat >>conftest.$ac_ext <<_ACEOF |
| 19498 | /* end confdefs.h. */ |
| 19499 | #include <sys/types.h> |
| 19500 | #ifdef HAVE_SYS_SOCKET_H |
| 19501 | # include <sys/socket.h> |
| 19502 | #endif |
| 19503 | #ifdef HAVE_SYS_UN_H |
| 19504 | # include <sys/un.h> |
| 19505 | #endif |
| 19506 | |
| 19507 | int |
| 19508 | main () |
| 19509 | { |
| 19510 | static struct sockaddr ac_aggr; |
| 19511 | if (ac_aggr.sa_len) |
| 19512 | return 0; |
| 19513 | ; |
| 19514 | return 0; |
| 19515 | } |
| 19516 | _ACEOF |
| 19517 | rm -f conftest.$ac_objext |
| 19518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19519 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19520 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19521 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19522 | rm -f conftest.er1 |
| 19523 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19525 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19528 | (eval $ac_try) 2>&5 |
| 19529 | ac_status=$? |
| 19530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19531 | (exit $ac_status); }; } && |
| 19532 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19534 | (eval $ac_try) 2>&5 |
| 19535 | ac_status=$? |
| 19536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19537 | (exit $ac_status); }; }; then |
| 19538 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 19539 | else |
| 19540 | echo "$as_me: failed program was:" >&5 |
| 19541 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19542 | |
| 19543 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19544 | /* confdefs.h. */ |
| 19545 | _ACEOF |
| 19546 | cat confdefs.h >>conftest.$ac_ext |
| 19547 | cat >>conftest.$ac_ext <<_ACEOF |
| 19548 | /* end confdefs.h. */ |
| 19549 | #include <sys/types.h> |
| 19550 | #ifdef HAVE_SYS_SOCKET_H |
| 19551 | # include <sys/socket.h> |
| 19552 | #endif |
| 19553 | #ifdef HAVE_SYS_UN_H |
| 19554 | # include <sys/un.h> |
| 19555 | #endif |
| 19556 | |
| 19557 | int |
| 19558 | main () |
| 19559 | { |
| 19560 | static struct sockaddr ac_aggr; |
| 19561 | if (sizeof ac_aggr.sa_len) |
| 19562 | return 0; |
| 19563 | ; |
| 19564 | return 0; |
| 19565 | } |
| 19566 | _ACEOF |
| 19567 | rm -f conftest.$ac_objext |
| 19568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19569 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19570 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19572 | rm -f conftest.er1 |
| 19573 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19575 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19576 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19578 | (eval $ac_try) 2>&5 |
| 19579 | ac_status=$? |
| 19580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19581 | (exit $ac_status); }; } && |
| 19582 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19584 | (eval $ac_try) 2>&5 |
| 19585 | ac_status=$? |
| 19586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19587 | (exit $ac_status); }; }; then |
| 19588 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 19589 | else |
| 19590 | echo "$as_me: failed program was:" >&5 |
| 19591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19592 | |
| 19593 | ac_cv_member_struct_sockaddr_sa_len=no |
| 19594 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19596 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19598 | fi |
| 19599 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 19600 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6 |
| 19601 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
| 19602 | |
| 19603 | cat >>confdefs.h <<_ACEOF |
| 19604 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 19605 | _ACEOF |
| 19606 | |
| 19607 | |
| 19608 | fi |
| 19609 | echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5 |
| 19610 | echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6 |
| 19611 | if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then |
| 19612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19613 | else |
| 19614 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19615 | /* confdefs.h. */ |
| 19616 | _ACEOF |
| 19617 | cat confdefs.h >>conftest.$ac_ext |
| 19618 | cat >>conftest.$ac_ext <<_ACEOF |
| 19619 | /* end confdefs.h. */ |
| 19620 | #include <sys/types.h> |
| 19621 | #ifdef HAVE_SYS_SOCKET_H |
| 19622 | # include <sys/socket.h> |
| 19623 | #endif |
| 19624 | #ifdef HAVE_SYS_UN_H |
| 19625 | # include <sys/un.h> |
| 19626 | #endif |
| 19627 | |
| 19628 | int |
| 19629 | main () |
| 19630 | { |
| 19631 | static struct sockaddr_un ac_aggr; |
| 19632 | if (ac_aggr.sun_len) |
| 19633 | return 0; |
| 19634 | ; |
| 19635 | return 0; |
| 19636 | } |
| 19637 | _ACEOF |
| 19638 | rm -f conftest.$ac_objext |
| 19639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19640 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19641 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19642 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19643 | rm -f conftest.er1 |
| 19644 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19646 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19647 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19649 | (eval $ac_try) 2>&5 |
| 19650 | ac_status=$? |
| 19651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19652 | (exit $ac_status); }; } && |
| 19653 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19655 | (eval $ac_try) 2>&5 |
| 19656 | ac_status=$? |
| 19657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19658 | (exit $ac_status); }; }; then |
| 19659 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 19660 | else |
| 19661 | echo "$as_me: failed program was:" >&5 |
| 19662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19663 | |
| 19664 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19665 | /* confdefs.h. */ |
| 19666 | _ACEOF |
| 19667 | cat confdefs.h >>conftest.$ac_ext |
| 19668 | cat >>conftest.$ac_ext <<_ACEOF |
| 19669 | /* end confdefs.h. */ |
| 19670 | #include <sys/types.h> |
| 19671 | #ifdef HAVE_SYS_SOCKET_H |
| 19672 | # include <sys/socket.h> |
| 19673 | #endif |
| 19674 | #ifdef HAVE_SYS_UN_H |
| 19675 | # include <sys/un.h> |
| 19676 | #endif |
| 19677 | |
| 19678 | int |
| 19679 | main () |
| 19680 | { |
| 19681 | static struct sockaddr_un ac_aggr; |
| 19682 | if (sizeof ac_aggr.sun_len) |
| 19683 | return 0; |
| 19684 | ; |
| 19685 | return 0; |
| 19686 | } |
| 19687 | _ACEOF |
| 19688 | rm -f conftest.$ac_objext |
| 19689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19690 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19691 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19693 | rm -f conftest.er1 |
| 19694 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19696 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19699 | (eval $ac_try) 2>&5 |
| 19700 | ac_status=$? |
| 19701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19702 | (exit $ac_status); }; } && |
| 19703 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19705 | (eval $ac_try) 2>&5 |
| 19706 | ac_status=$? |
| 19707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19708 | (exit $ac_status); }; }; then |
| 19709 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 19710 | else |
| 19711 | echo "$as_me: failed program was:" >&5 |
| 19712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19713 | |
| 19714 | ac_cv_member_struct_sockaddr_un_sun_len=no |
| 19715 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19717 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19718 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19719 | fi |
| 19720 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5 |
| 19721 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6 |
| 19722 | if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then |
| 19723 | |
| 19724 | cat >>confdefs.h <<_ACEOF |
| 19725 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 19726 | _ACEOF |
| 19727 | |
| 19728 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19729 | fi |
| 19730 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19731 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19732 | echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5 |
| 19733 | echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6 |
| 19734 | if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then |
| 19735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19736 | else |
| 19737 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19738 | /* confdefs.h. */ |
| 19739 | _ACEOF |
| 19740 | cat confdefs.h >>conftest.$ac_ext |
| 19741 | cat >>conftest.$ac_ext <<_ACEOF |
| 19742 | /* end confdefs.h. */ |
| 19743 | #include <signal.h> |
| 19744 | |
| 19745 | int |
| 19746 | main () |
| 19747 | { |
| 19748 | static siginfo_t ac_aggr; |
| 19749 | if (ac_aggr.si_fd) |
| 19750 | return 0; |
| 19751 | ; |
| 19752 | return 0; |
| 19753 | } |
| 19754 | _ACEOF |
| 19755 | rm -f conftest.$ac_objext |
| 19756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19757 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19758 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19759 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19760 | rm -f conftest.er1 |
| 19761 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19763 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19764 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19766 | (eval $ac_try) 2>&5 |
| 19767 | ac_status=$? |
| 19768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19769 | (exit $ac_status); }; } && |
| 19770 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19772 | (eval $ac_try) 2>&5 |
| 19773 | ac_status=$? |
| 19774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19775 | (exit $ac_status); }; }; then |
| 19776 | ac_cv_member_siginfo_t_si_fd=yes |
| 19777 | else |
| 19778 | echo "$as_me: failed program was:" >&5 |
| 19779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19780 | |
| 19781 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19782 | /* confdefs.h. */ |
| 19783 | _ACEOF |
| 19784 | cat confdefs.h >>conftest.$ac_ext |
| 19785 | cat >>conftest.$ac_ext <<_ACEOF |
| 19786 | /* end confdefs.h. */ |
| 19787 | #include <signal.h> |
| 19788 | |
| 19789 | int |
| 19790 | main () |
| 19791 | { |
| 19792 | static siginfo_t ac_aggr; |
| 19793 | if (sizeof ac_aggr.si_fd) |
| 19794 | return 0; |
| 19795 | ; |
| 19796 | return 0; |
| 19797 | } |
| 19798 | _ACEOF |
| 19799 | rm -f conftest.$ac_objext |
| 19800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19801 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19802 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19804 | rm -f conftest.er1 |
| 19805 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19807 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19808 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19810 | (eval $ac_try) 2>&5 |
| 19811 | ac_status=$? |
| 19812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19813 | (exit $ac_status); }; } && |
| 19814 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19816 | (eval $ac_try) 2>&5 |
| 19817 | ac_status=$? |
| 19818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19819 | (exit $ac_status); }; }; then |
| 19820 | ac_cv_member_siginfo_t_si_fd=yes |
| 19821 | else |
| 19822 | echo "$as_me: failed program was:" >&5 |
| 19823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19824 | |
| 19825 | ac_cv_member_siginfo_t_si_fd=no |
| 19826 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19828 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19830 | fi |
| 19831 | echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5 |
| 19832 | echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6 |
| 19833 | if test $ac_cv_member_siginfo_t_si_fd = yes; then |
| 19834 | |
| 19835 | cat >>confdefs.h <<_ACEOF |
| 19836 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 19837 | _ACEOF |
| 19838 | |
| 19839 | |
| 19840 | fi |
| 19841 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19842 | |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19843 | echo "$as_me:$LINENO: checking for struct option.name" >&5 |
| 19844 | echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6 |
| 19845 | if test "${ac_cv_member_struct_option_name+set}" = set; then |
| 19846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19847 | else |
| 19848 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19849 | /* confdefs.h. */ |
| 19850 | _ACEOF |
| 19851 | cat confdefs.h >>conftest.$ac_ext |
| 19852 | cat >>conftest.$ac_ext <<_ACEOF |
| 19853 | /* end confdefs.h. */ |
| 19854 | #ifdef HAVE_GETOPT_H |
| 19855 | #include <getopt.h> |
| 19856 | #endif |
| 19857 | |
| 19858 | int |
| 19859 | main () |
| 19860 | { |
| 19861 | static struct option ac_aggr; |
| 19862 | if (ac_aggr.name) |
| 19863 | return 0; |
| 19864 | ; |
| 19865 | return 0; |
| 19866 | } |
| 19867 | _ACEOF |
| 19868 | rm -f conftest.$ac_objext |
| 19869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19870 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19871 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19873 | rm -f conftest.er1 |
| 19874 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19876 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19877 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19879 | (eval $ac_try) 2>&5 |
| 19880 | ac_status=$? |
| 19881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19882 | (exit $ac_status); }; } && |
| 19883 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19885 | (eval $ac_try) 2>&5 |
| 19886 | ac_status=$? |
| 19887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19888 | (exit $ac_status); }; }; then |
| 19889 | ac_cv_member_struct_option_name=yes |
| 19890 | else |
| 19891 | echo "$as_me: failed program was:" >&5 |
| 19892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19893 | |
| 19894 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19895 | /* confdefs.h. */ |
| 19896 | _ACEOF |
| 19897 | cat confdefs.h >>conftest.$ac_ext |
| 19898 | cat >>conftest.$ac_ext <<_ACEOF |
| 19899 | /* end confdefs.h. */ |
| 19900 | #ifdef HAVE_GETOPT_H |
| 19901 | #include <getopt.h> |
| 19902 | #endif |
| 19903 | |
| 19904 | int |
| 19905 | main () |
| 19906 | { |
| 19907 | static struct option ac_aggr; |
| 19908 | if (sizeof ac_aggr.name) |
| 19909 | return 0; |
| 19910 | ; |
| 19911 | return 0; |
| 19912 | } |
| 19913 | _ACEOF |
| 19914 | rm -f conftest.$ac_objext |
| 19915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19916 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19917 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19919 | rm -f conftest.er1 |
| 19920 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19922 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19923 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19925 | (eval $ac_try) 2>&5 |
| 19926 | ac_status=$? |
| 19927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19928 | (exit $ac_status); }; } && |
| 19929 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19931 | (eval $ac_try) 2>&5 |
| 19932 | ac_status=$? |
| 19933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19934 | (exit $ac_status); }; }; then |
| 19935 | ac_cv_member_struct_option_name=yes |
| 19936 | else |
| 19937 | echo "$as_me: failed program was:" >&5 |
| 19938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19939 | |
| 19940 | ac_cv_member_struct_option_name=no |
| 19941 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19943 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19945 | fi |
| 19946 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5 |
| 19947 | echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6 |
| 19948 | if test $ac_cv_member_struct_option_name = yes; then |
| 19949 | |
| 19950 | cat >>confdefs.h <<_ACEOF |
| 19951 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 19952 | _ACEOF |
| 19953 | |
| 19954 | |
| 19955 | fi |
| 19956 | |
| 19957 | |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19958 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 19959 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 19960 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 19961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19962 | else |
| 19963 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19964 | /* confdefs.h. */ |
| 19965 | _ACEOF |
| 19966 | cat confdefs.h >>conftest.$ac_ext |
| 19967 | cat >>conftest.$ac_ext <<_ACEOF |
| 19968 | /* end confdefs.h. */ |
| 19969 | $ac_includes_default |
| 19970 | int |
| 19971 | main () |
| 19972 | { |
| 19973 | static struct stat ac_aggr; |
| 19974 | if (ac_aggr.st_blocks) |
| 19975 | return 0; |
| 19976 | ; |
| 19977 | return 0; |
| 19978 | } |
| 19979 | _ACEOF |
| 19980 | rm -f conftest.$ac_objext |
| 19981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19982 | (eval $ac_compile) 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19983 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19985 | rm -f conftest.er1 |
| 19986 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19988 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19991 | (eval $ac_try) 2>&5 |
| 19992 | ac_status=$? |
| 19993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19994 | (exit $ac_status); }; } && |
| 19995 | { ac_try='test -s conftest.$ac_objext' |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19997 | (eval $ac_try) 2>&5 |
| 19998 | ac_status=$? |
| 19999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20000 | (exit $ac_status); }; }; then |
| 20001 | ac_cv_member_struct_stat_st_blocks=yes |
| 20002 | else |
| 20003 | echo "$as_me: failed program was:" >&5 |
| 20004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20005 | |
| 20006 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20007 | /* confdefs.h. */ |
| 20008 | _ACEOF |
| 20009 | cat confdefs.h >>conftest.$ac_ext |
| 20010 | cat >>conftest.$ac_ext <<_ACEOF |
| 20011 | /* end confdefs.h. */ |
| 20012 | $ac_includes_default |
| 20013 | int |
| 20014 | main () |
| 20015 | { |
| 20016 | static struct stat ac_aggr; |
| 20017 | if (sizeof ac_aggr.st_blocks) |
| 20018 | return 0; |
| 20019 | ; |
| 20020 | return 0; |
| 20021 | } |
| 20022 | _ACEOF |
| 20023 | rm -f conftest.$ac_objext |
| 20024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20025 | (eval $ac_compile) 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20026 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20028 | rm -f conftest.er1 |
| 20029 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20031 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 20033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20034 | (eval $ac_try) 2>&5 |
| 20035 | ac_status=$? |
| 20036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20037 | (exit $ac_status); }; } && |
| 20038 | { ac_try='test -s conftest.$ac_objext' |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20040 | (eval $ac_try) 2>&5 |
| 20041 | ac_status=$? |
| 20042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20043 | (exit $ac_status); }; }; then |
| 20044 | ac_cv_member_struct_stat_st_blocks=yes |
| 20045 | else |
| 20046 | echo "$as_me: failed program was:" >&5 |
| 20047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20048 | |
| 20049 | ac_cv_member_struct_stat_st_blocks=no |
| 20050 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20052 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 20054 | fi |
| 20055 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 20056 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 20057 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
| 20058 | |
| 20059 | cat >>confdefs.h <<_ACEOF |
| 20060 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 20061 | _ACEOF |
| 20062 | |
| 20063 | |
| 20064 | fi |
| 20065 | |
| 20066 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20067 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 20068 | case $host_cpu in |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20069 | *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20070 | echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6 |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20071 | if test "${ac_cv_cpp_def___i386__+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 20073 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20074 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20075 | /* confdefs.h. */ |
| 20076 | _ACEOF |
| 20077 | cat confdefs.h >>conftest.$ac_ext |
| 20078 | cat >>conftest.$ac_ext <<_ACEOF |
| 20079 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20080 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 20081 | yes |
| 20082 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20083 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 20084 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20085 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20086 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 20087 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20088 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 20089 | fi |
| 20090 | rm -f conftest* |
| 20091 | |
| 20092 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20093 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5 |
| 20094 | echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6 |
| 20095 | if test $ac_cv_cpp_def___i386__ = yes; then |
| 20096 | CFLAGS="$CFLAGS -D__i386__" |
| 20097 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 20098 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20099 | ;; |
| 20100 | *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5 |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 20101 | echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6 |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20102 | if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 20103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20104 | else |
| 20105 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20106 | /* confdefs.h. */ |
| 20107 | _ACEOF |
| 20108 | cat confdefs.h >>conftest.$ac_ext |
| 20109 | cat >>conftest.$ac_ext <<_ACEOF |
| 20110 | /* end confdefs.h. */ |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 20111 | #ifndef __ALPHA__ |
| 20112 | yes |
| 20113 | #endif |
| 20114 | _ACEOF |
| 20115 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20116 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20117 | ac_cv_cpp_def___ALPHA__=yes |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 20118 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20119 | ac_cv_cpp_def___ALPHA__=no |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 20120 | fi |
| 20121 | rm -f conftest* |
| 20122 | |
| 20123 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20124 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5 |
| 20125 | echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6 |
| 20126 | if test $ac_cv_cpp_def___ALPHA__ = yes; then |
| 20127 | CFLAGS="$CFLAGS -D__ALPHA__" |
| 20128 | LINTFLAGS="$LINTFLAGS -D__ALPHA__" |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 20129 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20130 | ;; |
| 20131 | *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20132 | echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6 |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20133 | if test "${ac_cv_cpp_def___sparc__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20135 | else |
| 20136 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20137 | /* confdefs.h. */ |
| 20138 | _ACEOF |
| 20139 | cat confdefs.h >>conftest.$ac_ext |
| 20140 | cat >>conftest.$ac_ext <<_ACEOF |
| 20141 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20142 | #ifndef __sparc__ |
| 20143 | yes |
| 20144 | #endif |
| 20145 | _ACEOF |
| 20146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20147 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20148 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20149 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20150 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20151 | fi |
| 20152 | rm -f conftest* |
| 20153 | |
| 20154 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20155 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5 |
| 20156 | echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6 |
| 20157 | if test $ac_cv_cpp_def___sparc__ = yes; then |
| 20158 | CFLAGS="$CFLAGS -D__sparc__" |
| 20159 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20160 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20161 | ;; |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 20162 | *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5 |
| 20163 | echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6 |
| 20164 | if test "${ac_cv_cpp_def___powerpc__+set}" = set; then |
| 20165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20166 | else |
| 20167 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 20168 | /* confdefs.h. */ |
| 20169 | _ACEOF |
| 20170 | cat confdefs.h >>conftest.$ac_ext |
| 20171 | cat >>conftest.$ac_ext <<_ACEOF |
| 20172 | /* end confdefs.h. */ |
| 20173 | #ifndef __powerpc__ |
| 20174 | yes |
| 20175 | #endif |
| 20176 | _ACEOF |
| 20177 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20178 | $EGREP "yes" >/dev/null 2>&1; then |
| 20179 | ac_cv_cpp_def___powerpc__=yes |
| 20180 | else |
| 20181 | ac_cv_cpp_def___powerpc__=no |
| 20182 | fi |
| 20183 | rm -f conftest* |
| 20184 | |
| 20185 | fi |
| 20186 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5 |
| 20187 | echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6 |
| 20188 | if test $ac_cv_cpp_def___powerpc__ = yes; then |
| 20189 | CFLAGS="$CFLAGS -D__powerpc__" |
| 20190 | LINTFLAGS="$LINTFLAGS -D__powerpc__" |
| 20191 | fi |
| 20192 | ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20193 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20194 | |
| 20195 | case $host_vendor in |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20196 | *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20197 | echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6 |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20198 | if test "${ac_cv_cpp_def___sun__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20200 | else |
| 20201 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20202 | /* confdefs.h. */ |
| 20203 | _ACEOF |
| 20204 | cat confdefs.h >>conftest.$ac_ext |
| 20205 | cat >>conftest.$ac_ext <<_ACEOF |
| 20206 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20207 | #ifndef __sun__ |
| 20208 | yes |
| 20209 | #endif |
| 20210 | _ACEOF |
| 20211 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20212 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20213 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20214 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20215 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20216 | fi |
| 20217 | rm -f conftest* |
| 20218 | |
| 20219 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20220 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5 |
| 20221 | echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6 |
| 20222 | if test $ac_cv_cpp_def___sun__ = yes; then |
| 20223 | CFLAGS="$CFLAGS -D__sun__" |
| 20224 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20225 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 20226 | ;; |
| 20227 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 20228 | |
| 20229 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20230 | |
| 20231 | |
| 20232 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20233 | ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 20234 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20235 | ac_config_commands="$ac_config_commands dlls/ddraw/dclipper" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 20236 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20237 | ac_config_commands="$ac_config_commands dlls/ddraw/ddraw" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 20238 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20239 | ac_config_commands="$ac_config_commands dlls/ddraw/direct3d" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 20240 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20241 | ac_config_commands="$ac_config_commands dlls/ddraw/dpalette" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 20242 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20243 | ac_config_commands="$ac_config_commands dlls/ddraw/dsurface" |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 20244 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20245 | ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 20246 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20247 | ac_config_commands="$ac_config_commands dlls/gdi/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 20248 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20249 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20250 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20251 | ac_config_commands="$ac_config_commands dlls/user/dde" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20252 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20253 | ac_config_commands="$ac_config_commands dlls/user/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20254 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20255 | ac_config_commands="$ac_config_commands dlls/wineps/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20256 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20257 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20258 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20259 | ac_config_commands="$ac_config_commands misc" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 20260 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20261 | ac_config_commands="$ac_config_commands programs/regedit/tests" |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 20262 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20263 | ac_config_commands="$ac_config_commands windows" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 20264 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 20265 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 20266 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20267 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20268 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 20269 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 20270 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20271 | |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20272 | MAKE_TEST_RULES=dlls/Maketest.rules |
| 20273 | |
| 20274 | |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 20275 | MAKE_LIB_RULES=libs/Makelib.rules |
| 20276 | |
| 20277 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 20278 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 20279 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20280 | |
Huw Davies | 20313b8 | 2004-09-27 20:39:40 +0000 | [diff] [blame] | 20281 | ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/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/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/secur32/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/strmiids/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/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/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20282 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 20283 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20284 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20285 | # This file is a shell script that caches the results of configure |
| 20286 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20287 | # scripts and configure runs, see configure's option --config-cache. |
| 20288 | # It is not useful on other systems. If it contains results you don't |
| 20289 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20290 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20291 | # config.status only pays attention to the cache file if you give it |
| 20292 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20293 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20294 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20295 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20296 | # following values. |
| 20297 | |
| 20298 | _ACEOF |
| 20299 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 20300 | # The following way of writing the cache mishandles newlines in values, |
| 20301 | # but we know of no workaround that is simple, portable, and efficient. |
| 20302 | # So, don't put newlines in cache variables' values. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20303 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20304 | # 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] | 20305 | { |
| 20306 | (set) 2>&1 | |
| 20307 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 20308 | *ac_space=\ *) |
| 20309 | # `set' does not quote correctly, so add quotes (double-quote |
| 20310 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 20311 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20312 | "s/'/'\\\\''/g; |
| 20313 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20314 | ;; |
| 20315 | *) |
| 20316 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 20317 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20318 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20319 | ;; |
| 20320 | esac; |
| 20321 | } | |
| 20322 | sed ' |
| 20323 | t clear |
| 20324 | : clear |
| 20325 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20326 | t end |
| 20327 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20328 | : end' >>confcache |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20329 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20330 | if test -w $cache_file; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20331 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 20332 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20333 | else |
| 20334 | echo "not updating unwritable cache $cache_file" |
| 20335 | fi |
| 20336 | fi |
| 20337 | rm -f confcache |
| 20338 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20339 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20340 | # Let make expand exec_prefix. |
| 20341 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20342 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20343 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20344 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20345 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20346 | # (actually we leave an empty line to preserve line numbers). |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20347 | if test "x$srcdir" = x.; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20348 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20349 | s/:*\$(srcdir):*/:/; |
| 20350 | s/:*\${srcdir}:*/:/; |
| 20351 | s/:*@srcdir@:*/:/; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20352 | s/^\([^=]*=[ ]*\):*/\1/; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20353 | s/:*$//; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20354 | s/^[^=]*=[ ]*$//; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20355 | }' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20356 | fi |
| 20357 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 20358 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20359 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20360 | ac_libobjs= |
| 20361 | ac_ltlibobjs= |
| 20362 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20363 | # 1. Remove the extension, and $U if already installed. |
| 20364 | ac_i=`echo "$ac_i" | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20365 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20366 | # 2. Add them. |
| 20367 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 20368 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 20369 | done |
| 20370 | LIBOBJS=$ac_libobjs |
| 20371 | |
| 20372 | LTLIBOBJS=$ac_ltlibobjs |
| 20373 | |
| 20374 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20375 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20376 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20377 | ac_clean_files_save=$ac_clean_files |
| 20378 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20379 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20380 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20381 | cat >$CONFIG_STATUS <<_ACEOF |
| 20382 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20383 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20384 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20385 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20386 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20387 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20388 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20389 | ac_cs_recheck=false |
| 20390 | ac_cs_silent=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20391 | SHELL=\${CONFIG_SHELL-$SHELL} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20392 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20393 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20394 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20395 | ## --------------------- ## |
| 20396 | ## M4sh Initialization. ## |
| 20397 | ## --------------------- ## |
| 20398 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20399 | # Be Bourne compatible |
| 20400 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20401 | emulate sh |
| 20402 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20403 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20404 | # is contrary to our usage. Disable this feature. |
| 20405 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20406 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20407 | set -o posix |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 20408 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20409 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20410 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20411 | # Support unset when possible. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20412 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20413 | as_unset=unset |
| 20414 | else |
| 20415 | as_unset=false |
| 20416 | fi |
| 20417 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20418 | |
| 20419 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20420 | $as_unset ENV MAIL MAILPATH |
| 20421 | PS1='$ ' |
| 20422 | PS2='> ' |
| 20423 | PS4='+ ' |
| 20424 | |
| 20425 | # NLS nuisances. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20426 | for as_var in \ |
| 20427 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20428 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20429 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20430 | do |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20431 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20432 | eval $as_var=C; export $as_var |
| 20433 | else |
| 20434 | $as_unset $as_var |
| 20435 | fi |
| 20436 | done |
| 20437 | |
| 20438 | # Required to use basename. |
| 20439 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20440 | as_expr=expr |
| 20441 | else |
| 20442 | as_expr=false |
| 20443 | fi |
| 20444 | |
| 20445 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 20446 | as_basename=basename |
| 20447 | else |
| 20448 | as_basename=false |
| 20449 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20450 | |
| 20451 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20452 | # Name of the executable. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20453 | as_me=`$as_basename "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20454 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20455 | X"$0" : 'X\(//\)$' \| \ |
| 20456 | X"$0" : 'X\(/\)$' \| \ |
| 20457 | . : '\(.\)' 2>/dev/null || |
| 20458 | echo X/"$0" | |
| 20459 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 20460 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 20461 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 20462 | s/.*/./; q'` |
| 20463 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20464 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20465 | # PATH needs CR, and LINENO needs CR and PATH. |
| 20466 | # Avoid depending upon Character Ranges. |
| 20467 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20468 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20469 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20470 | as_cr_digits='0123456789' |
| 20471 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20472 | |
| 20473 | # The user is always right. |
| 20474 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20475 | echo "#! /bin/sh" >conf$$.sh |
| 20476 | echo "exit 0" >>conf$$.sh |
| 20477 | chmod +x conf$$.sh |
| 20478 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20479 | PATH_SEPARATOR=';' |
| 20480 | else |
| 20481 | PATH_SEPARATOR=: |
| 20482 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20483 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20484 | fi |
| 20485 | |
| 20486 | |
| 20487 | as_lineno_1=$LINENO |
| 20488 | as_lineno_2=$LINENO |
| 20489 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20490 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20491 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 20492 | # Find who we are. Look in the path if we contain no path at all |
| 20493 | # relative or not. |
| 20494 | case $0 in |
| 20495 | *[\\/]* ) as_myself=$0 ;; |
| 20496 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20497 | for as_dir in $PATH |
| 20498 | do |
| 20499 | IFS=$as_save_IFS |
| 20500 | test -z "$as_dir" && as_dir=. |
| 20501 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20502 | done |
| 20503 | |
| 20504 | ;; |
| 20505 | esac |
| 20506 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20507 | # in which case we are not to be found in the path. |
| 20508 | if test "x$as_myself" = x; then |
| 20509 | as_myself=$0 |
| 20510 | fi |
| 20511 | if test ! -f "$as_myself"; then |
| 20512 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 20513 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 20514 | { (exit 1); exit 1; }; } |
| 20515 | fi |
| 20516 | case $CONFIG_SHELL in |
| 20517 | '') |
| 20518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20519 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 20520 | do |
| 20521 | IFS=$as_save_IFS |
| 20522 | test -z "$as_dir" && as_dir=. |
| 20523 | for as_base in sh bash ksh sh5; do |
| 20524 | case $as_dir in |
| 20525 | /*) |
| 20526 | if ("$as_dir/$as_base" -c ' |
| 20527 | as_lineno_1=$LINENO |
| 20528 | as_lineno_2=$LINENO |
| 20529 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20530 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20531 | 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] | 20532 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 20533 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20534 | CONFIG_SHELL=$as_dir/$as_base |
| 20535 | export CONFIG_SHELL |
| 20536 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 20537 | fi;; |
| 20538 | esac |
| 20539 | done |
| 20540 | done |
| 20541 | ;; |
| 20542 | esac |
| 20543 | |
| 20544 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20545 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20546 | # line-number line before each line; the second 'sed' does the real |
| 20547 | # work. The second script uses 'N' to pair each line-number line |
| 20548 | # with the numbered line, and appends trailing '-' during |
| 20549 | # substitution so that $LINENO is not a special case at line end. |
| 20550 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20551 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 20552 | sed '=' <$as_myself | |
| 20553 | sed ' |
| 20554 | N |
| 20555 | s,$,-, |
| 20556 | : loop |
| 20557 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 20558 | t loop |
| 20559 | s,-$,, |
| 20560 | s,^['$as_cr_digits']*\n,, |
| 20561 | ' >$as_me.lineno && |
| 20562 | chmod +x $as_me.lineno || |
| 20563 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 20564 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 20565 | { (exit 1); exit 1; }; } |
| 20566 | |
| 20567 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20568 | # (the dirname of $[0] is not the place where we might find the |
| 20569 | # original and so on. Autoconf is especially sensible to this). |
| 20570 | . ./$as_me.lineno |
| 20571 | # Exit status is that of the last command. |
| 20572 | exit |
| 20573 | } |
| 20574 | |
| 20575 | |
| 20576 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 20577 | *c*,-n*) ECHO_N= ECHO_C=' |
| 20578 | ' ECHO_T=' ' ;; |
| 20579 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 20580 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 20581 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20582 | |
| 20583 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20584 | as_expr=expr |
| 20585 | else |
| 20586 | as_expr=false |
| 20587 | fi |
| 20588 | |
| 20589 | rm -f conf$$ conf$$.exe conf$$.file |
| 20590 | echo >conf$$.file |
| 20591 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20592 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 20593 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 20594 | if test -f conf$$.exe; then |
| 20595 | # Don't use ln at all; we don't have any links |
| 20596 | as_ln_s='cp -p' |
| 20597 | else |
| 20598 | as_ln_s='ln -s' |
| 20599 | fi |
| 20600 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20601 | as_ln_s=ln |
| 20602 | else |
| 20603 | as_ln_s='cp -p' |
| 20604 | fi |
| 20605 | rm -f conf$$ conf$$.exe conf$$.file |
| 20606 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20607 | if mkdir -p . 2>/dev/null; then |
| 20608 | as_mkdir_p=: |
| 20609 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20610 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20611 | as_mkdir_p=false |
| 20612 | fi |
| 20613 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20614 | as_executable_p="test -f" |
| 20615 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20616 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20617 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20618 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20619 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20620 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20621 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20622 | |
| 20623 | # IFS |
| 20624 | # We need space, tab and new line, in precisely that order. |
| 20625 | as_nl=' |
| 20626 | ' |
| 20627 | IFS=" $as_nl" |
| 20628 | |
| 20629 | # CDPATH. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20630 | $as_unset CDPATH |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20631 | |
| 20632 | exec 6>&1 |
| 20633 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20634 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 20635 | # report actual input values of CONFIG_FILES etc. instead of their |
| 20636 | # values after options handling. Logging --version etc. is OK. |
| 20637 | exec 5>>config.log |
| 20638 | { |
| 20639 | echo |
| 20640 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20641 | ## Running $as_me. ## |
| 20642 | _ASBOX |
| 20643 | } >&5 |
| 20644 | cat >&5 <<_CSEOF |
| 20645 | |
Alexandre Julliard | 8087fca | 2004-09-14 22:11:36 +0000 | [diff] [blame] | 20646 | This file was extended by Wine $as_me 20040914, which was |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 20647 | generated by GNU Autoconf 2.59. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20648 | |
| 20649 | CONFIG_FILES = $CONFIG_FILES |
| 20650 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20651 | CONFIG_LINKS = $CONFIG_LINKS |
| 20652 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20653 | $ $0 $@ |
| 20654 | |
| 20655 | _CSEOF |
| 20656 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 20657 | echo >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20658 | _ACEOF |
| 20659 | |
| 20660 | # Files that config.status was made for. |
| 20661 | if test -n "$ac_config_files"; then |
| 20662 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 20663 | fi |
| 20664 | |
| 20665 | if test -n "$ac_config_headers"; then |
| 20666 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 20667 | fi |
| 20668 | |
| 20669 | if test -n "$ac_config_links"; then |
| 20670 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 20671 | fi |
| 20672 | |
| 20673 | if test -n "$ac_config_commands"; then |
| 20674 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 20675 | fi |
| 20676 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20677 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20678 | |
| 20679 | ac_cs_usage="\ |
| 20680 | \`$as_me' instantiates files from templates according to the |
| 20681 | current configuration. |
| 20682 | |
| 20683 | Usage: $0 [OPTIONS] [FILE]... |
| 20684 | |
| 20685 | -h, --help print this help, then exit |
| 20686 | -V, --version print version number, then exit |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20687 | -q, --quiet do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20688 | -d, --debug don't remove temporary files |
| 20689 | --recheck update $as_me by reconfiguring in the same conditions |
| 20690 | --file=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20691 | instantiate the configuration file FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20692 | --header=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20693 | instantiate the configuration header FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20694 | |
| 20695 | Configuration files: |
| 20696 | $config_files |
| 20697 | |
| 20698 | Configuration headers: |
| 20699 | $config_headers |
| 20700 | |
| 20701 | Configuration commands: |
| 20702 | $config_commands |
| 20703 | |
| 20704 | Report bugs to <bug-autoconf@gnu.org>." |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20705 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 20706 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20707 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20708 | ac_cs_version="\\ |
Alexandre Julliard | 8087fca | 2004-09-14 22:11:36 +0000 | [diff] [blame] | 20709 | Wine config.status 20040914 |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 20710 | configured by $0, generated by GNU Autoconf 2.59, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20711 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20712 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20713 | Copyright (C) 2003 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20714 | This config.status script is free software; the Free Software Foundation |
| 20715 | gives unlimited permission to copy, distribute and modify it." |
| 20716 | srcdir=$srcdir |
| 20717 | INSTALL="$INSTALL" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20718 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20719 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20720 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20721 | # If no file are specified by the user, then we need to provide default |
| 20722 | # value. By we need to know if files were specified by the user. |
| 20723 | ac_need_defaults=: |
| 20724 | while test $# != 0 |
| 20725 | do |
| 20726 | case $1 in |
| 20727 | --*=*) |
| 20728 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 20729 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20730 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20731 | ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20732 | -*) |
| 20733 | ac_option=$1 |
| 20734 | ac_optarg=$2 |
| 20735 | ac_shift=shift |
| 20736 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20737 | *) # This is not an option, so the user has probably given explicit |
| 20738 | # arguments. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20739 | ac_option=$1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20740 | ac_need_defaults=false;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20741 | esac |
| 20742 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20743 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20744 | # Handling of the options. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20745 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20746 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20747 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20748 | ac_cs_recheck=: ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20749 | --version | --vers* | -V ) |
| 20750 | echo "$ac_cs_version"; exit 0 ;; |
| 20751 | --he | --h) |
| 20752 | # Conflict between --help and --header |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20753 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20754 | Try \`$0 --help' for more information." >&5 |
| 20755 | echo "$as_me: error: ambiguous option: $1 |
| 20756 | Try \`$0 --help' for more information." >&2;} |
| 20757 | { (exit 1); exit 1; }; };; |
| 20758 | --help | --hel | -h ) |
| 20759 | echo "$ac_cs_usage"; exit 0 ;; |
| 20760 | --debug | --d* | -d ) |
| 20761 | debug=: ;; |
| 20762 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20763 | $ac_shift |
| 20764 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20765 | ac_need_defaults=false;; |
| 20766 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20767 | $ac_shift |
| 20768 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20769 | ac_need_defaults=false;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20770 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20771 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20772 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20773 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20774 | # This is an error. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20775 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20776 | Try \`$0 --help' for more information." >&5 |
| 20777 | echo "$as_me: error: unrecognized option: $1 |
| 20778 | Try \`$0 --help' for more information." >&2;} |
| 20779 | { (exit 1); exit 1; }; } ;; |
| 20780 | |
| 20781 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 20782 | |
| 20783 | esac |
| 20784 | shift |
| 20785 | done |
| 20786 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20787 | ac_configure_extra_args= |
| 20788 | |
| 20789 | if $ac_cs_silent; then |
| 20790 | exec 6>/dev/null |
| 20791 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20792 | fi |
| 20793 | |
| 20794 | _ACEOF |
| 20795 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20796 | if \$ac_cs_recheck; then |
| 20797 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20798 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 20799 | fi |
| 20800 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20801 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20802 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20803 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20804 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20805 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20806 | |
| 20807 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20808 | for ac_config_target in $ac_config_targets |
| 20809 | do |
| 20810 | case "$ac_config_target" in |
| 20811 | # Handling of arguments. |
| 20812 | "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
| 20813 | "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20814 | "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;; |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 20815 | "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20816 | "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
| 20817 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20818 | "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; |
| 20819 | "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20820 | "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;; |
Huw Davies | 20313b8 | 2004-09-27 20:39:40 +0000 | [diff] [blame] | 20821 | "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;; |
Christian Costa | 76b7787 | 2004-03-09 01:29:56 +0000 | [diff] [blame] | 20822 | "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;; |
Aric Stewart | 4bd374f | 2004-07-06 21:01:18 +0000 | [diff] [blame] | 20823 | "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20824 | "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; |
| 20825 | "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; |
Patrik Stridvall | d1447fa | 2002-11-19 00:47:12 +0000 | [diff] [blame] | 20826 | "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;; |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 20827 | "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;; |
Sami Nopanen | 9063cef | 2004-03-15 20:26:42 +0000 | [diff] [blame] | 20828 | "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;; |
Mike McCormack | b107b92 | 2003-10-31 03:38:07 +0000 | [diff] [blame] | 20829 | "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;; |
John K. Hohm | 34909c2 | 2002-05-14 21:50:56 +0000 | [diff] [blame] | 20830 | "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20831 | "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
Uwe Bonnes | 2c4fd42 | 2003-05-15 23:58:48 +0000 | [diff] [blame] | 20832 | "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20833 | "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;; |
| 20834 | "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
| 20835 | "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; |
Dmitry Timoshkov | 5a23a00 | 2003-01-02 19:34:14 +0000 | [diff] [blame] | 20836 | "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;; |
Sylvain Petreolle | 3a99d8b | 2002-06-25 23:23:03 +0000 | [diff] [blame] | 20837 | "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; |
Alexandre Julliard | aa1bdc4 | 2003-07-01 01:11:13 +0000 | [diff] [blame] | 20838 | "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;; |
Enrico Horn | eaae705 | 2003-01-24 01:08:15 +0000 | [diff] [blame] | 20839 | "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;; |
Ivan Leo Murray-Smith | 8f14eb0 | 2004-05-18 00:54:12 +0000 | [diff] [blame] | 20840 | "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;; |
Raphael Junqueira | e31ae92 | 2002-12-17 01:15:15 +0000 | [diff] [blame] | 20841 | "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;; |
Christian Costa | 7590fe5 | 2004-06-03 00:03:23 +0000 | [diff] [blame] | 20842 | "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;; |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 20843 | "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20844 | "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; |
| 20845 | "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; |
Sami Aario | f22a472 | 2003-11-18 00:12:00 +0000 | [diff] [blame] | 20846 | "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20847 | "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; |
| 20848 | "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; |
Ove Kaaven | d2d08f0 | 2002-06-14 00:39:44 +0000 | [diff] [blame] | 20849 | "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 20850 | "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;; |
| 20851 | "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;; |
| 20852 | "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;; |
| 20853 | "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;; |
| 20854 | "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;; |
| 20855 | "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;; |
| 20856 | "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;; |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 20857 | "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 20858 | "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20859 | "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; |
| 20860 | "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; |
Raphael Junqueira | 5f3f214 | 2004-04-07 20:39:00 +0000 | [diff] [blame] | 20861 | "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 20862 | "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20863 | "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; |
Francois Gouget | d523a45 | 2002-12-05 19:19:41 +0000 | [diff] [blame] | 20864 | "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;; |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 20865 | "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;; |
Raphael Junqueira | 033ae92 | 2004-04-16 00:26:14 +0000 | [diff] [blame] | 20866 | "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;; |
Robert Reif | cc02d95 | 2004-03-09 23:25:57 +0000 | [diff] [blame] | 20867 | "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;; |
| 20868 | "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;; |
Alexandre Julliard | c3eac43 | 2004-01-26 21:29:05 +0000 | [diff] [blame] | 20869 | "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20870 | "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; |
Patrik Stridvall | 928ecb4 | 2002-10-02 19:58:27 +0000 | [diff] [blame] | 20871 | "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20872 | "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 20873 | "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;; |
Krzysztof Foltman | 9bca690 | 2004-04-22 03:45:00 +0000 | [diff] [blame] | 20874 | "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;; |
Alexandre Julliard | 0a106bf | 2004-01-15 04:56:18 +0000 | [diff] [blame] | 20875 | "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20876 | "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; |
Alexandre Julliard | a21cf07 | 2004-02-20 01:18:43 +0000 | [diff] [blame] | 20877 | "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20878 | "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; |
| 20879 | "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 20880 | "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;; |
Juan Lang | e6f491a | 2004-01-07 01:08:55 +0000 | [diff] [blame] | 20881 | "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;; |
Alexandre Julliard | 5f6e3c8 | 2004-08-24 21:00:15 +0000 | [diff] [blame] | 20882 | "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20883 | "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20884 | "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20885 | "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;; |
| 20886 | "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; |
Jon Griffiths | 4ec0d3b | 2004-04-23 23:30:00 +0000 | [diff] [blame] | 20887 | "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;; |
Alexandre Julliard | 94a9d33 | 2004-08-04 18:33:06 +0000 | [diff] [blame] | 20888 | "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;; |
| 20889 | "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;; |
Alexandre Julliard | a21cf07 | 2004-02-20 01:18:43 +0000 | [diff] [blame] | 20890 | "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;; |
| 20891 | "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20892 | "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; |
| 20893 | "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;; |
Hidenori Takeshima | 0307f6d | 2002-03-23 20:18:11 +0000 | [diff] [blame] | 20894 | "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;; |
Eric Pouech | bed67fc | 2002-05-22 02:00:05 +0000 | [diff] [blame] | 20895 | "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;; |
Hidenori Takeshima | bcb9c46 | 2002-03-22 19:16:10 +0000 | [diff] [blame] | 20896 | "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;; |
Eric Pouech | b706b23 | 2002-06-04 17:53:46 +0000 | [diff] [blame] | 20897 | "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;; |
Robert Reif | 00cd2b2 | 2004-05-03 20:17:43 +0000 | [diff] [blame] | 20898 | "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;; |
Hans Leidekker | 5164757 | 2004-09-22 04:08:38 +0000 | [diff] [blame] | 20899 | "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20900 | "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
Mike McCormack | aa1c2a3 | 2003-09-08 19:32:14 +0000 | [diff] [blame] | 20901 | "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;; |
Mike McCormack | 6386edc | 2003-08-13 01:27:48 +0000 | [diff] [blame] | 20902 | "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20903 | "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; |
Mike McCormack | f6be044 | 2002-04-08 23:56:14 +0000 | [diff] [blame] | 20904 | "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20905 | "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
Alexandre Julliard | 7ba8fba | 2004-02-27 21:51:12 +0000 | [diff] [blame] | 20906 | "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20907 | "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; |
Uwe Bonnes | a768fa3 | 2002-10-30 23:49:03 +0000 | [diff] [blame] | 20908 | "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20909 | "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; |
Mike McCormack | d077946 | 2004-01-12 22:12:27 +0000 | [diff] [blame] | 20910 | "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;; |
Adam Gundy | 19a1513 | 2003-04-04 19:37:57 +0000 | [diff] [blame] | 20911 | "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;; |
Patrik Stridvall | 5c4420f | 2004-05-18 01:05:36 +0000 | [diff] [blame] | 20912 | "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;; |
Mike McCormack | 4cc64c8 | 2004-01-23 05:00:37 +0000 | [diff] [blame] | 20913 | "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20914 | "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;; |
André Johansen | 2123c13 | 2003-08-02 00:52:02 +0000 | [diff] [blame] | 20915 | "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20916 | "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
Andriy Palamarchuk | b812c90 | 2002-09-11 02:35:17 +0000 | [diff] [blame] | 20917 | "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;; |
Ulrich Czekalla | 9655a5f | 2003-12-30 22:19:30 +0000 | [diff] [blame] | 20918 | "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20919 | "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; |
Jon Griffiths | 1da2971 | 2002-08-15 22:08:40 +0000 | [diff] [blame] | 20920 | "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20921 | "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; |
| 20922 | "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; |
Mike McCormack | 06b8046 | 2004-08-11 00:17:52 +0000 | [diff] [blame] | 20923 | "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;; |
Eric Pouech | 5caccaf | 2003-06-23 03:43:00 +0000 | [diff] [blame] | 20924 | "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20925 | "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20926 | "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20927 | "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;; |
| 20928 | "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; |
| 20929 | "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; |
| 20930 | "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;; |
| 20931 | "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; |
| 20932 | "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; |
Stefan Leichter | 0d4fff4 | 2004-06-15 20:23:47 +0000 | [diff] [blame] | 20933 | "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20934 | "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
| 20935 | "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; |
Christian Costa | e3a288f | 2004-08-16 21:14:28 +0000 | [diff] [blame] | 20936 | "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20937 | "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
| 20938 | "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;; |
| 20939 | "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; |
Greg Turner | ac89cc2 | 2002-10-07 21:54:07 +0000 | [diff] [blame] | 20940 | "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;; |
Mike McCormack | b6de304 | 2004-02-13 20:47:07 +0000 | [diff] [blame] | 20941 | "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;; |
Michael Jung | b4b0c24 | 2004-07-30 00:06:54 +0000 | [diff] [blame] | 20942 | "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;; |
Juan Lang | 3ed89c3 | 2004-03-02 04:57:35 +0000 | [diff] [blame] | 20943 | "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20944 | "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; |
| 20945 | "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; |
| 20946 | "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; |
| 20947 | "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; |
Andriy Palamarchuk | 5b5bea0 | 2002-08-27 01:34:33 +0000 | [diff] [blame] | 20948 | "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20949 | "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; |
| 20950 | "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20951 | "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;; |
Patrik Stridvall | 4c692b9 | 2002-04-29 18:43:35 +0000 | [diff] [blame] | 20952 | "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20953 | "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
Francois Gouget | a896389 | 2004-08-19 19:31:20 +0000 | [diff] [blame] | 20954 | "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20955 | "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
| 20956 | "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;; |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 20957 | "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;; |
Alexandre Julliard | 46321f4 | 2003-11-27 01:10:26 +0000 | [diff] [blame] | 20958 | "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20959 | "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
| 20960 | "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; |
Patrik Stridvall | 9398d9c | 2002-11-12 01:13:10 +0000 | [diff] [blame] | 20961 | "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20962 | "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20963 | "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;; |
Alexandre Julliard | c3eac43 | 2004-01-26 21:29:05 +0000 | [diff] [blame] | 20964 | "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;; |
Kevin Koltzau | 0af4fb9 | 2003-10-04 03:48:11 +0000 | [diff] [blame] | 20965 | "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;; |
Alexandre Julliard | a21cf07 | 2004-02-20 01:18:43 +0000 | [diff] [blame] | 20966 | "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;; |
Sami Aario | 78f1224 | 2004-04-07 19:41:21 +0000 | [diff] [blame] | 20967 | "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20968 | "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; |
Stefan Leichter | 09733db | 2004-04-05 22:54:03 +0000 | [diff] [blame] | 20969 | "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;; |
Alexandre Julliard | 6c8147b | 2004-02-21 04:13:56 +0000 | [diff] [blame] | 20970 | "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;; |
Juan Lang | e9ed2f3 | 2004-03-01 23:35:25 +0000 | [diff] [blame] | 20971 | "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;; |
Alexandre Julliard | a21cf07 | 2004-02-20 01:18:43 +0000 | [diff] [blame] | 20972 | "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;; |
| 20973 | "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;; |
| 20974 | "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20975 | "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;; |
| 20976 | "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;; |
Alexandre Julliard | c3eac43 | 2004-01-26 21:29:05 +0000 | [diff] [blame] | 20977 | "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20978 | "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; |
| 20979 | "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;; |
| 20980 | "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20981 | "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20982 | "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; |
| 20983 | "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; |
| 20984 | "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;; |
| 20985 | "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;; |
| 20986 | "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;; |
| 20987 | "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;; |
| 20988 | "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;; |
| 20989 | "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;; |
Francois Gouget | 4ce2837 | 2002-11-04 23:47:49 +0000 | [diff] [blame] | 20990 | "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20991 | "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;; |
Eric Pouech | a120ce0 | 2002-06-28 17:40:16 +0000 | [diff] [blame] | 20992 | "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 20993 | "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 20994 | "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;; |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 20995 | "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;; |
Alexandre Julliard | c3eac43 | 2004-01-26 21:29:05 +0000 | [diff] [blame] | 20996 | "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20997 | "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
| 20998 | "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;; |
| 20999 | "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 21000 | "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21001 | "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;; |
Stefan Leichter | 88b1106 | 2003-01-15 00:50:48 +0000 | [diff] [blame] | 21002 | "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;; |
Patrik Stridvall | 5caddc7 | 2002-12-17 01:49:16 +0000 | [diff] [blame] | 21003 | "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21004 | "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; |
| 21005 | "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; |
| 21006 | "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; |
| 21007 | "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;; |
| 21008 | "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 21009 | "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21010 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
Alexandre Julliard | 6a9fe36 | 2003-03-19 22:09:16 +0000 | [diff] [blame] | 21011 | "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; |
| 21012 | "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;; |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 21013 | "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;; |
Alexandre Julliard | 2d1c790 | 2003-03-22 20:40:48 +0000 | [diff] [blame] | 21014 | "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;; |
Alexandre Julliard | e1a9b10 | 2003-05-01 03:16:21 +0000 | [diff] [blame] | 21015 | "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;; |
Alexandre Julliard | 357c740 | 2003-11-06 01:17:56 +0000 | [diff] [blame] | 21016 | "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21017 | "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; |
| 21018 | "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;; |
| 21019 | "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; |
| 21020 | "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
| 21021 | "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; |
Alexandre Julliard | acfda14 | 2002-05-20 19:18:16 +0000 | [diff] [blame] | 21022 | "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; |
Vincent BĂ©ron | 3496689 | 2004-07-19 19:44:07 +0000 | [diff] [blame] | 21023 | "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21024 | "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21025 | "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
Andriy Palamarchuk | 4e2e176 | 2002-04-11 23:58:40 +0000 | [diff] [blame] | 21026 | "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; |
Andriy Palamarchuk | 2f0d85c | 2002-04-29 23:47:39 +0000 | [diff] [blame] | 21027 | "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; |
Alexandre Julliard | d77294a | 2002-12-02 21:17:04 +0000 | [diff] [blame] | 21028 | "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;; |
Alberto Massari | 15e8e0a | 2002-11-15 01:41:20 +0000 | [diff] [blame] | 21029 | "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;; |
Dan Kegel | ba02ae4 | 2003-01-21 20:14:36 +0000 | [diff] [blame] | 21030 | "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;; |
Eric Pouech | d6b348f | 2004-03-23 01:19:54 +0000 | [diff] [blame] | 21031 | "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21032 | "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; |
| 21033 | "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; |
| 21034 | "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; |
Shachar Shemesh | 175d059 | 2003-01-04 02:52:05 +0000 | [diff] [blame] | 21035 | "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;; |
Chris Morgan | d888d36 | 2004-01-06 20:49:58 +0000 | [diff] [blame] | 21036 | "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;; |
Dimitrie O. Paun | 82ce2cc | 2003-03-31 19:41:55 +0000 | [diff] [blame] | 21037 | "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21038 | "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; |
Alexandre Julliard | f264bd3 | 2002-09-13 17:54:27 +0000 | [diff] [blame] | 21039 | "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;; |
Alexandre Julliard | 65a4216 | 2002-06-04 21:29:40 +0000 | [diff] [blame] | 21040 | "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;; |
Mike McCormack | 88090b4 | 2003-05-21 18:50:53 +0000 | [diff] [blame] | 21041 | "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21042 | "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; |
Mike Wetherell | 0d8a9fa | 2002-05-05 20:31:54 +0000 | [diff] [blame] | 21043 | "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; |
Alexandre Julliard | 9f71bd9 | 2003-12-04 02:01:39 +0000 | [diff] [blame] | 21044 | "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;; |
Alexandre Julliard | fedc411 | 2003-04-27 00:47:58 +0000 | [diff] [blame] | 21045 | "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21046 | "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; |
| 21047 | "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21048 | "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
| 21049 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
Alexandre Julliard | 7d4ee77 | 2002-07-16 03:20:45 +0000 | [diff] [blame] | 21050 | "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21051 | "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;; |
| 21052 | "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
| 21053 | "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; |
Alexandre Julliard | 280661c | 2003-09-11 21:27:58 +0000 | [diff] [blame] | 21054 | "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21055 | "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; |
| 21056 | "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21057 | "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;; |
| 21058 | "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;; |
| 21059 | "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;; |
| 21060 | "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;; |
| 21061 | "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;; |
| 21062 | "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;; |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 21063 | "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;; |
| 21064 | "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21065 | "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
| 21066 | "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;; |
| 21067 | "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
| 21068 | "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;; |
| 21069 | "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 21070 | "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 21071 | "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 21072 | "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21073 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21074 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21075 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21076 | { (exit 1); exit 1; }; };; |
| 21077 | esac |
| 21078 | done |
| 21079 | |
| 21080 | # If the user did not use the arguments to specify the items to instantiate, |
| 21081 | # then the envvar interface is used. Set only those that are not. |
| 21082 | # We use the long form for the default assignment because of an extremely |
| 21083 | # bizarre bug on SunOS 4.1.3. |
| 21084 | if $ac_need_defaults; then |
| 21085 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21086 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 21087 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 21088 | fi |
| 21089 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21090 | # Have a temporary directory for convenience. Make it in the build tree |
| 21091 | # simply because there is no reason to put it here, and in addition, |
| 21092 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21093 | # Create a temporary directory, and hook for its removal unless debugging. |
| 21094 | $debug || |
| 21095 | { |
| 21096 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 21097 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 21098 | } |
| 21099 | |
| 21100 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21101 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21102 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21103 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21104 | test -n "$tmp" && test -d "$tmp" |
| 21105 | } || |
| 21106 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21107 | tmp=./confstat$$-$RANDOM |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21108 | (umask 077 && mkdir $tmp) |
| 21109 | } || |
| 21110 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21111 | echo "$me: cannot create a temporary directory in ." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21112 | { (exit 1); exit 1; } |
| 21113 | } |
| 21114 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21115 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21116 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21117 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21118 | |
| 21119 | # |
| 21120 | # CONFIG_FILES section. |
| 21121 | # |
| 21122 | |
| 21123 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21124 | # This happens for instance when ./config.status config.h |
| 21125 | if test -n "\$CONFIG_FILES"; then |
| 21126 | # Protect against being on the right side of a sed subst in config.status. |
| 21127 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 21128 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 21129 | s,@SHELL@,$SHELL,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21130 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 21131 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 21132 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 21133 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 21134 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 21135 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21136 | s,@exec_prefix@,$exec_prefix,;t t |
| 21137 | s,@prefix@,$prefix,;t t |
| 21138 | s,@program_transform_name@,$program_transform_name,;t t |
| 21139 | s,@bindir@,$bindir,;t t |
| 21140 | s,@sbindir@,$sbindir,;t t |
| 21141 | s,@libexecdir@,$libexecdir,;t t |
| 21142 | s,@datadir@,$datadir,;t t |
| 21143 | s,@sysconfdir@,$sysconfdir,;t t |
| 21144 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 21145 | s,@localstatedir@,$localstatedir,;t t |
| 21146 | s,@libdir@,$libdir,;t t |
| 21147 | s,@includedir@,$includedir,;t t |
| 21148 | s,@oldincludedir@,$oldincludedir,;t t |
| 21149 | s,@infodir@,$infodir,;t t |
| 21150 | s,@mandir@,$mandir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21151 | s,@build_alias@,$build_alias,;t t |
| 21152 | s,@host_alias@,$host_alias,;t t |
| 21153 | s,@target_alias@,$target_alias,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21154 | s,@DEFS@,$DEFS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21155 | s,@ECHO_C@,$ECHO_C,;t t |
| 21156 | s,@ECHO_N@,$ECHO_N,;t t |
| 21157 | s,@ECHO_T@,$ECHO_T,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21158 | s,@LIBS@,$LIBS,;t t |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 21159 | s,@WIN16_FILES@,$WIN16_FILES,;t t |
| 21160 | s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21161 | s,@build@,$build,;t t |
| 21162 | s,@build_cpu@,$build_cpu,;t t |
| 21163 | s,@build_vendor@,$build_vendor,;t t |
| 21164 | s,@build_os@,$build_os,;t t |
| 21165 | s,@host@,$host,;t t |
| 21166 | s,@host_cpu@,$host_cpu,;t t |
| 21167 | s,@host_vendor@,$host_vendor,;t t |
| 21168 | s,@host_os@,$host_os,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21169 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 21170 | s,@CC@,$CC,;t t |
| 21171 | s,@CFLAGS@,$CFLAGS,;t t |
| 21172 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 21173 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 21174 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 21175 | s,@EXEEXT@,$EXEEXT,;t t |
| 21176 | s,@OBJEXT@,$OBJEXT,;t t |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 21177 | s,@CXX@,$CXX,;t t |
| 21178 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 21179 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 21180 | s,@CPPBIN@,$CPPBIN,;t t |
| 21181 | s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 21182 | s,@TOOLSDIR@,$TOOLSDIR,;t t |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 21183 | s,@CPP@,$CPP,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21184 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 21185 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 21186 | s,@X_LIBS@,$X_LIBS,;t t |
| 21187 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21188 | s,@LEX@,$LEX,;t t |
| 21189 | s,@LEXLIB@,$LEXLIB,;t t |
| 21190 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21191 | s,@XLEX@,$XLEX,;t t |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 21192 | s,@BISON@,$BISON,;t t |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 21193 | s,@AS@,$AS,;t t |
| 21194 | s,@ac_ct_AS@,$ac_ct_AS,;t t |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 21195 | s,@LD@,$LD,;t t |
| 21196 | s,@ac_ct_LD@,$ac_ct_LD,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 21197 | s,@AR@,$AR,;t t |
| 21198 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21199 | s,@RANLIB@,$RANLIB,;t t |
| 21200 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 21201 | s,@STRIP@,$STRIP,;t t |
| 21202 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 21203 | s,@WINDRES@,$WINDRES,;t t |
| 21204 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21205 | s,@LN_S@,$LN_S,;t t |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 21206 | s,@LN@,$LN,;t t |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 21207 | s,@EGREP@,$EGREP,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21208 | s,@LDCONFIG@,$LDCONFIG,;t t |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21209 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 21210 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 21211 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21212 | s,@LINT@,$LINT,;t t |
| 21213 | s,@LINTFLAGS@,$LINTFLAGS,;t t |
Vincent BĂ©ron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 21214 | s,@DB2HTML@,$DB2HTML,;t t |
| 21215 | s,@DB2PDF@,$DB2PDF,;t t |
| 21216 | s,@DB2PS@,$DB2PS,;t t |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 21217 | s,@DB2TXT@,$DB2TXT,;t t |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 21218 | s,@FONTFORGE@,$FONTFORGE,;t t |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 21219 | s,@LIBPTHREAD@,$LIBPTHREAD,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21220 | s,@XLIB@,$XLIB,;t t |
| 21221 | s,@XFILES@,$XFILES,;t t |
| 21222 | s,@OPENGLFILES@,$OPENGLFILES,;t t |
| 21223 | s,@GLU32FILES@,$GLU32FILES,;t t |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 21224 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 21225 | s,@GLUT_LIBS@,$GLUT_LIBS,;t t |
| 21226 | s,@GLUT32FILES@,$GLUT32FILES,;t t |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 21227 | s,@NASLIBS@,$NASLIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21228 | s,@CURSESLIBS@,$CURSESLIBS,;t t |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 21229 | s,@sane_devel@,$sane_devel,;t t |
| 21230 | s,@SANELIBS@,$SANELIBS,;t t |
| 21231 | s,@SANEINCL@,$SANEINCL,;t t |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 21232 | s,@ICULIBS@,$ICULIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21233 | s,@ft_devel@,$ft_devel,;t t |
| 21234 | s,@ft_devel2@,$ft_devel2,;t t |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 21235 | s,@FREETYPELIBS@,$FREETYPELIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21236 | s,@FREETYPEINCL@,$FREETYPEINCL,;t t |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 21237 | s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 21238 | s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t |
| 21239 | s,@ARTSLIBS@,$ARTSLIBS,;t t |
| 21240 | s,@ARTSINCL@,$ARTSINCL,;t t |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 21241 | s,@ALSALIBS@,$ALSALIBS,;t t |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 21242 | s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t |
Hans Leidekker | 5164757 | 2004-09-22 04:08:38 +0000 | [diff] [blame] | 21243 | s,@LCMSLIBS@,$LCMSLIBS,;t t |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 21244 | s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 21245 | s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 21246 | s,@DLLEXT@,$DLLEXT,;t t |
| 21247 | s,@DLLFLAGS@,$DLLFLAGS,;t t |
| 21248 | s,@DLLIBS@,$DLLIBS,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 21249 | s,@LDSHARED@,$LDSHARED,;t t |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 21250 | s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 21251 | s,@LIBEXT@,$LIBEXT,;t t |
| 21252 | s,@IMPLIBEXT@,$IMPLIBEXT,;t t |
| 21253 | s,@DLLTOOL@,$DLLTOOL,;t t |
| 21254 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21255 | s,@DLLWRAP@,$DLLWRAP,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 21256 | s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 21257 | s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t |
Emmanuel Maillard | 46718f8 | 2004-07-22 19:48:41 +0000 | [diff] [blame] | 21258 | s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t |
Emmanuel Maillard | 2300ce6 | 2004-08-19 01:20:45 +0000 | [diff] [blame] | 21259 | s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t |
| 21260 | s,@IOKITLIB@,$IOKITLIB,;t t |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 21261 | s,@CROSSTEST@,$CROSSTEST,;t t |
| 21262 | s,@CROSSCC@,$CROSSCC,;t t |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 21263 | s,@CROSSWINDRES@,$CROSSWINDRES,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21264 | s,@LDPATH@,$LDPATH,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 21265 | s,@CRTLIBS@,$CRTLIBS,;t t |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 21266 | s,@SOCKETLIBS@,$SOCKETLIBS,;t t |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 21267 | s,@WINE_BINARIES@,$WINE_BINARIES,;t t |
| 21268 | s,@MAIN_BINARY@,$MAIN_BINARY,;t t |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 21269 | s,@LDD@,$LDD,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21270 | s,@ALLOCA@,$ALLOCA,;t t |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21271 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 21272 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21273 | /@MAKE_RULES@/r $MAKE_RULES |
| 21274 | s,@MAKE_RULES@,,;t t |
| 21275 | /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES |
| 21276 | s,@MAKE_DLL_RULES@,,;t t |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 21277 | /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES |
| 21278 | s,@MAKE_TEST_RULES@,,;t t |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 21279 | /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES |
| 21280 | s,@MAKE_LIB_RULES@,,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21281 | /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES |
| 21282 | s,@MAKE_PROG_RULES@,,;t t |
| 21283 | CEOF |
| 21284 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21285 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21286 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21287 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21288 | # Split the substitutions into bite-sized pieces for seds with |
| 21289 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 21290 | ac_max_sed_lines=48 |
| 21291 | ac_sed_frag=1 # Number of current file. |
| 21292 | ac_beg=1 # First line for current file. |
| 21293 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 21294 | ac_more_lines=: |
| 21295 | ac_sed_cmds= |
| 21296 | while $ac_more_lines; do |
| 21297 | if test $ac_beg -gt 1; then |
| 21298 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21299 | else |
| 21300 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21301 | fi |
| 21302 | if test ! -s $tmp/subs.frag; then |
| 21303 | ac_more_lines=false |
| 21304 | else |
| 21305 | # The purpose of the label and of the branching condition is to |
| 21306 | # speed up the sed processing (if there are no `@' at all, there |
| 21307 | # is no need to browse any of the substitutions). |
| 21308 | # These are the two extra sed commands mentioned above. |
| 21309 | (echo ':t |
| 21310 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 21311 | if test -z "$ac_sed_cmds"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21312 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21313 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21314 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21315 | fi |
| 21316 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 21317 | ac_beg=$ac_end |
| 21318 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 21319 | fi |
| 21320 | done |
| 21321 | if test -z "$ac_sed_cmds"; then |
| 21322 | ac_sed_cmds=cat |
| 21323 | fi |
| 21324 | fi # test -n "$CONFIG_FILES" |
| 21325 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21326 | _ACEOF |
| 21327 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21328 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 21329 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 21330 | case $ac_file in |
| 21331 | - | *:- | *:-:* ) # input from stdin |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21332 | cat >$tmp/stdin |
| 21333 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21334 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21335 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21336 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21337 | * ) ac_file_in=$ac_file.in ;; |
| 21338 | esac |
| 21339 | |
| 21340 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21341 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21342 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21343 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21344 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21345 | X"$ac_file" : 'X\(/\)' \| \ |
| 21346 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21347 | echo X"$ac_file" | |
| 21348 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21349 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21350 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21351 | /^X\(\/\).*/{ s//\1/; q; } |
| 21352 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21353 | { if $as_mkdir_p; then |
| 21354 | mkdir -p "$ac_dir" |
| 21355 | else |
| 21356 | as_dir="$ac_dir" |
| 21357 | as_dirs= |
| 21358 | while test ! -d "$as_dir"; do |
| 21359 | as_dirs="$as_dir $as_dirs" |
| 21360 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21361 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21362 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21363 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21364 | X"$as_dir" : 'X\(/\)' \| \ |
| 21365 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21366 | echo X"$as_dir" | |
| 21367 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21368 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21369 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21370 | /^X\(\/\).*/{ s//\1/; q; } |
| 21371 | s/.*/./; q'` |
| 21372 | done |
| 21373 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21374 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21375 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21376 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21377 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21378 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21379 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21380 | if test "$ac_dir" != .; then |
| 21381 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 21382 | # A "../" for each directory in $ac_dir_suffix. |
| 21383 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 21384 | else |
| 21385 | ac_dir_suffix= ac_top_builddir= |
| 21386 | fi |
| 21387 | |
| 21388 | case $srcdir in |
| 21389 | .) # No --srcdir option. We are building in place. |
| 21390 | ac_srcdir=. |
| 21391 | if test -z "$ac_top_builddir"; then |
| 21392 | ac_top_srcdir=. |
| 21393 | else |
| 21394 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 21395 | fi ;; |
| 21396 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 21397 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 21398 | ac_top_srcdir=$srcdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21399 | *) # Relative path. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21400 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 21401 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 21402 | esac |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21403 | |
| 21404 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 21405 | # the directories may not exist. |
| 21406 | case `pwd` in |
| 21407 | .) ac_abs_builddir="$ac_dir";; |
| 21408 | *) |
| 21409 | case "$ac_dir" in |
| 21410 | .) ac_abs_builddir=`pwd`;; |
| 21411 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 21412 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 21413 | esac;; |
| 21414 | esac |
| 21415 | case $ac_abs_builddir in |
| 21416 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21417 | *) |
| 21418 | case ${ac_top_builddir}. in |
| 21419 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 21420 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21421 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 21422 | esac;; |
| 21423 | esac |
| 21424 | case $ac_abs_builddir in |
| 21425 | .) ac_abs_srcdir=$ac_srcdir;; |
| 21426 | *) |
| 21427 | case $ac_srcdir in |
| 21428 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 21429 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 21430 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 21431 | esac;; |
| 21432 | esac |
| 21433 | case $ac_abs_builddir in |
| 21434 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21435 | *) |
| 21436 | case $ac_top_srcdir in |
| 21437 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 21438 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21439 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 21440 | esac;; |
| 21441 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21442 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21443 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21444 | case $INSTALL in |
| 21445 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21446 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 21447 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 21448 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21449 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21450 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21451 | # /* config.h. Generated by config.status. */ |
| 21452 | if test x"$ac_file" = x-; then |
| 21453 | configure_input= |
| 21454 | else |
| 21455 | configure_input="$ac_file. " |
| 21456 | fi |
| 21457 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21458 | sed 's,.*/,,'` by configure." |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 21459 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21460 | # First look for the input files in the build tree, otherwise in the |
| 21461 | # src tree. |
| 21462 | ac_file_inputs=`IFS=: |
| 21463 | for f in $ac_file_in; do |
| 21464 | case $f in |
| 21465 | -) echo $tmp/stdin ;; |
| 21466 | [\\/$]*) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21467 | # Absolute (can't be DOS-style, as IFS=:) |
| 21468 | 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] | 21469 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21470 | { (exit 1); exit 1; }; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21471 | echo "$f";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21472 | *) # Relative |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21473 | if test -f "$f"; then |
| 21474 | # Build tree |
| 21475 | echo "$f" |
| 21476 | elif test -f "$srcdir/$f"; then |
| 21477 | # Source tree |
| 21478 | echo "$srcdir/$f" |
| 21479 | else |
| 21480 | # /dev/null tree |
| 21481 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21482 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21483 | { (exit 1); exit 1; }; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21484 | fi;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21485 | esac |
| 21486 | done` || { (exit 1); exit 1; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21487 | |
| 21488 | if test x"$ac_file" != x-; then |
| 21489 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21490 | echo "$as_me: creating $ac_file" >&6;} |
| 21491 | rm -f "$ac_file" |
| 21492 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21493 | _ACEOF |
| 21494 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21495 | sed "$ac_vpsub |
| 21496 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21497 | _ACEOF |
| 21498 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21499 | :t |
| 21500 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 21501 | s,@configure_input@,$configure_input,;t t |
| 21502 | s,@srcdir@,$ac_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21503 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21504 | s,@top_srcdir@,$ac_top_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21505 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 21506 | s,@builddir@,$ac_builddir,;t t |
| 21507 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 21508 | s,@top_builddir@,$ac_top_builddir,;t t |
| 21509 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21510 | s,@INSTALL@,$ac_INSTALL,;t t |
| 21511 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 21512 | rm -f $tmp/stdin |
| 21513 | if test x"$ac_file" != x-; then |
| 21514 | mv $tmp/out $ac_file |
| 21515 | else |
| 21516 | cat $tmp/out |
| 21517 | rm -f $tmp/out |
| 21518 | fi |
| 21519 | |
| 21520 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21521 | _ACEOF |
| 21522 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21523 | |
| 21524 | # |
| 21525 | # CONFIG_HEADER section. |
| 21526 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21527 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21528 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 21529 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 21530 | # |
| 21531 | # ac_d sets the value in "#define NAME VALUE" lines. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21532 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 21533 | ac_dB='[ ].*$,\1#\2' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21534 | ac_dC=' ' |
| 21535 | ac_dD=',;t' |
| 21536 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21537 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21538 | ac_uB='$,\1#\2define\3' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21539 | ac_uC=' ' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21540 | ac_uD=',;t' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21541 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21542 | 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] | 21543 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21544 | case $ac_file in |
| 21545 | - | *:- | *:-:* ) # input from stdin |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21546 | cat >$tmp/stdin |
| 21547 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21548 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21549 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21550 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21551 | * ) ac_file_in=$ac_file.in ;; |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21552 | esac |
| 21553 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21554 | 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] | 21555 | echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21556 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21557 | # First look for the input files in the build tree, otherwise in the |
| 21558 | # src tree. |
| 21559 | ac_file_inputs=`IFS=: |
| 21560 | for f in $ac_file_in; do |
| 21561 | case $f in |
| 21562 | -) echo $tmp/stdin ;; |
| 21563 | [\\/$]*) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21564 | # Absolute (can't be DOS-style, as IFS=:) |
| 21565 | 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] | 21566 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21567 | { (exit 1); exit 1; }; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21568 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 21569 | echo "$f";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21570 | *) # Relative |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21571 | if test -f "$f"; then |
| 21572 | # Build tree |
| 21573 | echo "$f" |
| 21574 | elif test -f "$srcdir/$f"; then |
| 21575 | # Source tree |
| 21576 | echo "$srcdir/$f" |
| 21577 | else |
| 21578 | # /dev/null tree |
| 21579 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21580 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21581 | { (exit 1); exit 1; }; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21582 | fi;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21583 | esac |
| 21584 | done` || { (exit 1); exit 1; } |
| 21585 | # Remove the trailing spaces. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21586 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21587 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21588 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21589 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21590 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 21591 | # `conftest.undefs', that substitutes the proper values into |
| 21592 | # config.h.in to produce config.h. The first handles `#define' |
| 21593 | # templates, and the second `#undef' templates. |
| 21594 | # And first: Protect against being on the right side of a sed subst in |
| 21595 | # config.status. Protect against being in an unquoted here document |
| 21596 | # in config.status. |
| 21597 | rm -f conftest.defines conftest.undefs |
| 21598 | # Using a here document instead of a string reduces the quoting nightmare. |
| 21599 | # Putting comments in sed scripts is not portable. |
| 21600 | # |
| 21601 | # `end' is used to avoid that the second main sed command (meant for |
| 21602 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 21603 | # See the Autoconf documentation for `clear'. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21604 | cat >confdef2sed.sed <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21605 | s/[\\&,]/\\&/g |
| 21606 | s,[\\$`],\\&,g |
| 21607 | t clear |
| 21608 | : clear |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21609 | 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] | 21610 | t end |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21611 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21612 | : end |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21613 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21614 | # If some macros were called several times there might be several times |
| 21615 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 21616 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 21617 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 21618 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 21619 | rm -f confdef2sed.sed |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21620 | |
| 21621 | # This sed command replaces #undef with comments. This is necessary, for |
| 21622 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21623 | # on some systems where configure will not decide to define it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21624 | cat >>conftest.undefs <<\_ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21625 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21626 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21627 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21628 | # Break up conftest.defines because some shells have a limit on the size |
| 21629 | # of here documents, and old seds have small limits too (100 cmds). |
| 21630 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21631 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21632 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 21633 | echo ' :' >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21634 | rm -f conftest.tail |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21635 | while grep . conftest.defines >/dev/null |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21636 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21637 | # Write a limited-size here document to $tmp/defines.sed. |
| 21638 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 21639 | # Speed up: don't consider the non `#define' lines. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21640 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21641 | # Work around the forget-to-reset-the-flag bug. |
| 21642 | echo 't clr' >>$CONFIG_STATUS |
| 21643 | echo ': clr' >>$CONFIG_STATUS |
| 21644 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21645 | echo 'CEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21646 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 21647 | rm -f $tmp/in |
| 21648 | mv $tmp/out $tmp/in |
| 21649 | ' >>$CONFIG_STATUS |
| 21650 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 21651 | rm -f conftest.defines |
| 21652 | mv conftest.tail conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21653 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21654 | rm -f conftest.defines |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21655 | echo ' fi # grep' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21656 | echo >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21657 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21658 | # Break up conftest.undefs because some shells have a limit on the size |
| 21659 | # of here documents, and old seds have small limits too (100 cmds). |
| 21660 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 21661 | rm -f conftest.tail |
| 21662 | while grep . conftest.undefs >/dev/null |
| 21663 | do |
| 21664 | # Write a limited-size here document to $tmp/undefs.sed. |
| 21665 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 21666 | # Speed up: don't consider the non `#undef' |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21667 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21668 | # Work around the forget-to-reset-the-flag bug. |
| 21669 | echo 't clr' >>$CONFIG_STATUS |
| 21670 | echo ': clr' >>$CONFIG_STATUS |
| 21671 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 21672 | echo 'CEOF |
| 21673 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 21674 | rm -f $tmp/in |
| 21675 | mv $tmp/out $tmp/in |
| 21676 | ' >>$CONFIG_STATUS |
| 21677 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 21678 | rm -f conftest.undefs |
| 21679 | mv conftest.tail conftest.undefs |
| 21680 | done |
| 21681 | rm -f conftest.undefs |
| 21682 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21683 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21684 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21685 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21686 | # /* config.h. Generated by config.status. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21687 | if test x"$ac_file" = x-; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21688 | echo "/* Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21689 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21690 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21691 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21692 | cat $tmp/in >>$tmp/config.h |
| 21693 | rm -f $tmp/in |
| 21694 | if test x"$ac_file" != x-; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21695 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21696 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21697 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 21698 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21699 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21700 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21701 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21702 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21703 | X"$ac_file" : 'X\(/\)' \| \ |
| 21704 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21705 | echo X"$ac_file" | |
| 21706 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21707 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21708 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21709 | /^X\(\/\).*/{ s//\1/; q; } |
| 21710 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21711 | { if $as_mkdir_p; then |
| 21712 | mkdir -p "$ac_dir" |
| 21713 | else |
| 21714 | as_dir="$ac_dir" |
| 21715 | as_dirs= |
| 21716 | while test ! -d "$as_dir"; do |
| 21717 | as_dirs="$as_dir $as_dirs" |
| 21718 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21719 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21720 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21721 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21722 | X"$as_dir" : 'X\(/\)' \| \ |
| 21723 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21724 | echo X"$as_dir" | |
| 21725 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21726 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21727 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21728 | /^X\(\/\).*/{ s//\1/; q; } |
| 21729 | s/.*/./; q'` |
| 21730 | done |
| 21731 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21732 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21733 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21734 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21735 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21736 | rm -f $ac_file |
| 21737 | mv $tmp/config.h $ac_file |
| 21738 | fi |
| 21739 | else |
| 21740 | cat $tmp/config.h |
| 21741 | rm -f $tmp/config.h |
| 21742 | fi |
| 21743 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21744 | _ACEOF |
| 21745 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21746 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21747 | # |
| 21748 | # CONFIG_COMMANDS section. |
| 21749 | # |
| 21750 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 21751 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 21752 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21753 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 21754 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21755 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 21756 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 21757 | X"$ac_dest" : 'X\(/\)' \| \ |
| 21758 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21759 | echo X"$ac_dest" | |
| 21760 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21761 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21762 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21763 | /^X\(\/\).*/{ s//\1/; q; } |
| 21764 | s/.*/./; q'` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21765 | { if $as_mkdir_p; then |
| 21766 | mkdir -p "$ac_dir" |
| 21767 | else |
| 21768 | as_dir="$ac_dir" |
| 21769 | as_dirs= |
| 21770 | while test ! -d "$as_dir"; do |
| 21771 | as_dirs="$as_dir $as_dirs" |
| 21772 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21773 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21774 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21775 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21776 | X"$as_dir" : 'X\(/\)' \| \ |
| 21777 | . : '\(.\)' 2>/dev/null || |
| 21778 | echo X"$as_dir" | |
| 21779 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21780 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21781 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21782 | /^X\(\/\).*/{ s//\1/; q; } |
| 21783 | s/.*/./; q'` |
| 21784 | done |
| 21785 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21786 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21787 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21788 | { (exit 1); exit 1; }; }; } |
| 21789 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21790 | ac_builddir=. |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 21791 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21792 | if test "$ac_dir" != .; then |
| 21793 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 21794 | # A "../" for each directory in $ac_dir_suffix. |
| 21795 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21796 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21797 | ac_dir_suffix= ac_top_builddir= |
| 21798 | fi |
| 21799 | |
| 21800 | case $srcdir in |
| 21801 | .) # No --srcdir option. We are building in place. |
| 21802 | ac_srcdir=. |
| 21803 | if test -z "$ac_top_builddir"; then |
| 21804 | ac_top_srcdir=. |
| 21805 | else |
| 21806 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 21807 | fi ;; |
| 21808 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 21809 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 21810 | ac_top_srcdir=$srcdir ;; |
| 21811 | *) # Relative path. |
| 21812 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 21813 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 21814 | esac |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21815 | |
| 21816 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 21817 | # the directories may not exist. |
| 21818 | case `pwd` in |
| 21819 | .) ac_abs_builddir="$ac_dir";; |
| 21820 | *) |
| 21821 | case "$ac_dir" in |
| 21822 | .) ac_abs_builddir=`pwd`;; |
| 21823 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 21824 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 21825 | esac;; |
| 21826 | esac |
| 21827 | case $ac_abs_builddir in |
| 21828 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21829 | *) |
| 21830 | case ${ac_top_builddir}. in |
| 21831 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 21832 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21833 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 21834 | esac;; |
| 21835 | esac |
| 21836 | case $ac_abs_builddir in |
| 21837 | .) ac_abs_srcdir=$ac_srcdir;; |
| 21838 | *) |
| 21839 | case $ac_srcdir in |
| 21840 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 21841 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 21842 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 21843 | esac;; |
| 21844 | esac |
| 21845 | case $ac_abs_builddir in |
| 21846 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21847 | *) |
| 21848 | case $ac_top_srcdir in |
| 21849 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 21850 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21851 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 21852 | esac;; |
| 21853 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21854 | |
| 21855 | |
| 21856 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 21857 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 21858 | case $ac_dest in |
| 21859 | dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5 |
| 21860 | echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;; |
| 21861 | dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5 |
| 21862 | echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;; |
| 21863 | dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5 |
| 21864 | echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;; |
| 21865 | dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5 |
| 21866 | echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;; |
| 21867 | dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5 |
| 21868 | echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;; |
| 21869 | dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5 |
| 21870 | echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21871 | dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5 |
| 21872 | echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;; |
| 21873 | dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5 |
| 21874 | echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21875 | dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5 |
| 21876 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21877 | dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5 |
| 21878 | echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;; |
| 21879 | dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
| 21880 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21881 | dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5 |
| 21882 | echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;; |
| 21883 | include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
| 21884 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 21885 | misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5 |
| 21886 | echo "$as_me: creating misc" >&6;} && mkdir "misc") ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 21887 | programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5 |
| 21888 | echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 21889 | windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5 |
| 21890 | echo "$as_me: creating windows" >&6;} && mkdir "windows") ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21891 | esac |
| 21892 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21893 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21894 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21895 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 21896 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21897 | { (exit 0); exit 0; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21898 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21899 | chmod +x $CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21900 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21901 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21902 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21903 | # configure is writing to config.log, and then calls config.status. |
| 21904 | # config.status does its own redirection, appending to config.log. |
| 21905 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21906 | # by configure, so config.status won't be able to write to it; its |
| 21907 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21908 | # effectively closing config.log, so it can be properly (re)opened and |
| 21909 | # appended to by config.status. When coming back to configure, we |
| 21910 | # need to make the FD available again. |
| 21911 | if test "$no_create" != yes; then |
| 21912 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21913 | ac_config_status_args= |
| 21914 | test "$silent" = yes && |
| 21915 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21916 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21917 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21918 | exec 5>>config.log |
| 21919 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21920 | # would make configure fail if this is the last instruction. |
| 21921 | $ac_cs_success || { (exit 1); exit 1; } |
| 21922 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21923 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21924 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 21925 | if test "$have_x" = "no" |
| 21926 | then |
| 21927 | echo |
| 21928 | echo "*** Warning: X development files not found. Wine will be built without" |
| 21929 | echo "*** X support, which currently does not work, and would probably not be" |
| 21930 | 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] | 21931 | echo "*** Xlib/Xfree86 at the very least." |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 21932 | fi |
| 21933 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 21934 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 21935 | then |
| 21936 | echo |
| 21937 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 21938 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." |
| 21939 | fi |
| 21940 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 21941 | if test "$wine_cv_msg_freetype" = "yes" |
| 21942 | then |
| 21943 | echo |
| 21944 | echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21945 | echo "*** installed, but 'freetype-config' is not in your PATH. Install the" |
| 21946 | echo "*** freetype-devel package (or its equivalent on your distribution) to" |
| 21947 | echo "*** enable Wine to use TrueType fonts." |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 21948 | fi |
| 21949 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21950 | echo |
Vincent BĂ©ron | 5606d10 | 2004-08-19 00:03:45 +0000 | [diff] [blame] | 21951 | echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21952 | echo |
| 21953 | |