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 | 93cd193 | 2005-02-11 13:34:17 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59 for Wine 20050211. |
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 | 93cd193 | 2005-02-11 13:34:17 +0000 | [diff] [blame] | 272 | PACKAGE_VERSION='20050211' |
| 273 | PACKAGE_STRING='Wine 20050211' |
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 | |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +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 DLLDEFS 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 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 | 93cd193 | 2005-02-11 13:34:17 +0000 | [diff] [blame] | 791 | \`configure' configures Wine 20050211 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 | 93cd193 | 2005-02-11 13:34:17 +0000 | [diff] [blame] | 856 | short | recursive ) echo "Configuration of Wine 20050211:";; |
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 | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 866 | --enable-win64 build a Win64 emulator on AMD64 (won't run Win32 |
| 867 | binaries) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 868 | |
| 869 | Optional Packages: |
| 870 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 871 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 872 | --without-opengl do not use OpenGL |
| 873 | --without-curses do not use curses |
| 874 | --with-wine-tools=<dir> use Wine tools from directory <dir> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 875 | --with-x use the X Window System |
| 876 | |
| 877 | Some influential environment variables: |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 878 | CC C compiler command |
| 879 | CFLAGS C compiler flags |
| 880 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 881 | nonstandard directory <lib dir> |
| 882 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 883 | headers in a nonstandard directory <include dir> |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 884 | CXX C++ compiler command |
| 885 | CXXFLAGS C++ compiler flags |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 886 | CPP C preprocessor |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 887 | |
| 888 | Use these variables to override the choices made by `configure' or to help |
| 889 | it to find libraries and programs with nonstandard names/locations. |
| 890 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 891 | Report bugs to <wine-devel@winehq.org>. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 892 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 893 | fi |
| 894 | |
| 895 | if test "$ac_init_help" = "recursive"; then |
| 896 | # If there are subdirs, report their specific --help. |
| 897 | ac_popdir=`pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 898 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 899 | test -d $ac_dir || continue |
| 900 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 901 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 902 | if test "$ac_dir" != .; then |
| 903 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 904 | # A "../" for each directory in $ac_dir_suffix. |
| 905 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 906 | else |
| 907 | ac_dir_suffix= ac_top_builddir= |
| 908 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 909 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 910 | case $srcdir in |
| 911 | .) # No --srcdir option. We are building in place. |
| 912 | ac_srcdir=. |
| 913 | if test -z "$ac_top_builddir"; then |
| 914 | ac_top_srcdir=. |
| 915 | else |
| 916 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 917 | fi ;; |
| 918 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 919 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 920 | ac_top_srcdir=$srcdir ;; |
| 921 | *) # Relative path. |
| 922 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 923 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 924 | esac |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 925 | |
| 926 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 927 | # the directories may not exist. |
| 928 | case `pwd` in |
| 929 | .) ac_abs_builddir="$ac_dir";; |
| 930 | *) |
| 931 | case "$ac_dir" in |
| 932 | .) ac_abs_builddir=`pwd`;; |
| 933 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 934 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 935 | esac;; |
| 936 | esac |
| 937 | case $ac_abs_builddir in |
| 938 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 939 | *) |
| 940 | case ${ac_top_builddir}. in |
| 941 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 942 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 943 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 944 | esac;; |
| 945 | esac |
| 946 | case $ac_abs_builddir in |
| 947 | .) ac_abs_srcdir=$ac_srcdir;; |
| 948 | *) |
| 949 | case $ac_srcdir in |
| 950 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 951 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 952 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 953 | esac;; |
| 954 | esac |
| 955 | case $ac_abs_builddir in |
| 956 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 957 | *) |
| 958 | case $ac_top_srcdir in |
| 959 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 960 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 961 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 962 | esac;; |
| 963 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 964 | |
| 965 | cd $ac_dir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 966 | # Check for guested configure; otherwise get Cygnus style configure. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 967 | if test -f $ac_srcdir/configure.gnu; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 968 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 969 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 970 | elif test -f $ac_srcdir/configure; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 971 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 972 | $SHELL $ac_srcdir/configure --help=recursive |
| 973 | elif test -f $ac_srcdir/configure.ac || |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 974 | test -f $ac_srcdir/configure.in; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 975 | echo |
| 976 | $ac_configure --help |
| 977 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 978 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 979 | fi |
Alexandre Julliard | ccc7570 | 2003-09-19 04:36:54 +0000 | [diff] [blame] | 980 | cd "$ac_popdir" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 981 | done |
| 982 | fi |
| 983 | |
| 984 | test -n "$ac_init_help" && exit 0 |
| 985 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 986 | cat <<\_ACEOF |
Alexandre Julliard | 93cd193 | 2005-02-11 13:34:17 +0000 | [diff] [blame] | 987 | Wine configure 20050211 |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 988 | generated by GNU Autoconf 2.59 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 989 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 990 | Copyright (C) 2003 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 991 | This configure script is free software; the Free Software Foundation |
| 992 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 993 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 994 | exit 0 |
| 995 | fi |
| 996 | exec 5>config.log |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 997 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 998 | This file contains any messages produced by compilers while |
| 999 | running configure, to aid debugging if configure makes a mistake. |
| 1000 | |
Alexandre Julliard | 93cd193 | 2005-02-11 13:34:17 +0000 | [diff] [blame] | 1001 | It was created by Wine $as_me 20050211, which was |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 1002 | generated by GNU Autoconf 2.59. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1003 | |
| 1004 | $ $0 $@ |
| 1005 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1006 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1007 | { |
| 1008 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1009 | ## --------- ## |
| 1010 | ## Platform. ## |
| 1011 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1012 | |
| 1013 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1014 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1015 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1016 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1017 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1018 | |
| 1019 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1020 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1021 | |
| 1022 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1023 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1024 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1025 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1026 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1027 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1028 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1029 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1030 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1031 | |
| 1032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1033 | for as_dir in $PATH |
| 1034 | do |
| 1035 | IFS=$as_save_IFS |
| 1036 | test -z "$as_dir" && as_dir=. |
| 1037 | echo "PATH: $as_dir" |
| 1038 | done |
| 1039 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1040 | } >&5 |
| 1041 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1042 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1043 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1044 | |
| 1045 | ## ----------- ## |
| 1046 | ## Core tests. ## |
| 1047 | ## ----------- ## |
| 1048 | |
| 1049 | _ACEOF |
| 1050 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1051 | |
| 1052 | # Keep a trace of the command line. |
| 1053 | # 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] | 1054 | # 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] | 1055 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1056 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1057 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1058 | ac_configure_args0= |
| 1059 | ac_configure_args1= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1060 | ac_sep= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1061 | ac_must_keep_next=false |
| 1062 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1063 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1064 | for ac_arg |
| 1065 | do |
| 1066 | case $ac_arg in |
| 1067 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1068 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1069 | | -silent | --silent | --silen | --sile | --sil) |
| 1070 | continue ;; |
| 1071 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1072 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1073 | esac |
| 1074 | case $ac_pass in |
| 1075 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1076 | 2) |
| 1077 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1078 | if test $ac_must_keep_next = true; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1079 | ac_must_keep_next=false # Got value, back to normal. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1080 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1081 | case $ac_arg in |
| 1082 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1083 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1084 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1085 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1086 | case "$ac_configure_args0 " in |
| 1087 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1088 | esac |
| 1089 | ;; |
| 1090 | -* ) ac_must_keep_next=true ;; |
| 1091 | esac |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1092 | fi |
| 1093 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1094 | # Get rid of the leading space. |
| 1095 | ac_sep=" " |
| 1096 | ;; |
| 1097 | esac |
| 1098 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1099 | done |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1100 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1101 | $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] | 1102 | |
| 1103 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1104 | # config.log. We remove comments because anyway the quotes in there |
| 1105 | # would cause problems or look ugly. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1106 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1107 | # such as our DU 5.0 friend, will then `close' the trap. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1108 | trap 'exit_status=$? |
| 1109 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1110 | { |
| 1111 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1112 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1113 | cat <<\_ASBOX |
| 1114 | ## ---------------- ## |
| 1115 | ## Cache variables. ## |
| 1116 | ## ---------------- ## |
| 1117 | _ASBOX |
| 1118 | echo |
| 1119 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1120 | { |
| 1121 | (set) 2>&1 | |
| 1122 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1123 | *ac_space=\ *) |
| 1124 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1125 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1126 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1127 | ;; |
| 1128 | *) |
| 1129 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1130 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1131 | ;; |
| 1132 | esac; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1133 | } |
| 1134 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1135 | |
| 1136 | cat <<\_ASBOX |
| 1137 | ## ----------------- ## |
| 1138 | ## Output variables. ## |
| 1139 | ## ----------------- ## |
| 1140 | _ASBOX |
| 1141 | echo |
| 1142 | for ac_var in $ac_subst_vars |
| 1143 | do |
| 1144 | eval ac_val=$`echo $ac_var` |
| 1145 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1146 | done | sort |
| 1147 | echo |
| 1148 | |
| 1149 | if test -n "$ac_subst_files"; then |
| 1150 | cat <<\_ASBOX |
| 1151 | ## ------------- ## |
| 1152 | ## Output files. ## |
| 1153 | ## ------------- ## |
| 1154 | _ASBOX |
| 1155 | echo |
| 1156 | for ac_var in $ac_subst_files |
| 1157 | do |
| 1158 | eval ac_val=$`echo $ac_var` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1159 | echo "$ac_var='"'"'$ac_val'"'"'" |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1160 | done | sort |
| 1161 | echo |
| 1162 | fi |
| 1163 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1164 | if test -s confdefs.h; then |
| 1165 | cat <<\_ASBOX |
| 1166 | ## ----------- ## |
| 1167 | ## confdefs.h. ## |
| 1168 | ## ----------- ## |
| 1169 | _ASBOX |
| 1170 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1171 | sed "/^$/d" confdefs.h | sort |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1172 | echo |
| 1173 | fi |
| 1174 | test "$ac_signal" != 0 && |
| 1175 | echo "$as_me: caught signal $ac_signal" |
| 1176 | echo "$as_me: exit $exit_status" |
| 1177 | } >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 1178 | rm -f core *.core && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1179 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1180 | exit $exit_status |
| 1181 | ' 0 |
| 1182 | for ac_signal in 1 2 13 15; do |
| 1183 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1184 | done |
| 1185 | ac_signal=0 |
| 1186 | |
| 1187 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1188 | rm -rf conftest* confdefs.h |
| 1189 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1190 | echo >confdefs.h |
| 1191 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1192 | # Predefined preprocessor variables. |
| 1193 | |
| 1194 | cat >>confdefs.h <<_ACEOF |
| 1195 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1196 | _ACEOF |
| 1197 | |
| 1198 | |
| 1199 | cat >>confdefs.h <<_ACEOF |
| 1200 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1201 | _ACEOF |
| 1202 | |
| 1203 | |
| 1204 | cat >>confdefs.h <<_ACEOF |
| 1205 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1206 | _ACEOF |
| 1207 | |
| 1208 | |
| 1209 | cat >>confdefs.h <<_ACEOF |
| 1210 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1211 | _ACEOF |
| 1212 | |
| 1213 | |
| 1214 | cat >>confdefs.h <<_ACEOF |
| 1215 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1216 | _ACEOF |
| 1217 | |
| 1218 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1219 | # 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] | 1220 | # Prefer explicitly selected file to automatically selected ones. |
| 1221 | if test -z "$CONFIG_SITE"; then |
| 1222 | if test "x$prefix" != xNONE; then |
| 1223 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1224 | else |
| 1225 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1226 | fi |
| 1227 | fi |
| 1228 | for ac_site_file in $CONFIG_SITE; do |
| 1229 | if test -r "$ac_site_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1230 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1231 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1232 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1233 | . "$ac_site_file" |
| 1234 | fi |
| 1235 | done |
| 1236 | |
| 1237 | if test -r "$cache_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1238 | # Some versions of bash will fail to source /dev/null (special |
| 1239 | # files actually), so we avoid doing that. |
| 1240 | if test -f "$cache_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1241 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1242 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1243 | case $cache_file in |
| 1244 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1245 | *) . ./$cache_file;; |
| 1246 | esac |
| 1247 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1248 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1249 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1250 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1251 | >$cache_file |
| 1252 | fi |
| 1253 | |
| 1254 | # Check that the precious variables saved in the cache have kept the same |
| 1255 | # value. |
| 1256 | ac_cache_corrupted=false |
| 1257 | for ac_var in `(set) 2>&1 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1258 | 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] | 1259 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1260 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1261 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1262 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1263 | case $ac_old_set,$ac_new_set in |
| 1264 | set,) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1265 | { 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] | 1266 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1267 | ac_cache_corrupted=: ;; |
| 1268 | ,set) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1269 | { 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] | 1270 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1271 | ac_cache_corrupted=: ;; |
| 1272 | ,);; |
| 1273 | *) |
| 1274 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1275 | { 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] | 1276 | 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] | 1277 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1278 | echo "$as_me: former value: $ac_old_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1279 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1280 | echo "$as_me: current value: $ac_new_val" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1281 | ac_cache_corrupted=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1282 | fi;; |
| 1283 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1284 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1285 | if test "$ac_new_set" = set; then |
| 1286 | case $ac_new_val in |
| 1287 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1288 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1289 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1290 | esac |
| 1291 | case " $ac_configure_args " in |
| 1292 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1293 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1294 | esac |
| 1295 | fi |
| 1296 | done |
| 1297 | if $ac_cache_corrupted; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1298 | { 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] | 1299 | 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] | 1300 | { { 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] | 1301 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1302 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1303 | fi |
| 1304 | |
| 1305 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1306 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1307 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1308 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1309 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1310 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1311 | |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1336 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1337 | |
| 1338 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1339 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1340 | ac_aux_dir= |
| 1341 | for ac_dir in tools $srcdir/tools; do |
| 1342 | if test -f $ac_dir/install-sh; then |
| 1343 | ac_aux_dir=$ac_dir |
| 1344 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1345 | break |
| 1346 | elif test -f $ac_dir/install.sh; then |
| 1347 | ac_aux_dir=$ac_dir |
| 1348 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1349 | break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1350 | elif test -f $ac_dir/shtool; then |
| 1351 | ac_aux_dir=$ac_dir |
| 1352 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1353 | break |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1354 | fi |
| 1355 | done |
| 1356 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1357 | { { 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] | 1358 | echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;} |
| 1359 | { (exit 1); exit 1; }; } |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1360 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1361 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1362 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1363 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 1364 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1365 | |
| 1366 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1367 | # Check whether --enable-win16 or --disable-win16 was given. |
| 1368 | if test "${enable_win16+set}" = set; then |
| 1369 | enableval="$enable_win16" |
| 1370 | |
| 1371 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1372 | # Check whether --enable-debug or --disable-debug was given. |
| 1373 | if test "${enable_debug+set}" = set; then |
| 1374 | enableval="$enable_debug" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1375 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1376 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1377 | # Check whether --enable-trace or --disable-trace was given. |
| 1378 | if test "${enable_trace+set}" = set; then |
| 1379 | enableval="$enable_trace" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1380 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1381 | fi; |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1382 | # Check whether --enable-win64 or --disable-win64 was given. |
| 1383 | if test "${enable_win64+set}" = set; then |
| 1384 | enableval="$enable_win64" |
| 1385 | |
| 1386 | fi; |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1387 | |
| 1388 | |
| 1389 | # Check whether --with-opengl or --without-opengl was given. |
| 1390 | if test "${with_opengl+set}" = set; then |
| 1391 | withval="$with_opengl" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1392 | |
| 1393 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1394 | |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1395 | # Check whether --with-curses or --without-curses was given. |
| 1396 | if test "${with_curses+set}" = set; then |
| 1397 | withval="$with_curses" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1398 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1399 | fi; |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1400 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1401 | # Check whether --with-wine-tools or --without-wine-tools was given. |
| 1402 | if test "${with_wine_tools+set}" = set; then |
| 1403 | withval="$with_wine_tools" |
| 1404 | |
| 1405 | fi; |
| 1406 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1407 | WIN16_FILES="\$(WIN16_FILES)" |
| 1408 | |
| 1409 | WIN16_INSTALL="\$(WIN16_INSTALL)" |
| 1410 | |
| 1411 | if test "x$enable_win16" = "xno" |
| 1412 | then |
| 1413 | WIN16_FILES="" |
| 1414 | WIN16_INSTALL="" |
| 1415 | fi |
Vincent Béron | 1f50414 | 2004-10-19 23:06:11 +0000 | [diff] [blame] | 1416 | |
| 1417 | DLLDEFS="" |
| 1418 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1419 | if test "x$enable_debug" = "xno" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1420 | then |
Vincent Béron | 1f50414 | 2004-10-19 23:06:11 +0000 | [diff] [blame] | 1421 | DLLDEFS="$DLLDEFS -DWINE_NO_DEBUG_MSGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1422 | fi |
| 1423 | if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1424 | then |
Vincent Béron | 1f50414 | 2004-10-19 23:06:11 +0000 | [diff] [blame] | 1425 | DLLDEFS="$DLLDEFS -DWINE_NO_TRACE_MSGS" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1426 | fi |
| 1427 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1428 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1429 | # Make sure we can run config.sub. |
| 1430 | $ac_config_sub sun4 >/dev/null 2>&1 || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1431 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1432 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1433 | { (exit 1); exit 1; }; } |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1434 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1435 | echo "$as_me:$LINENO: checking build system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1436 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1437 | if test "${ac_cv_build+set}" = set; then |
| 1438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1439 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1440 | ac_cv_build_alias=$build_alias |
| 1441 | test -z "$ac_cv_build_alias" && |
| 1442 | ac_cv_build_alias=`$ac_config_guess` |
| 1443 | test -z "$ac_cv_build_alias" && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1444 | { { 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] | 1445 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1446 | { (exit 1); exit 1; }; } |
| 1447 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1448 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1449 | 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] | 1450 | { (exit 1); exit 1; }; } |
| 1451 | |
| 1452 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1453 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1454 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1455 | build=$ac_cv_build |
| 1456 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1457 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1458 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1459 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1460 | |
| 1461 | echo "$as_me:$LINENO: checking host system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1462 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1463 | if test "${ac_cv_host+set}" = set; then |
| 1464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1465 | else |
| 1466 | ac_cv_host_alias=$host_alias |
| 1467 | test -z "$ac_cv_host_alias" && |
| 1468 | ac_cv_host_alias=$ac_cv_build_alias |
| 1469 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1470 | { { 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] | 1471 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1472 | { (exit 1); exit 1; }; } |
| 1473 | |
| 1474 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1475 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1476 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1477 | host=$ac_cv_host |
| 1478 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1479 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1480 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1481 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1482 | |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1483 | case $host in |
| 1484 | x86_64*linux*) |
| 1485 | if test "x$enable_win64" != "xyes" |
| 1486 | then |
| 1487 | test -n "$CC" || CC="gcc -m32" |
| 1488 | test -n "$LD" || LD="ld -m elf_i386" |
| 1489 | test -n "$AS" || AS="as --32" |
Alex Woods | bbcf986 | 2005-02-10 19:09:08 +0000 | [diff] [blame] | 1490 | host_cpu="i386" |
Alexandre Julliard | 2aa8e87 | 2004-10-08 23:39:16 +0000 | [diff] [blame] | 1491 | fi |
| 1492 | ;; |
| 1493 | esac |
| 1494 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1495 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1496 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1497 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1498 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1500 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1501 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1502 | all: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1503 | @echo 'ac_maketemp="$(MAKE)"' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1504 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1505 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1506 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1507 | if test -n "$ac_maketemp"; then |
| 1508 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1509 | else |
| 1510 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1511 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1512 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1513 | fi |
| 1514 | 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] | 1515 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1516 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1517 | SET_MAKE= |
| 1518 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1519 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1520 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1521 | SET_MAKE="MAKE=${MAKE-make}" |
| 1522 | fi |
| 1523 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1524 | ac_ext=c |
| 1525 | ac_cpp='$CPP $CPPFLAGS' |
| 1526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1529 | if test -n "$ac_tool_prefix"; then |
| 1530 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1531 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1532 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1534 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1536 | else |
| 1537 | if test -n "$CC"; then |
| 1538 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1539 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1541 | for as_dir in $PATH |
| 1542 | do |
| 1543 | IFS=$as_save_IFS |
| 1544 | test -z "$as_dir" && as_dir=. |
| 1545 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1546 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1547 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1548 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1549 | break 2 |
| 1550 | fi |
| 1551 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1552 | done |
| 1553 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1554 | fi |
| 1555 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1556 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1557 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1558 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1559 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1560 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1561 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1562 | echo "${ECHO_T}no" >&6 |
| 1563 | fi |
| 1564 | |
| 1565 | fi |
| 1566 | if test -z "$ac_cv_prog_CC"; then |
| 1567 | ac_ct_CC=$CC |
| 1568 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1569 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1570 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1572 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1574 | else |
| 1575 | if test -n "$ac_ct_CC"; then |
| 1576 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1577 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1579 | for as_dir in $PATH |
| 1580 | do |
| 1581 | IFS=$as_save_IFS |
| 1582 | test -z "$as_dir" && as_dir=. |
| 1583 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1584 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1585 | ac_cv_prog_ac_ct_CC="gcc" |
| 1586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1587 | break 2 |
| 1588 | fi |
| 1589 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1590 | done |
| 1591 | |
| 1592 | fi |
| 1593 | fi |
| 1594 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1595 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1596 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1597 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1598 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1599 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1600 | echo "${ECHO_T}no" >&6 |
| 1601 | fi |
| 1602 | |
| 1603 | CC=$ac_ct_CC |
| 1604 | else |
| 1605 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1606 | fi |
| 1607 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1608 | if test -z "$CC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1609 | if test -n "$ac_tool_prefix"; then |
| 1610 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1611 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1612 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1613 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1614 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1616 | else |
| 1617 | if test -n "$CC"; then |
| 1618 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1619 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1621 | for as_dir in $PATH |
| 1622 | do |
| 1623 | IFS=$as_save_IFS |
| 1624 | test -z "$as_dir" && as_dir=. |
| 1625 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1626 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1627 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1629 | break 2 |
| 1630 | fi |
| 1631 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1632 | done |
| 1633 | |
| 1634 | fi |
| 1635 | fi |
| 1636 | CC=$ac_cv_prog_CC |
| 1637 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1638 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1639 | echo "${ECHO_T}$CC" >&6 |
| 1640 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1641 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1642 | echo "${ECHO_T}no" >&6 |
| 1643 | fi |
| 1644 | |
| 1645 | fi |
| 1646 | if test -z "$ac_cv_prog_CC"; then |
| 1647 | ac_ct_CC=$CC |
| 1648 | # Extract the first word of "cc", so it can be a program name with args. |
| 1649 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1652 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1654 | else |
| 1655 | if test -n "$ac_ct_CC"; then |
| 1656 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1657 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1659 | for as_dir in $PATH |
| 1660 | do |
| 1661 | IFS=$as_save_IFS |
| 1662 | test -z "$as_dir" && as_dir=. |
| 1663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1665 | ac_cv_prog_ac_ct_CC="cc" |
| 1666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1667 | break 2 |
| 1668 | fi |
| 1669 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1670 | done |
| 1671 | |
| 1672 | fi |
| 1673 | fi |
| 1674 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1675 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1676 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1677 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1678 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1679 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1680 | echo "${ECHO_T}no" >&6 |
| 1681 | fi |
| 1682 | |
| 1683 | CC=$ac_ct_CC |
| 1684 | else |
| 1685 | CC="$ac_cv_prog_CC" |
| 1686 | fi |
| 1687 | |
| 1688 | fi |
| 1689 | if test -z "$CC"; then |
| 1690 | # Extract the first word of "cc", so it can be a program name with args. |
| 1691 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1694 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1696 | else |
| 1697 | if test -n "$CC"; then |
| 1698 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1699 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1700 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1702 | for as_dir in $PATH |
| 1703 | do |
| 1704 | IFS=$as_save_IFS |
| 1705 | test -z "$as_dir" && as_dir=. |
| 1706 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1707 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1708 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1709 | ac_prog_rejected=yes |
| 1710 | continue |
| 1711 | fi |
| 1712 | ac_cv_prog_CC="cc" |
| 1713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1714 | break 2 |
| 1715 | fi |
| 1716 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1717 | done |
| 1718 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1719 | if test $ac_prog_rejected = yes; then |
| 1720 | # We found a bogon in the path, so make sure we never use it. |
| 1721 | set dummy $ac_cv_prog_CC |
| 1722 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1723 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1724 | # We chose a different compiler from the bogus one. |
| 1725 | # However, it has the same basename, so the bogon will be chosen |
| 1726 | # first if we set CC to just the basename; use the full file name. |
| 1727 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1728 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1729 | fi |
| 1730 | fi |
| 1731 | fi |
| 1732 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1733 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1734 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1735 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1736 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1737 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1738 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1739 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1740 | fi |
| 1741 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1742 | fi |
| 1743 | if test -z "$CC"; then |
| 1744 | if test -n "$ac_tool_prefix"; then |
| 1745 | for ac_prog in cl |
| 1746 | do |
| 1747 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1748 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1749 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1751 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1753 | else |
| 1754 | if test -n "$CC"; then |
| 1755 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1756 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1758 | for as_dir in $PATH |
| 1759 | do |
| 1760 | IFS=$as_save_IFS |
| 1761 | test -z "$as_dir" && as_dir=. |
| 1762 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1763 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1764 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1766 | break 2 |
| 1767 | fi |
| 1768 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1769 | done |
| 1770 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1771 | fi |
| 1772 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1773 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1774 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1775 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1776 | echo "${ECHO_T}$CC" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1777 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1778 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1779 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1780 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1781 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1782 | test -n "$CC" && break |
| 1783 | done |
| 1784 | fi |
| 1785 | if test -z "$CC"; then |
| 1786 | ac_ct_CC=$CC |
| 1787 | for ac_prog in cl |
| 1788 | do |
| 1789 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1790 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1791 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1793 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1795 | else |
| 1796 | if test -n "$ac_ct_CC"; then |
| 1797 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1798 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1800 | for as_dir in $PATH |
| 1801 | do |
| 1802 | IFS=$as_save_IFS |
| 1803 | test -z "$as_dir" && as_dir=. |
| 1804 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1805 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1806 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1808 | break 2 |
| 1809 | fi |
| 1810 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1811 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1812 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1813 | fi |
| 1814 | fi |
| 1815 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1816 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1817 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1818 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1819 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1820 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1821 | echo "${ECHO_T}no" >&6 |
| 1822 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1823 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1824 | test -n "$ac_ct_CC" && break |
| 1825 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1826 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1827 | CC=$ac_ct_CC |
| 1828 | fi |
| 1829 | |
| 1830 | fi |
| 1831 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1832 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1833 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1834 | See \`config.log' for more details." >&5 |
| 1835 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1836 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1837 | { (exit 1); exit 1; }; } |
| 1838 | |
| 1839 | # Provide some information about the compiler. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1840 | echo "$as_me:$LINENO:" \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1841 | "checking for C compiler version" >&5 |
| 1842 | ac_compiler=`set X $ac_compile; echo $2` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1843 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1844 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1845 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1847 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1848 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1849 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1850 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1852 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1853 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1854 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1855 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1857 | (exit $ac_status); } |
| 1858 | |
| 1859 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1860 | /* confdefs.h. */ |
| 1861 | _ACEOF |
| 1862 | cat confdefs.h >>conftest.$ac_ext |
| 1863 | cat >>conftest.$ac_ext <<_ACEOF |
| 1864 | /* end confdefs.h. */ |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1865 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1866 | int |
| 1867 | main () |
| 1868 | { |
| 1869 | |
| 1870 | ; |
| 1871 | return 0; |
| 1872 | } |
| 1873 | _ACEOF |
| 1874 | ac_clean_files_save=$ac_clean_files |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1875 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1876 | # Try to create an executable without -o first, disregard a.out. |
| 1877 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1878 | # of exeext. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1879 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1880 | 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] | 1881 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1882 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1883 | (eval $ac_link_default) 2>&5 |
| 1884 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1886 | (exit $ac_status); }; then |
| 1887 | # Find the output, starting from the most likely. This scheme is |
| 1888 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1889 | # resort. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1890 | |
| 1891 | # Be careful to initialize this variable, since it used to be cached. |
| 1892 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1893 | ac_cv_exeext= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1894 | # b.out is created by i960 compilers. |
| 1895 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1896 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1897 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1898 | case $ac_file in |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1899 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1900 | ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1901 | conftest.$ac_ext ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1902 | # This is the source file. |
| 1903 | ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1904 | [ab].out ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1905 | # We found the default executable, but exeext='' is most |
| 1906 | # certainly right. |
| 1907 | break;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1908 | *.* ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1909 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1910 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1911 | # but it would be cool to find out if it's true. Does anybody |
| 1912 | # maintain Libtool? --akim. |
| 1913 | export ac_cv_exeext |
| 1914 | break;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1915 | * ) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1916 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1917 | esac |
| 1918 | done |
| 1919 | else |
| 1920 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1922 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1923 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1924 | See \`config.log' for more details." >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1925 | echo "$as_me: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1926 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1927 | { (exit 77); exit 77; }; } |
| 1928 | fi |
| 1929 | |
| 1930 | ac_exeext=$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1931 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1932 | echo "${ECHO_T}$ac_file" >&6 |
| 1933 | |
| 1934 | # Check the compiler produces executables we can run. If not, either |
| 1935 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1936 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1937 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1938 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1939 | # If not cross compiling, check that we can run a simple program. |
| 1940 | if test "$cross_compiling" != yes; then |
| 1941 | if { ac_try='./$ac_file' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1943 | (eval $ac_try) 2>&5 |
| 1944 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1946 | (exit $ac_status); }; }; then |
| 1947 | cross_compiling=no |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1948 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1949 | if test "$cross_compiling" = maybe; then |
| 1950 | cross_compiling=yes |
| 1951 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1952 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1953 | If you meant to cross compile, use \`--host'. |
| 1954 | See \`config.log' for more details." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1955 | echo "$as_me: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1956 | If you meant to cross compile, use \`--host'. |
| 1957 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1958 | { (exit 1); exit 1; }; } |
| 1959 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1960 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1961 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1962 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1963 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1964 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1965 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1966 | ac_clean_files=$ac_clean_files_save |
| 1967 | # Check the compiler produces executables we can run. If not, either |
| 1968 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1969 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1970 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1971 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1972 | echo "${ECHO_T}$cross_compiling" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1973 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1974 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1975 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1977 | (eval $ac_link) 2>&5 |
| 1978 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1980 | (exit $ac_status); }; then |
| 1981 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1982 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1983 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1984 | # `rm'. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1985 | for ac_file in conftest.exe conftest conftest.*; do |
| 1986 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1987 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1988 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1989 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 1990 | export ac_cv_exeext |
| 1991 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1992 | * ) break;; |
| 1993 | esac |
| 1994 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1995 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1996 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1997 | See \`config.log' for more details." >&5 |
| 1998 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1999 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2000 | { (exit 1); exit 1; }; } |
| 2001 | fi |
| 2002 | |
| 2003 | rm -f conftest$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2004 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2005 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2006 | |
| 2007 | rm -f conftest.$ac_ext |
| 2008 | EXEEXT=$ac_cv_exeext |
| 2009 | ac_exeext=$EXEEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2010 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2011 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2012 | if test "${ac_cv_objext+set}" = set; then |
| 2013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2014 | else |
| 2015 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2016 | /* confdefs.h. */ |
| 2017 | _ACEOF |
| 2018 | cat confdefs.h >>conftest.$ac_ext |
| 2019 | cat >>conftest.$ac_ext <<_ACEOF |
| 2020 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2021 | |
| 2022 | int |
| 2023 | main () |
| 2024 | { |
| 2025 | |
| 2026 | ; |
| 2027 | return 0; |
| 2028 | } |
| 2029 | _ACEOF |
| 2030 | rm -f conftest.o conftest.obj |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2032 | (eval $ac_compile) 2>&5 |
| 2033 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2035 | (exit $ac_status); }; then |
| 2036 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2037 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2038 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2039 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2040 | break;; |
| 2041 | esac |
| 2042 | done |
| 2043 | else |
| 2044 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2046 | |
| 2047 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2048 | See \`config.log' for more details." >&5 |
| 2049 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2050 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2051 | { (exit 1); exit 1; }; } |
| 2052 | fi |
| 2053 | |
| 2054 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2055 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2056 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2057 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2058 | OBJEXT=$ac_cv_objext |
| 2059 | ac_objext=$OBJEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2060 | 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] | 2061 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2062 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2064 | else |
| 2065 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2066 | /* confdefs.h. */ |
| 2067 | _ACEOF |
| 2068 | cat confdefs.h >>conftest.$ac_ext |
| 2069 | cat >>conftest.$ac_ext <<_ACEOF |
| 2070 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2071 | |
| 2072 | int |
| 2073 | main () |
| 2074 | { |
| 2075 | #ifndef __GNUC__ |
| 2076 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2077 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2078 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2079 | ; |
| 2080 | return 0; |
| 2081 | } |
| 2082 | _ACEOF |
| 2083 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2085 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2086 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2088 | rm -f conftest.er1 |
| 2089 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2091 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2092 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2094 | (eval $ac_try) 2>&5 |
| 2095 | ac_status=$? |
| 2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2097 | (exit $ac_status); }; } && |
| 2098 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2100 | (eval $ac_try) 2>&5 |
| 2101 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2103 | (exit $ac_status); }; }; then |
| 2104 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2105 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2106 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2107 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2108 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2109 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2110 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2112 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2113 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2114 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2115 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2116 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2117 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2118 | ac_test_CFLAGS=${CFLAGS+set} |
| 2119 | ac_save_CFLAGS=$CFLAGS |
| 2120 | CFLAGS="-g" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2121 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2122 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2123 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2125 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2126 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2127 | /* confdefs.h. */ |
| 2128 | _ACEOF |
| 2129 | cat confdefs.h >>conftest.$ac_ext |
| 2130 | cat >>conftest.$ac_ext <<_ACEOF |
| 2131 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2132 | |
| 2133 | int |
| 2134 | main () |
| 2135 | { |
| 2136 | |
| 2137 | ; |
| 2138 | return 0; |
| 2139 | } |
| 2140 | _ACEOF |
| 2141 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2143 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2144 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2146 | rm -f conftest.er1 |
| 2147 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2149 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2152 | (eval $ac_try) 2>&5 |
| 2153 | ac_status=$? |
| 2154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2155 | (exit $ac_status); }; } && |
| 2156 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2158 | (eval $ac_try) 2>&5 |
| 2159 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2161 | (exit $ac_status); }; }; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2162 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2163 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2164 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2166 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2167 | ac_cv_prog_cc_g=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2168 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2170 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2171 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2172 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2173 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2174 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2175 | elif test $ac_cv_prog_cc_g = yes; then |
| 2176 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2177 | CFLAGS="-g -O2" |
| 2178 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2179 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2180 | fi |
| 2181 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2182 | if test "$GCC" = yes; then |
| 2183 | CFLAGS="-O2" |
| 2184 | else |
| 2185 | CFLAGS= |
| 2186 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2187 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2188 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2189 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2190 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2192 | else |
| 2193 | ac_cv_prog_cc_stdc=no |
| 2194 | ac_save_CC=$CC |
| 2195 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2196 | /* confdefs.h. */ |
| 2197 | _ACEOF |
| 2198 | cat confdefs.h >>conftest.$ac_ext |
| 2199 | cat >>conftest.$ac_ext <<_ACEOF |
| 2200 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2201 | #include <stdarg.h> |
| 2202 | #include <stdio.h> |
| 2203 | #include <sys/types.h> |
| 2204 | #include <sys/stat.h> |
| 2205 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2206 | struct buf { int x; }; |
| 2207 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2208 | static char *e (p, i) |
| 2209 | char **p; |
| 2210 | int i; |
| 2211 | { |
| 2212 | return p[i]; |
| 2213 | } |
| 2214 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2215 | { |
| 2216 | char *s; |
| 2217 | va_list v; |
| 2218 | va_start (v,p); |
| 2219 | s = g (p, va_arg (v,int)); |
| 2220 | va_end (v); |
| 2221 | return s; |
| 2222 | } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2223 | |
| 2224 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2225 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2226 | These don't provoke an error unfortunately, instead are silently treated |
| 2227 | as 'x'. The following induces an error, until -std1 is added to get |
| 2228 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2229 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2230 | that's true only with -std1. */ |
| 2231 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2232 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2233 | int test (int i, double x); |
| 2234 | struct s1 {int (*f) (int a);}; |
| 2235 | struct s2 {int (*f) (double a);}; |
| 2236 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2237 | int argc; |
| 2238 | char **argv; |
| 2239 | int |
| 2240 | main () |
| 2241 | { |
| 2242 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2243 | ; |
| 2244 | return 0; |
| 2245 | } |
| 2246 | _ACEOF |
| 2247 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2248 | # breaks some systems' header files. |
| 2249 | # AIX -qlanglvl=ansi |
| 2250 | # Ultrix and OSF/1 -std1 |
| 2251 | # HP-UX 10.20 and later -Ae |
| 2252 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2253 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2254 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2255 | do |
| 2256 | CC="$ac_save_CC $ac_arg" |
| 2257 | rm -f conftest.$ac_objext |
| 2258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2259 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2260 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2262 | rm -f conftest.er1 |
| 2263 | cat conftest.err >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2265 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2266 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2268 | (eval $ac_try) 2>&5 |
| 2269 | ac_status=$? |
| 2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2271 | (exit $ac_status); }; } && |
| 2272 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2274 | (eval $ac_try) 2>&5 |
| 2275 | ac_status=$? |
| 2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2277 | (exit $ac_status); }; }; then |
| 2278 | ac_cv_prog_cc_stdc=$ac_arg |
| 2279 | break |
| 2280 | else |
| 2281 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2283 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2284 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2285 | rm -f conftest.err conftest.$ac_objext |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2286 | done |
| 2287 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2288 | CC=$ac_save_CC |
| 2289 | |
| 2290 | fi |
| 2291 | |
| 2292 | case "x$ac_cv_prog_cc_stdc" in |
| 2293 | x|xno) |
| 2294 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2295 | echo "${ECHO_T}none needed" >&6 ;; |
| 2296 | *) |
| 2297 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2298 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2299 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2300 | esac |
| 2301 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2302 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2303 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2304 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2305 | # the declaration of exit, since it's the most demanding environment. |
| 2306 | cat >conftest.$ac_ext <<_ACEOF |
| 2307 | #ifndef __cplusplus |
| 2308 | choke me |
| 2309 | #endif |
| 2310 | _ACEOF |
| 2311 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2313 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2314 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2315 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2316 | rm -f conftest.er1 |
| 2317 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2319 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2320 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2322 | (eval $ac_try) 2>&5 |
| 2323 | ac_status=$? |
| 2324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2325 | (exit $ac_status); }; } && |
| 2326 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2328 | (eval $ac_try) 2>&5 |
| 2329 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2331 | (exit $ac_status); }; }; then |
| 2332 | for ac_declaration in \ |
Alexandre Julliard | 90b1c2c | 2003-06-18 20:35:38 +0000 | [diff] [blame] | 2333 | '' \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2334 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2335 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2336 | 'extern "C" void exit (int) throw ();' \ |
| 2337 | 'extern "C" void exit (int);' \ |
Alexandre Julliard | 90b1c2c | 2003-06-18 20:35:38 +0000 | [diff] [blame] | 2338 | 'void exit (int);' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2339 | do |
| 2340 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2341 | /* confdefs.h. */ |
| 2342 | _ACEOF |
| 2343 | cat confdefs.h >>conftest.$ac_ext |
| 2344 | cat >>conftest.$ac_ext <<_ACEOF |
| 2345 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2346 | $ac_declaration |
Alexandre Julliard | 90b1c2c | 2003-06-18 20:35:38 +0000 | [diff] [blame] | 2347 | #include <stdlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2348 | int |
| 2349 | main () |
| 2350 | { |
| 2351 | exit (42); |
| 2352 | ; |
| 2353 | return 0; |
| 2354 | } |
| 2355 | _ACEOF |
| 2356 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2358 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2359 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2361 | rm -f conftest.er1 |
| 2362 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2364 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2367 | (eval $ac_try) 2>&5 |
| 2368 | ac_status=$? |
| 2369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2370 | (exit $ac_status); }; } && |
| 2371 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2373 | (eval $ac_try) 2>&5 |
| 2374 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2376 | (exit $ac_status); }; }; then |
| 2377 | : |
| 2378 | else |
| 2379 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2381 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2382 | continue |
| 2383 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2385 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2386 | /* confdefs.h. */ |
| 2387 | _ACEOF |
| 2388 | cat confdefs.h >>conftest.$ac_ext |
| 2389 | cat >>conftest.$ac_ext <<_ACEOF |
| 2390 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2391 | $ac_declaration |
| 2392 | int |
| 2393 | main () |
| 2394 | { |
| 2395 | exit (42); |
| 2396 | ; |
| 2397 | return 0; |
| 2398 | } |
| 2399 | _ACEOF |
| 2400 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2402 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2403 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2405 | rm -f conftest.er1 |
| 2406 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2408 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2409 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2411 | (eval $ac_try) 2>&5 |
| 2412 | ac_status=$? |
| 2413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2414 | (exit $ac_status); }; } && |
| 2415 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2417 | (eval $ac_try) 2>&5 |
| 2418 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2420 | (exit $ac_status); }; }; then |
| 2421 | break |
| 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 | done |
| 2429 | rm -f conftest* |
| 2430 | if test -n "$ac_declaration"; then |
| 2431 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2432 | echo $ac_declaration >>confdefs.h |
| 2433 | echo '#endif' >>confdefs.h |
| 2434 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2435 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2436 | else |
| 2437 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2439 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2440 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2442 | ac_ext=c |
| 2443 | ac_cpp='$CPP $CPPFLAGS' |
| 2444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2447 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2448 | ac_ext=cc |
| 2449 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2450 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2451 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2452 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2453 | if test -n "$ac_tool_prefix"; then |
| 2454 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2455 | do |
| 2456 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2457 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2458 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2460 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2462 | else |
| 2463 | if test -n "$CXX"; then |
| 2464 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2465 | else |
| 2466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2467 | for as_dir in $PATH |
| 2468 | do |
| 2469 | IFS=$as_save_IFS |
| 2470 | test -z "$as_dir" && as_dir=. |
| 2471 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2472 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2473 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2475 | break 2 |
| 2476 | fi |
| 2477 | done |
| 2478 | done |
| 2479 | |
| 2480 | fi |
| 2481 | fi |
| 2482 | CXX=$ac_cv_prog_CXX |
| 2483 | if test -n "$CXX"; then |
| 2484 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2485 | echo "${ECHO_T}$CXX" >&6 |
| 2486 | else |
| 2487 | echo "$as_me:$LINENO: result: no" >&5 |
| 2488 | echo "${ECHO_T}no" >&6 |
| 2489 | fi |
| 2490 | |
| 2491 | test -n "$CXX" && break |
| 2492 | done |
| 2493 | fi |
| 2494 | if test -z "$CXX"; then |
| 2495 | ac_ct_CXX=$CXX |
| 2496 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2497 | do |
| 2498 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2499 | set dummy $ac_prog; ac_word=$2 |
| 2500 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2502 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2504 | else |
| 2505 | if test -n "$ac_ct_CXX"; then |
| 2506 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2507 | else |
| 2508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2509 | for as_dir in $PATH |
| 2510 | do |
| 2511 | IFS=$as_save_IFS |
| 2512 | test -z "$as_dir" && as_dir=. |
| 2513 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2514 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2515 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2517 | break 2 |
| 2518 | fi |
| 2519 | done |
| 2520 | done |
| 2521 | |
| 2522 | fi |
| 2523 | fi |
| 2524 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2525 | if test -n "$ac_ct_CXX"; then |
| 2526 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2527 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 2528 | else |
| 2529 | echo "$as_me:$LINENO: result: no" >&5 |
| 2530 | echo "${ECHO_T}no" >&6 |
| 2531 | fi |
| 2532 | |
| 2533 | test -n "$ac_ct_CXX" && break |
| 2534 | done |
| 2535 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2536 | |
| 2537 | CXX=$ac_ct_CXX |
| 2538 | fi |
| 2539 | |
| 2540 | |
| 2541 | # Provide some information about the compiler. |
| 2542 | echo "$as_me:$LINENO:" \ |
| 2543 | "checking for C++ compiler version" >&5 |
| 2544 | ac_compiler=`set X $ac_compile; echo $2` |
| 2545 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2546 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2547 | ac_status=$? |
| 2548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2549 | (exit $ac_status); } |
| 2550 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2551 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2552 | ac_status=$? |
| 2553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2554 | (exit $ac_status); } |
| 2555 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2556 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2557 | ac_status=$? |
| 2558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2559 | (exit $ac_status); } |
| 2560 | |
| 2561 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2562 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2563 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2565 | else |
| 2566 | cat >conftest.$ac_ext <<_ACEOF |
| 2567 | /* confdefs.h. */ |
| 2568 | _ACEOF |
| 2569 | cat confdefs.h >>conftest.$ac_ext |
| 2570 | cat >>conftest.$ac_ext <<_ACEOF |
| 2571 | /* end confdefs.h. */ |
| 2572 | |
| 2573 | int |
| 2574 | main () |
| 2575 | { |
| 2576 | #ifndef __GNUC__ |
| 2577 | choke me |
| 2578 | #endif |
| 2579 | |
| 2580 | ; |
| 2581 | return 0; |
| 2582 | } |
| 2583 | _ACEOF |
| 2584 | rm -f conftest.$ac_objext |
| 2585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2586 | (eval $ac_compile) 2>conftest.er1 |
| 2587 | ac_status=$? |
| 2588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2589 | rm -f conftest.er1 |
| 2590 | cat conftest.err >&5 |
| 2591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2592 | (exit $ac_status); } && |
| 2593 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2595 | (eval $ac_try) 2>&5 |
| 2596 | ac_status=$? |
| 2597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2598 | (exit $ac_status); }; } && |
| 2599 | { ac_try='test -s conftest.$ac_objext' |
| 2600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2601 | (eval $ac_try) 2>&5 |
| 2602 | ac_status=$? |
| 2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2604 | (exit $ac_status); }; }; then |
| 2605 | ac_compiler_gnu=yes |
| 2606 | else |
| 2607 | echo "$as_me: failed program was:" >&5 |
| 2608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2609 | |
| 2610 | ac_compiler_gnu=no |
| 2611 | fi |
| 2612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2613 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2614 | |
| 2615 | fi |
| 2616 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2617 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2618 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2619 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2620 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2621 | CXXFLAGS="-g" |
| 2622 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2623 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2624 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2626 | else |
| 2627 | cat >conftest.$ac_ext <<_ACEOF |
| 2628 | /* confdefs.h. */ |
| 2629 | _ACEOF |
| 2630 | cat confdefs.h >>conftest.$ac_ext |
| 2631 | cat >>conftest.$ac_ext <<_ACEOF |
| 2632 | /* end confdefs.h. */ |
| 2633 | |
| 2634 | int |
| 2635 | main () |
| 2636 | { |
| 2637 | |
| 2638 | ; |
| 2639 | return 0; |
| 2640 | } |
| 2641 | _ACEOF |
| 2642 | rm -f conftest.$ac_objext |
| 2643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2644 | (eval $ac_compile) 2>conftest.er1 |
| 2645 | ac_status=$? |
| 2646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2647 | rm -f conftest.er1 |
| 2648 | cat conftest.err >&5 |
| 2649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2650 | (exit $ac_status); } && |
| 2651 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2653 | (eval $ac_try) 2>&5 |
| 2654 | ac_status=$? |
| 2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2656 | (exit $ac_status); }; } && |
| 2657 | { ac_try='test -s conftest.$ac_objext' |
| 2658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2659 | (eval $ac_try) 2>&5 |
| 2660 | ac_status=$? |
| 2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2662 | (exit $ac_status); }; }; then |
| 2663 | ac_cv_prog_cxx_g=yes |
| 2664 | else |
| 2665 | echo "$as_me: failed program was:" >&5 |
| 2666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2667 | |
| 2668 | ac_cv_prog_cxx_g=no |
| 2669 | fi |
| 2670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2671 | fi |
| 2672 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2673 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2674 | if test "$ac_test_CXXFLAGS" = set; then |
| 2675 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2676 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2677 | if test "$GXX" = yes; then |
| 2678 | CXXFLAGS="-g -O2" |
| 2679 | else |
| 2680 | CXXFLAGS="-g" |
| 2681 | fi |
| 2682 | else |
| 2683 | if test "$GXX" = yes; then |
| 2684 | CXXFLAGS="-O2" |
| 2685 | else |
| 2686 | CXXFLAGS= |
| 2687 | fi |
| 2688 | fi |
| 2689 | for ac_declaration in \ |
| 2690 | '' \ |
| 2691 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2692 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2693 | 'extern "C" void exit (int) throw ();' \ |
| 2694 | 'extern "C" void exit (int);' \ |
| 2695 | 'void exit (int);' |
| 2696 | do |
| 2697 | cat >conftest.$ac_ext <<_ACEOF |
| 2698 | /* confdefs.h. */ |
| 2699 | _ACEOF |
| 2700 | cat confdefs.h >>conftest.$ac_ext |
| 2701 | cat >>conftest.$ac_ext <<_ACEOF |
| 2702 | /* end confdefs.h. */ |
| 2703 | $ac_declaration |
| 2704 | #include <stdlib.h> |
| 2705 | int |
| 2706 | main () |
| 2707 | { |
| 2708 | exit (42); |
| 2709 | ; |
| 2710 | return 0; |
| 2711 | } |
| 2712 | _ACEOF |
| 2713 | rm -f conftest.$ac_objext |
| 2714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2715 | (eval $ac_compile) 2>conftest.er1 |
| 2716 | ac_status=$? |
| 2717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2718 | rm -f conftest.er1 |
| 2719 | cat conftest.err >&5 |
| 2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2721 | (exit $ac_status); } && |
| 2722 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2724 | (eval $ac_try) 2>&5 |
| 2725 | ac_status=$? |
| 2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2727 | (exit $ac_status); }; } && |
| 2728 | { ac_try='test -s conftest.$ac_objext' |
| 2729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2730 | (eval $ac_try) 2>&5 |
| 2731 | ac_status=$? |
| 2732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2733 | (exit $ac_status); }; }; then |
| 2734 | : |
| 2735 | else |
| 2736 | echo "$as_me: failed program was:" >&5 |
| 2737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2738 | |
| 2739 | continue |
| 2740 | fi |
| 2741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2742 | cat >conftest.$ac_ext <<_ACEOF |
| 2743 | /* confdefs.h. */ |
| 2744 | _ACEOF |
| 2745 | cat confdefs.h >>conftest.$ac_ext |
| 2746 | cat >>conftest.$ac_ext <<_ACEOF |
| 2747 | /* end confdefs.h. */ |
| 2748 | $ac_declaration |
| 2749 | int |
| 2750 | main () |
| 2751 | { |
| 2752 | exit (42); |
| 2753 | ; |
| 2754 | return 0; |
| 2755 | } |
| 2756 | _ACEOF |
| 2757 | rm -f conftest.$ac_objext |
| 2758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2759 | (eval $ac_compile) 2>conftest.er1 |
| 2760 | ac_status=$? |
| 2761 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2762 | rm -f conftest.er1 |
| 2763 | cat conftest.err >&5 |
| 2764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2765 | (exit $ac_status); } && |
| 2766 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| 2767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2768 | (eval $ac_try) 2>&5 |
| 2769 | ac_status=$? |
| 2770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2771 | (exit $ac_status); }; } && |
| 2772 | { ac_try='test -s conftest.$ac_objext' |
| 2773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2774 | (eval $ac_try) 2>&5 |
| 2775 | ac_status=$? |
| 2776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2777 | (exit $ac_status); }; }; then |
| 2778 | break |
| 2779 | else |
| 2780 | echo "$as_me: failed program was:" >&5 |
| 2781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2782 | |
| 2783 | fi |
| 2784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2785 | done |
| 2786 | rm -f conftest* |
| 2787 | if test -n "$ac_declaration"; then |
| 2788 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2789 | echo $ac_declaration >>confdefs.h |
| 2790 | echo '#endif' >>confdefs.h |
| 2791 | fi |
| 2792 | |
| 2793 | ac_ext=c |
| 2794 | ac_cpp='$CPP $CPPFLAGS' |
| 2795 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2796 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2797 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2798 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2799 | if test -n "$ac_tool_prefix"; then |
| 2800 | # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. |
| 2801 | set dummy ${ac_tool_prefix}cpp; ac_word=$2 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2802 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2804 | if test "${ac_cv_prog_CPPBIN+set}" = set; then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2806 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2807 | if test -n "$CPPBIN"; then |
| 2808 | ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test. |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2809 | else |
| 2810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2811 | for as_dir in $PATH |
| 2812 | do |
| 2813 | IFS=$as_save_IFS |
| 2814 | test -z "$as_dir" && as_dir=. |
| 2815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2816 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2817 | ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2819 | break 2 |
| 2820 | fi |
| 2821 | done |
| 2822 | done |
| 2823 | |
| 2824 | fi |
| 2825 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2826 | CPPBIN=$ac_cv_prog_CPPBIN |
| 2827 | if test -n "$CPPBIN"; then |
| 2828 | echo "$as_me:$LINENO: result: $CPPBIN" >&5 |
| 2829 | echo "${ECHO_T}$CPPBIN" >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2830 | else |
| 2831 | echo "$as_me:$LINENO: result: no" >&5 |
| 2832 | echo "${ECHO_T}no" >&6 |
| 2833 | fi |
| 2834 | |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2835 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2836 | if test -z "$ac_cv_prog_CPPBIN"; then |
| 2837 | ac_ct_CPPBIN=$CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2838 | # Extract the first word of "cpp", so it can be a program name with args. |
| 2839 | set dummy cpp; ac_word=$2 |
| 2840 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2842 | if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2844 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2845 | if test -n "$ac_ct_CPPBIN"; then |
| 2846 | 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] | 2847 | else |
| 2848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2849 | for as_dir in $PATH |
| 2850 | do |
| 2851 | IFS=$as_save_IFS |
| 2852 | test -z "$as_dir" && as_dir=. |
| 2853 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2855 | ac_cv_prog_ac_ct_CPPBIN="cpp" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2856 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2857 | break 2 |
| 2858 | fi |
| 2859 | done |
| 2860 | done |
| 2861 | |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2862 | 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] | 2863 | fi |
| 2864 | fi |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2865 | ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN |
| 2866 | if test -n "$ac_ct_CPPBIN"; then |
| 2867 | echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5 |
| 2868 | echo "${ECHO_T}$ac_ct_CPPBIN" >&6 |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2869 | else |
| 2870 | echo "$as_me:$LINENO: result: no" >&5 |
| 2871 | echo "${ECHO_T}no" >&6 |
| 2872 | fi |
| 2873 | |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2874 | CPPBIN=$ac_ct_CPPBIN |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2875 | else |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 2876 | CPPBIN="$ac_cv_prog_CPPBIN" |
Alexandre Julliard | 3e61ef7 | 2004-03-02 06:48:48 +0000 | [diff] [blame] | 2877 | fi |
| 2878 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 2879 | |
| 2880 | echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
| 2881 | echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6 |
| 2882 | if test "${wine_cv_toolsdir+set}" = set; then |
| 2883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2884 | else |
| 2885 | if test -z "$with_wine_tools"; then |
| 2886 | if test "$cross_compiling" = "yes"; then |
| 2887 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 |
| 2888 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} |
| 2889 | { (exit 1); exit 1; }; } |
| 2890 | else |
| 2891 | wine_cv_toolsdir="\$(TOPOBJDIR)" |
| 2892 | fi |
| 2893 | elif test -d "$with_wine_tools/tools/winebuild"; then |
| 2894 | case $with_wine_tools in |
| 2895 | /*) wine_cv_toolsdir="$with_wine_tools" ;; |
| 2896 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; |
| 2897 | esac |
| 2898 | else |
| 2899 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 |
| 2900 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} |
| 2901 | { (exit 1); exit 1; }; } |
| 2902 | fi |
| 2903 | fi |
| 2904 | echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 |
| 2905 | echo "${ECHO_T}$wine_cv_toolsdir" >&6 |
| 2906 | TOOLSDIR=$wine_cv_toolsdir |
| 2907 | |
| 2908 | |
| 2909 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2910 | ac_ext=c |
| 2911 | ac_cpp='$CPP $CPPFLAGS' |
| 2912 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2913 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2914 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2915 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2916 | 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] | 2917 | # On Suns, sometimes $CPP names a directory. |
| 2918 | if test -n "$CPP" && test -d "$CPP"; then |
| 2919 | CPP= |
| 2920 | fi |
| 2921 | if test -z "$CPP"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2922 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2924 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2925 | # Double quotes because CPP needs to be expanded |
| 2926 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2927 | do |
| 2928 | ac_preproc_ok=false |
| 2929 | for ac_c_preproc_warn_flag in '' yes |
| 2930 | do |
| 2931 | # Use a header file that comes with gcc, so configuring glibc |
| 2932 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2933 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2934 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2935 | # 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] | 2936 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2937 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2938 | /* confdefs.h. */ |
| 2939 | _ACEOF |
| 2940 | cat confdefs.h >>conftest.$ac_ext |
| 2941 | cat >>conftest.$ac_ext <<_ACEOF |
| 2942 | /* end confdefs.h. */ |
| 2943 | #ifdef __STDC__ |
| 2944 | # include <limits.h> |
| 2945 | #else |
| 2946 | # include <assert.h> |
| 2947 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2948 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2949 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2950 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2951 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2952 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2953 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2954 | rm -f conftest.er1 |
| 2955 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2957 | (exit $ac_status); } >/dev/null; then |
| 2958 | if test -s conftest.err; then |
| 2959 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2960 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2961 | else |
| 2962 | ac_cpp_err= |
| 2963 | fi |
| 2964 | else |
| 2965 | ac_cpp_err=yes |
| 2966 | fi |
| 2967 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2968 | : |
| 2969 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2970 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2971 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2972 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2973 | # Broken: fails on valid input. |
| 2974 | continue |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2975 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2976 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2977 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2978 | # OK, works on sane cases. Now check whether non-existent headers |
| 2979 | # can be detected and how. |
| 2980 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2981 | /* confdefs.h. */ |
| 2982 | _ACEOF |
| 2983 | cat confdefs.h >>conftest.$ac_ext |
| 2984 | cat >>conftest.$ac_ext <<_ACEOF |
| 2985 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2986 | #include <ac_nonexistent.h> |
| 2987 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2988 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2989 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2990 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2991 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2992 | rm -f conftest.er1 |
| 2993 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2995 | (exit $ac_status); } >/dev/null; then |
| 2996 | if test -s conftest.err; then |
| 2997 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 2998 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2999 | else |
| 3000 | ac_cpp_err= |
| 3001 | fi |
| 3002 | else |
| 3003 | ac_cpp_err=yes |
| 3004 | fi |
| 3005 | if test -z "$ac_cpp_err"; then |
| 3006 | # Broken: success on invalid input. |
| 3007 | continue |
| 3008 | else |
| 3009 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3010 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3011 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3012 | # Passes both tests. |
| 3013 | ac_preproc_ok=: |
| 3014 | break |
| 3015 | fi |
| 3016 | rm -f conftest.err conftest.$ac_ext |
| 3017 | |
| 3018 | done |
| 3019 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3020 | rm -f conftest.err conftest.$ac_ext |
| 3021 | if $ac_preproc_ok; then |
| 3022 | break |
| 3023 | fi |
| 3024 | |
| 3025 | done |
| 3026 | ac_cv_prog_CPP=$CPP |
| 3027 | |
| 3028 | fi |
| 3029 | CPP=$ac_cv_prog_CPP |
| 3030 | else |
| 3031 | ac_cv_prog_CPP=$CPP |
| 3032 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3033 | echo "$as_me:$LINENO: result: $CPP" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3034 | echo "${ECHO_T}$CPP" >&6 |
| 3035 | ac_preproc_ok=false |
| 3036 | for ac_c_preproc_warn_flag in '' yes |
| 3037 | do |
| 3038 | # Use a header file that comes with gcc, so configuring glibc |
| 3039 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3040 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3041 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3042 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3043 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3044 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3045 | /* confdefs.h. */ |
| 3046 | _ACEOF |
| 3047 | cat confdefs.h >>conftest.$ac_ext |
| 3048 | cat >>conftest.$ac_ext <<_ACEOF |
| 3049 | /* end confdefs.h. */ |
| 3050 | #ifdef __STDC__ |
| 3051 | # include <limits.h> |
| 3052 | #else |
| 3053 | # include <assert.h> |
| 3054 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3055 | Syntax error |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3056 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3057 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3058 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3059 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3060 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3061 | rm -f conftest.er1 |
| 3062 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3064 | (exit $ac_status); } >/dev/null; then |
| 3065 | if test -s conftest.err; then |
| 3066 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3067 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3068 | else |
| 3069 | ac_cpp_err= |
| 3070 | fi |
| 3071 | else |
| 3072 | ac_cpp_err=yes |
| 3073 | fi |
| 3074 | if test -z "$ac_cpp_err"; then |
| 3075 | : |
| 3076 | else |
| 3077 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3079 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3080 | # Broken: fails on valid input. |
| 3081 | continue |
| 3082 | fi |
| 3083 | rm -f conftest.err conftest.$ac_ext |
| 3084 | |
| 3085 | # OK, works on sane cases. Now check whether non-existent headers |
| 3086 | # can be detected and how. |
| 3087 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3088 | /* confdefs.h. */ |
| 3089 | _ACEOF |
| 3090 | cat confdefs.h >>conftest.$ac_ext |
| 3091 | cat >>conftest.$ac_ext <<_ACEOF |
| 3092 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3093 | #include <ac_nonexistent.h> |
| 3094 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3095 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3096 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3097 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3098 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3099 | rm -f conftest.er1 |
| 3100 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3102 | (exit $ac_status); } >/dev/null; then |
| 3103 | if test -s conftest.err; then |
| 3104 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3105 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3106 | else |
| 3107 | ac_cpp_err= |
| 3108 | fi |
| 3109 | else |
| 3110 | ac_cpp_err=yes |
| 3111 | fi |
| 3112 | if test -z "$ac_cpp_err"; then |
| 3113 | # Broken: success on invalid input. |
| 3114 | continue |
| 3115 | else |
| 3116 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3118 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3119 | # Passes both tests. |
| 3120 | ac_preproc_ok=: |
| 3121 | break |
| 3122 | fi |
| 3123 | rm -f conftest.err conftest.$ac_ext |
| 3124 | |
| 3125 | done |
| 3126 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3127 | rm -f conftest.err conftest.$ac_ext |
| 3128 | if $ac_preproc_ok; then |
| 3129 | : |
| 3130 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3131 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3132 | See \`config.log' for more details." >&5 |
| 3133 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3134 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3135 | { (exit 1); exit 1; }; } |
| 3136 | fi |
| 3137 | |
| 3138 | ac_ext=c |
| 3139 | ac_cpp='$CPP $CPPFLAGS' |
| 3140 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3141 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3142 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3143 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3144 | |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3145 | |
| 3146 | if test "x$ac_path_x_has_been_run" != xyes; then |
| 3147 | echo "$as_me:$LINENO: checking for X" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3148 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3149 | |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3150 | ac_path_x_has_been_run=yes |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3151 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3152 | # Check whether --with-x or --without-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3153 | if test "${with_x+set}" = set; then |
| 3154 | withval="$with_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3155 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3156 | fi; |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3157 | # $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] | 3158 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3159 | # The user explicitly disabled X. |
| 3160 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3161 | else |
| 3162 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3163 | # Both variables are already set. |
| 3164 | have_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3165 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3166 | if test "${ac_cv_have_x+set}" = set; then |
| 3167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3168 | else |
| 3169 | # 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] | 3170 | ac_x_includes=no ac_x_libraries=no |
| 3171 | rm -fr conftest.dir |
| 3172 | if mkdir conftest.dir; then |
| 3173 | cd conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3174 | # 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] | 3175 | cat >Imakefile <<'_ACEOF' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3176 | acfindx: |
| 3177 | @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] | 3178 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3179 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3180 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 3181 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3182 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 3183 | for ac_extension in a so sl; do |
| 3184 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3185 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 3186 | ac_im_usrlibdir=$ac_im_libdir; break |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3187 | fi |
| 3188 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3189 | # Screen out bogus values from the imake configuration. They are |
| 3190 | # bogus both because they are the default anyway, and because |
| 3191 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3192 | case $ac_im_incroot in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3193 | /usr/include) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3194 | *) 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] | 3195 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3196 | case $ac_im_usrlibdir in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3197 | /usr/lib | /lib) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3198 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3199 | esac |
| 3200 | fi |
| 3201 | cd .. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3202 | rm -fr conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3203 | fi |
| 3204 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3205 | # Standard set of common directories for X headers. |
| 3206 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 3207 | ac_x_header_dirs=' |
| 3208 | /usr/X11/include |
| 3209 | /usr/X11R6/include |
| 3210 | /usr/X11R5/include |
| 3211 | /usr/X11R4/include |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3212 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3213 | /usr/include/X11 |
| 3214 | /usr/include/X11R6 |
| 3215 | /usr/include/X11R5 |
| 3216 | /usr/include/X11R4 |
| 3217 | |
| 3218 | /usr/local/X11/include |
| 3219 | /usr/local/X11R6/include |
| 3220 | /usr/local/X11R5/include |
| 3221 | /usr/local/X11R4/include |
| 3222 | |
| 3223 | /usr/local/include/X11 |
| 3224 | /usr/local/include/X11R6 |
| 3225 | /usr/local/include/X11R5 |
| 3226 | /usr/local/include/X11R4 |
| 3227 | |
| 3228 | /usr/X386/include |
| 3229 | /usr/x386/include |
| 3230 | /usr/XFree86/include/X11 |
| 3231 | |
| 3232 | /usr/include |
| 3233 | /usr/local/include |
| 3234 | /usr/unsupported/include |
| 3235 | /usr/athena/include |
| 3236 | /usr/local/x11r5/include |
| 3237 | /usr/lpp/Xamples/include |
| 3238 | |
| 3239 | /usr/openwin/include |
| 3240 | /usr/openwin/share/include' |
| 3241 | |
| 3242 | if test "$ac_x_includes" = no; then |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3243 | # 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] | 3244 | # First, try using that file with no special directory specified. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3245 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3246 | /* confdefs.h. */ |
| 3247 | _ACEOF |
| 3248 | cat confdefs.h >>conftest.$ac_ext |
| 3249 | cat >>conftest.$ac_ext <<_ACEOF |
| 3250 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3251 | #include <X11/Intrinsic.h> |
| 3252 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3253 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3254 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3255 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3256 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3257 | rm -f conftest.er1 |
| 3258 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3260 | (exit $ac_status); } >/dev/null; then |
| 3261 | if test -s conftest.err; then |
| 3262 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3263 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3264 | else |
| 3265 | ac_cpp_err= |
| 3266 | fi |
| 3267 | else |
| 3268 | ac_cpp_err=yes |
| 3269 | fi |
| 3270 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3271 | # We can compile using X headers with no special include directory. |
| 3272 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3273 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3274 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3276 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3277 | for ac_dir in $ac_x_header_dirs; do |
| 3278 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 3279 | ac_x_includes=$ac_dir |
| 3280 | break |
| 3281 | fi |
| 3282 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3283 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3284 | rm -f conftest.err conftest.$ac_ext |
| 3285 | fi # $ac_x_includes = no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3286 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3287 | if test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3288 | # Check for the libraries. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3289 | # See if we find them without any special options. |
| 3290 | # Don't add to $LIBS permanently. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3291 | ac_save_LIBS=$LIBS |
| 3292 | LIBS="-lXt $LIBS" |
| 3293 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3294 | /* confdefs.h. */ |
| 3295 | _ACEOF |
| 3296 | cat confdefs.h >>conftest.$ac_ext |
| 3297 | cat >>conftest.$ac_ext <<_ACEOF |
| 3298 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3299 | #include <X11/Intrinsic.h> |
| 3300 | int |
| 3301 | main () |
| 3302 | { |
| 3303 | XtMalloc (0) |
| 3304 | ; |
| 3305 | return 0; |
| 3306 | } |
| 3307 | _ACEOF |
| 3308 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3310 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3311 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3313 | rm -f conftest.er1 |
| 3314 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3316 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3319 | (eval $ac_try) 2>&5 |
| 3320 | ac_status=$? |
| 3321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3322 | (exit $ac_status); }; } && |
| 3323 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3325 | (eval $ac_try) 2>&5 |
| 3326 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3328 | (exit $ac_status); }; }; then |
| 3329 | LIBS=$ac_save_LIBS |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3330 | # We can link X programs with no special library path. |
| 3331 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3332 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3333 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3335 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3336 | LIBS=$ac_save_LIBS |
| 3337 | 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] | 3338 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3339 | # 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] | 3340 | for ac_extension in a so sl; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3341 | if test -r $ac_dir/libXt.$ac_extension; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3342 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3343 | break 2 |
| 3344 | fi |
| 3345 | done |
| 3346 | done |
| 3347 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3348 | rm -f conftest.err conftest.$ac_objext \ |
| 3349 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3350 | fi # $ac_x_libraries = no |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3351 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3352 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3353 | # Didn't find X anywhere. Cache the known absence of X. |
| 3354 | ac_cv_have_x="have_x=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3355 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3356 | # Record where we found X for the cache. |
| 3357 | ac_cv_have_x="have_x=yes \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3358 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3359 | fi |
| 3360 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3361 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3362 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3363 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3364 | fi # $with_x != no |
| 3365 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3366 | if test "$have_x" != yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3367 | echo "$as_me:$LINENO: result: $have_x" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3368 | echo "${ECHO_T}$have_x" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3369 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3370 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3371 | # 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] | 3372 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 3373 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3374 | # Update the cache value to reflect the command line values. |
| 3375 | ac_cv_have_x="have_x=yes \ |
| 3376 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3377 | # It might be that x_includes is empty (headers are found in the |
| 3378 | # standard search path. Then output the corresponding message |
| 3379 | ac_out_x_includes=$x_includes |
| 3380 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" |
| 3381 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 |
| 3382 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3383 | fi |
| 3384 | |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 3385 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 3386 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3387 | # 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] | 3388 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3389 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3390 | #define X_DISPLAY_MISSING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3391 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3392 | |
| 3393 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3394 | else |
| 3395 | if test -n "$x_includes"; then |
| 3396 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 3397 | fi |
| 3398 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3399 | # It would also be nice to do this for all -L options, not just this one. |
| 3400 | if test -n "$x_libraries"; then |
| 3401 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3402 | # For Solaris; some versions of Sun CC require a space after -R and |
| 3403 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3404 | case `(uname -sr) 2>/dev/null` in |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3405 | "SunOS 5"*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3406 | 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] | 3407 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 3408 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 3409 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3410 | /* confdefs.h. */ |
| 3411 | _ACEOF |
| 3412 | cat confdefs.h >>conftest.$ac_ext |
| 3413 | cat >>conftest.$ac_ext <<_ACEOF |
| 3414 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3415 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3416 | int |
| 3417 | main () |
| 3418 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3419 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3420 | ; |
| 3421 | return 0; |
| 3422 | } |
| 3423 | _ACEOF |
| 3424 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3426 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3427 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3428 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3429 | rm -f conftest.er1 |
| 3430 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3432 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3433 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3435 | (eval $ac_try) 2>&5 |
| 3436 | ac_status=$? |
| 3437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3438 | (exit $ac_status); }; } && |
| 3439 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3441 | (eval $ac_try) 2>&5 |
| 3442 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3444 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3445 | ac_R_nospace=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3446 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3447 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3449 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3450 | ac_R_nospace=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3451 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3452 | rm -f conftest.err conftest.$ac_objext \ |
| 3453 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3454 | if test $ac_R_nospace = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3455 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3456 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3457 | X_LIBS="$X_LIBS -R$x_libraries" |
| 3458 | else |
| 3459 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3460 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3461 | /* confdefs.h. */ |
| 3462 | _ACEOF |
| 3463 | cat confdefs.h >>conftest.$ac_ext |
| 3464 | cat >>conftest.$ac_ext <<_ACEOF |
| 3465 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3466 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3467 | int |
| 3468 | main () |
| 3469 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3470 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3471 | ; |
| 3472 | return 0; |
| 3473 | } |
| 3474 | _ACEOF |
| 3475 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3477 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3478 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3480 | rm -f conftest.er1 |
| 3481 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3483 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3484 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3486 | (eval $ac_try) 2>&5 |
| 3487 | ac_status=$? |
| 3488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3489 | (exit $ac_status); }; } && |
| 3490 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3492 | (eval $ac_try) 2>&5 |
| 3493 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3495 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3496 | ac_R_space=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3497 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3498 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3500 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3501 | ac_R_space=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3502 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3503 | rm -f conftest.err conftest.$ac_objext \ |
| 3504 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3505 | if test $ac_R_space = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3506 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3507 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3508 | X_LIBS="$X_LIBS -R $x_libraries" |
| 3509 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3510 | echo "$as_me:$LINENO: result: neither works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3511 | echo "${ECHO_T}neither works" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3512 | fi |
| 3513 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3514 | LIBS=$ac_xsave_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3515 | esac |
| 3516 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3517 | |
| 3518 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3519 | # Do this before checking for the system-independent R6 libraries |
| 3520 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3521 | |
| 3522 | if test "$ISC" = yes; then |
| 3523 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 3524 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3525 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 3526 | # libraries were built with DECnet support. And Karl Berry says |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3527 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3528 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 3529 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3530 | /* confdefs.h. */ |
| 3531 | _ACEOF |
| 3532 | cat confdefs.h >>conftest.$ac_ext |
| 3533 | cat >>conftest.$ac_ext <<_ACEOF |
| 3534 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3535 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3536 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3537 | #ifdef __cplusplus |
| 3538 | extern "C" |
| 3539 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3540 | /* 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] | 3541 | builtin and then its argument prototype would still apply. */ |
| 3542 | char XOpenDisplay (); |
| 3543 | int |
| 3544 | main () |
| 3545 | { |
| 3546 | XOpenDisplay (); |
| 3547 | ; |
| 3548 | return 0; |
| 3549 | } |
| 3550 | _ACEOF |
| 3551 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3553 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3554 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3556 | rm -f conftest.er1 |
| 3557 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3559 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3560 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3562 | (eval $ac_try) 2>&5 |
| 3563 | ac_status=$? |
| 3564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3565 | (exit $ac_status); }; } && |
| 3566 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3568 | (eval $ac_try) 2>&5 |
| 3569 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3571 | (exit $ac_status); }; }; then |
| 3572 | : |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3573 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3574 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3576 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3577 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3578 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 3579 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 3580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3581 | else |
| 3582 | ac_check_lib_save_LIBS=$LIBS |
| 3583 | LIBS="-ldnet $LIBS" |
| 3584 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3585 | /* confdefs.h. */ |
| 3586 | _ACEOF |
| 3587 | cat confdefs.h >>conftest.$ac_ext |
| 3588 | cat >>conftest.$ac_ext <<_ACEOF |
| 3589 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3590 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3591 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3592 | #ifdef __cplusplus |
| 3593 | extern "C" |
| 3594 | #endif |
| 3595 | /* We use char because int might match the return type of a gcc2 |
| 3596 | builtin and then its argument prototype would still apply. */ |
| 3597 | char dnet_ntoa (); |
| 3598 | int |
| 3599 | main () |
| 3600 | { |
| 3601 | dnet_ntoa (); |
| 3602 | ; |
| 3603 | return 0; |
| 3604 | } |
| 3605 | _ACEOF |
| 3606 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3608 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3609 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3610 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3611 | rm -f conftest.er1 |
| 3612 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3614 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3617 | (eval $ac_try) 2>&5 |
| 3618 | ac_status=$? |
| 3619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3620 | (exit $ac_status); }; } && |
| 3621 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3623 | (eval $ac_try) 2>&5 |
| 3624 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3626 | (exit $ac_status); }; }; then |
| 3627 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 3628 | else |
| 3629 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3631 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3632 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3633 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3634 | rm -f conftest.err conftest.$ac_objext \ |
| 3635 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3636 | LIBS=$ac_check_lib_save_LIBS |
| 3637 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3638 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3639 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 3640 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3641 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3642 | fi |
| 3643 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3644 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3645 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3646 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 3647 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 3648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3649 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3650 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3651 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3652 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3653 | /* confdefs.h. */ |
| 3654 | _ACEOF |
| 3655 | cat confdefs.h >>conftest.$ac_ext |
| 3656 | cat >>conftest.$ac_ext <<_ACEOF |
| 3657 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3658 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3659 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3660 | #ifdef __cplusplus |
| 3661 | extern "C" |
| 3662 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3663 | /* 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] | 3664 | builtin and then its argument prototype would still apply. */ |
| 3665 | char dnet_ntoa (); |
| 3666 | int |
| 3667 | main () |
| 3668 | { |
| 3669 | dnet_ntoa (); |
| 3670 | ; |
| 3671 | return 0; |
| 3672 | } |
| 3673 | _ACEOF |
| 3674 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3676 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3677 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3679 | rm -f conftest.er1 |
| 3680 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3682 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3683 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3685 | (eval $ac_try) 2>&5 |
| 3686 | ac_status=$? |
| 3687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3688 | (exit $ac_status); }; } && |
| 3689 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3691 | (eval $ac_try) 2>&5 |
| 3692 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3694 | (exit $ac_status); }; }; then |
| 3695 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3696 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3697 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3698 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3699 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3700 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3701 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3702 | rm -f conftest.err conftest.$ac_objext \ |
| 3703 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3704 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3705 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3706 | 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] | 3707 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 3708 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3709 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3710 | fi |
| 3711 | |
| 3712 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3713 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3714 | rm -f conftest.err conftest.$ac_objext \ |
| 3715 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3716 | LIBS="$ac_xsave_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3717 | |
| 3718 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 3719 | # to get the SysV transport functions. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3720 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3721 | # needs -lnsl. |
| 3722 | # The nsl library prevents programs from opening the X display |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3723 | # on Irix 5.2, according to T.E. Dickey. |
| 3724 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 3725 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3726 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3727 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 3728 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 3729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3730 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3731 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3732 | /* confdefs.h. */ |
| 3733 | _ACEOF |
| 3734 | cat confdefs.h >>conftest.$ac_ext |
| 3735 | cat >>conftest.$ac_ext <<_ACEOF |
| 3736 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3737 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 3738 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3739 | #define gethostbyname innocuous_gethostbyname |
| 3740 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3741 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3742 | which can conflict with char gethostbyname (); below. |
| 3743 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3744 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3745 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3746 | #ifdef __STDC__ |
| 3747 | # include <limits.h> |
| 3748 | #else |
| 3749 | # include <assert.h> |
| 3750 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3751 | |
| 3752 | #undef gethostbyname |
| 3753 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3754 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3755 | #ifdef __cplusplus |
| 3756 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3757 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3758 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3759 | /* 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] | 3760 | builtin and then its argument prototype would still apply. */ |
| 3761 | char gethostbyname (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3762 | /* The GNU C library defines this for functions which it implements |
| 3763 | to always fail with ENOSYS. Some functions are actually named |
| 3764 | something starting with __ and the normal name is an alias. */ |
| 3765 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 3766 | choke me |
| 3767 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3768 | char (*f) () = gethostbyname; |
| 3769 | #endif |
| 3770 | #ifdef __cplusplus |
| 3771 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3772 | #endif |
| 3773 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3774 | int |
| 3775 | main () |
| 3776 | { |
| 3777 | return f != gethostbyname; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3778 | ; |
| 3779 | return 0; |
| 3780 | } |
| 3781 | _ACEOF |
| 3782 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3784 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3785 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3787 | rm -f conftest.er1 |
| 3788 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3790 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3793 | (eval $ac_try) 2>&5 |
| 3794 | ac_status=$? |
| 3795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3796 | (exit $ac_status); }; } && |
| 3797 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3799 | (eval $ac_try) 2>&5 |
| 3800 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3802 | (exit $ac_status); }; }; then |
| 3803 | ac_cv_func_gethostbyname=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3804 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3805 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3807 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3808 | ac_cv_func_gethostbyname=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3809 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3810 | rm -f conftest.err conftest.$ac_objext \ |
| 3811 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3812 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3813 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3814 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3815 | |
| 3816 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3817 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3818 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 3819 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 3820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3821 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3822 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3823 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3824 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3825 | /* confdefs.h. */ |
| 3826 | _ACEOF |
| 3827 | cat confdefs.h >>conftest.$ac_ext |
| 3828 | cat >>conftest.$ac_ext <<_ACEOF |
| 3829 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3830 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3831 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3832 | #ifdef __cplusplus |
| 3833 | extern "C" |
| 3834 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3835 | /* 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] | 3836 | builtin and then its argument prototype would still apply. */ |
| 3837 | char gethostbyname (); |
| 3838 | int |
| 3839 | main () |
| 3840 | { |
| 3841 | gethostbyname (); |
| 3842 | ; |
| 3843 | return 0; |
| 3844 | } |
| 3845 | _ACEOF |
| 3846 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3848 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3849 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3851 | rm -f conftest.er1 |
| 3852 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3854 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3855 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3857 | (eval $ac_try) 2>&5 |
| 3858 | ac_status=$? |
| 3859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3860 | (exit $ac_status); }; } && |
| 3861 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3863 | (eval $ac_try) 2>&5 |
| 3864 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3866 | (exit $ac_status); }; }; then |
| 3867 | ac_cv_lib_nsl_gethostbyname=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3868 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3869 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3871 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3872 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3873 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3874 | rm -f conftest.err conftest.$ac_objext \ |
| 3875 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3876 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3877 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3878 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3879 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 3880 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3881 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3882 | fi |
| 3883 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3884 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3885 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3886 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 3887 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 3888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3889 | else |
| 3890 | ac_check_lib_save_LIBS=$LIBS |
| 3891 | LIBS="-lbsd $LIBS" |
| 3892 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3893 | /* confdefs.h. */ |
| 3894 | _ACEOF |
| 3895 | cat confdefs.h >>conftest.$ac_ext |
| 3896 | cat >>conftest.$ac_ext <<_ACEOF |
| 3897 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3898 | |
| 3899 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3900 | #ifdef __cplusplus |
| 3901 | extern "C" |
| 3902 | #endif |
| 3903 | /* We use char because int might match the return type of a gcc2 |
| 3904 | builtin and then its argument prototype would still apply. */ |
| 3905 | char gethostbyname (); |
| 3906 | int |
| 3907 | main () |
| 3908 | { |
| 3909 | gethostbyname (); |
| 3910 | ; |
| 3911 | return 0; |
| 3912 | } |
| 3913 | _ACEOF |
| 3914 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3916 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3917 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3919 | rm -f conftest.er1 |
| 3920 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3922 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3923 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3925 | (eval $ac_try) 2>&5 |
| 3926 | ac_status=$? |
| 3927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3928 | (exit $ac_status); }; } && |
| 3929 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3931 | (eval $ac_try) 2>&5 |
| 3932 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3934 | (exit $ac_status); }; }; then |
| 3935 | ac_cv_lib_bsd_gethostbyname=yes |
| 3936 | else |
| 3937 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3939 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3940 | ac_cv_lib_bsd_gethostbyname=no |
| 3941 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3942 | rm -f conftest.err conftest.$ac_objext \ |
| 3943 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3944 | LIBS=$ac_check_lib_save_LIBS |
| 3945 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3946 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3947 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 3948 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 3949 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 3950 | fi |
| 3951 | |
| 3952 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3953 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3954 | |
| 3955 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3956 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 3957 | # 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] | 3958 | # on later versions), says Simon Leinen: it contains gethostby* |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3959 | # variants that don't use the name server (or something). -lsocket |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3960 | # must be given before -lnsl if both are needed. We assume that |
| 3961 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3962 | echo "$as_me:$LINENO: checking for connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3963 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 3964 | if test "${ac_cv_func_connect+set}" = set; then |
| 3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3966 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3967 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3968 | /* confdefs.h. */ |
| 3969 | _ACEOF |
| 3970 | cat confdefs.h >>conftest.$ac_ext |
| 3971 | cat >>conftest.$ac_ext <<_ACEOF |
| 3972 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3973 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 3974 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3975 | #define connect innocuous_connect |
| 3976 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3977 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3978 | which can conflict with char connect (); below. |
| 3979 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3980 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3981 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3982 | #ifdef __STDC__ |
| 3983 | # include <limits.h> |
| 3984 | #else |
| 3985 | # include <assert.h> |
| 3986 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 3987 | |
| 3988 | #undef connect |
| 3989 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3990 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3991 | #ifdef __cplusplus |
| 3992 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3993 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3994 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3995 | /* 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] | 3996 | builtin and then its argument prototype would still apply. */ |
| 3997 | char connect (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3998 | /* The GNU C library defines this for functions which it implements |
| 3999 | to always fail with ENOSYS. Some functions are actually named |
| 4000 | something starting with __ and the normal name is an alias. */ |
| 4001 | #if defined (__stub_connect) || defined (__stub___connect) |
| 4002 | choke me |
| 4003 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4004 | char (*f) () = connect; |
| 4005 | #endif |
| 4006 | #ifdef __cplusplus |
| 4007 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4008 | #endif |
| 4009 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4010 | int |
| 4011 | main () |
| 4012 | { |
| 4013 | return f != connect; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4014 | ; |
| 4015 | return 0; |
| 4016 | } |
| 4017 | _ACEOF |
| 4018 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4020 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4021 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4023 | rm -f conftest.er1 |
| 4024 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4026 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4027 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4029 | (eval $ac_try) 2>&5 |
| 4030 | ac_status=$? |
| 4031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4032 | (exit $ac_status); }; } && |
| 4033 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4035 | (eval $ac_try) 2>&5 |
| 4036 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4038 | (exit $ac_status); }; }; then |
| 4039 | ac_cv_func_connect=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4040 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4041 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4043 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4044 | ac_cv_func_connect=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4045 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4046 | rm -f conftest.err conftest.$ac_objext \ |
| 4047 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4048 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4049 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4050 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4051 | |
| 4052 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4053 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4054 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 4055 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 4056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4057 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4058 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4059 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4060 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4061 | /* confdefs.h. */ |
| 4062 | _ACEOF |
| 4063 | cat confdefs.h >>conftest.$ac_ext |
| 4064 | cat >>conftest.$ac_ext <<_ACEOF |
| 4065 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4066 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 4067 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4068 | #ifdef __cplusplus |
| 4069 | extern "C" |
| 4070 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4071 | /* 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] | 4072 | builtin and then its argument prototype would still apply. */ |
| 4073 | char connect (); |
| 4074 | int |
| 4075 | main () |
| 4076 | { |
| 4077 | connect (); |
| 4078 | ; |
| 4079 | return 0; |
| 4080 | } |
| 4081 | _ACEOF |
| 4082 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4084 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4085 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4087 | rm -f conftest.er1 |
| 4088 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4090 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4091 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4093 | (eval $ac_try) 2>&5 |
| 4094 | ac_status=$? |
| 4095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4096 | (exit $ac_status); }; } && |
| 4097 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4099 | (eval $ac_try) 2>&5 |
| 4100 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4102 | (exit $ac_status); }; }; then |
| 4103 | ac_cv_lib_socket_connect=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4104 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4105 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4107 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4108 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4109 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4110 | rm -f conftest.err conftest.$ac_objext \ |
| 4111 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4112 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4113 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4114 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4115 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 4116 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4117 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4118 | fi |
| 4119 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4120 | fi |
| 4121 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4122 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4123 | echo "$as_me:$LINENO: checking for remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4124 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 4125 | if test "${ac_cv_func_remove+set}" = set; then |
| 4126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4127 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4128 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4129 | /* confdefs.h. */ |
| 4130 | _ACEOF |
| 4131 | cat confdefs.h >>conftest.$ac_ext |
| 4132 | cat >>conftest.$ac_ext <<_ACEOF |
| 4133 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4134 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 4135 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4136 | #define remove innocuous_remove |
| 4137 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4138 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4139 | which can conflict with char remove (); below. |
| 4140 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4141 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4142 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4143 | #ifdef __STDC__ |
| 4144 | # include <limits.h> |
| 4145 | #else |
| 4146 | # include <assert.h> |
| 4147 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4148 | |
| 4149 | #undef remove |
| 4150 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4151 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4152 | #ifdef __cplusplus |
| 4153 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4154 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4155 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4156 | /* 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] | 4157 | builtin and then its argument prototype would still apply. */ |
| 4158 | char remove (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4159 | /* The GNU C library defines this for functions which it implements |
| 4160 | to always fail with ENOSYS. Some functions are actually named |
| 4161 | something starting with __ and the normal name is an alias. */ |
| 4162 | #if defined (__stub_remove) || defined (__stub___remove) |
| 4163 | choke me |
| 4164 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4165 | char (*f) () = remove; |
| 4166 | #endif |
| 4167 | #ifdef __cplusplus |
| 4168 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4169 | #endif |
| 4170 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4171 | int |
| 4172 | main () |
| 4173 | { |
| 4174 | return f != remove; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4175 | ; |
| 4176 | return 0; |
| 4177 | } |
| 4178 | _ACEOF |
| 4179 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4181 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4182 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4184 | rm -f conftest.er1 |
| 4185 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4187 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4188 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4190 | (eval $ac_try) 2>&5 |
| 4191 | ac_status=$? |
| 4192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4193 | (exit $ac_status); }; } && |
| 4194 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4196 | (eval $ac_try) 2>&5 |
| 4197 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4199 | (exit $ac_status); }; }; then |
| 4200 | ac_cv_func_remove=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4201 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4202 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4204 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4205 | ac_cv_func_remove=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4206 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4207 | rm -f conftest.err conftest.$ac_objext \ |
| 4208 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4209 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4210 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4211 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4212 | |
| 4213 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4214 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4215 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 4216 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 4217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4218 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4219 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4220 | LIBS="-lposix $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4221 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4222 | /* confdefs.h. */ |
| 4223 | _ACEOF |
| 4224 | cat confdefs.h >>conftest.$ac_ext |
| 4225 | cat >>conftest.$ac_ext <<_ACEOF |
| 4226 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4227 | |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4228 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4229 | #ifdef __cplusplus |
| 4230 | extern "C" |
| 4231 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4232 | /* 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] | 4233 | builtin and then its argument prototype would still apply. */ |
| 4234 | char remove (); |
| 4235 | int |
| 4236 | main () |
| 4237 | { |
| 4238 | remove (); |
| 4239 | ; |
| 4240 | return 0; |
| 4241 | } |
| 4242 | _ACEOF |
| 4243 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4245 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4246 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4248 | rm -f conftest.er1 |
| 4249 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4251 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4254 | (eval $ac_try) 2>&5 |
| 4255 | ac_status=$? |
| 4256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4257 | (exit $ac_status); }; } && |
| 4258 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4260 | (eval $ac_try) 2>&5 |
| 4261 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4263 | (exit $ac_status); }; }; then |
| 4264 | ac_cv_lib_posix_remove=yes |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4265 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4266 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4268 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4269 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4270 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4271 | rm -f conftest.err conftest.$ac_objext \ |
| 4272 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4273 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4274 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4275 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4276 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 4277 | if test $ac_cv_lib_posix_remove = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4278 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4279 | fi |
| 4280 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4281 | fi |
| 4282 | |
| 4283 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4284 | echo "$as_me:$LINENO: checking for shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4285 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 4286 | if test "${ac_cv_func_shmat+set}" = set; then |
| 4287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4288 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4289 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4290 | /* confdefs.h. */ |
| 4291 | _ACEOF |
| 4292 | cat confdefs.h >>conftest.$ac_ext |
| 4293 | cat >>conftest.$ac_ext <<_ACEOF |
| 4294 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4295 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 4296 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4297 | #define shmat innocuous_shmat |
| 4298 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4299 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4300 | which can conflict with char shmat (); below. |
| 4301 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4302 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4303 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4304 | #ifdef __STDC__ |
| 4305 | # include <limits.h> |
| 4306 | #else |
| 4307 | # include <assert.h> |
| 4308 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4309 | |
| 4310 | #undef shmat |
| 4311 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4312 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4313 | #ifdef __cplusplus |
| 4314 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4315 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4316 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4317 | /* 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] | 4318 | builtin and then its argument prototype would still apply. */ |
| 4319 | char shmat (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4320 | /* The GNU C library defines this for functions which it implements |
| 4321 | to always fail with ENOSYS. Some functions are actually named |
| 4322 | something starting with __ and the normal name is an alias. */ |
| 4323 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 4324 | choke me |
| 4325 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4326 | char (*f) () = shmat; |
| 4327 | #endif |
| 4328 | #ifdef __cplusplus |
| 4329 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4330 | #endif |
| 4331 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4332 | int |
| 4333 | main () |
| 4334 | { |
| 4335 | return f != shmat; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4336 | ; |
| 4337 | return 0; |
| 4338 | } |
| 4339 | _ACEOF |
| 4340 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4342 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4343 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4344 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4345 | rm -f conftest.er1 |
| 4346 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4348 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4349 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4351 | (eval $ac_try) 2>&5 |
| 4352 | ac_status=$? |
| 4353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4354 | (exit $ac_status); }; } && |
| 4355 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4357 | (eval $ac_try) 2>&5 |
| 4358 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4360 | (exit $ac_status); }; }; then |
| 4361 | ac_cv_func_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4362 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4363 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4365 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4366 | ac_cv_func_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4367 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4368 | rm -f conftest.err conftest.$ac_objext \ |
| 4369 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4370 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4371 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4372 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4373 | |
| 4374 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4375 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4376 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 4377 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 4378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4379 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4380 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4381 | LIBS="-lipc $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4382 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4383 | /* confdefs.h. */ |
| 4384 | _ACEOF |
| 4385 | cat confdefs.h >>conftest.$ac_ext |
| 4386 | cat >>conftest.$ac_ext <<_ACEOF |
| 4387 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4388 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4389 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4390 | #ifdef __cplusplus |
| 4391 | extern "C" |
| 4392 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4393 | /* 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] | 4394 | builtin and then its argument prototype would still apply. */ |
| 4395 | char shmat (); |
| 4396 | int |
| 4397 | main () |
| 4398 | { |
| 4399 | shmat (); |
| 4400 | ; |
| 4401 | return 0; |
| 4402 | } |
| 4403 | _ACEOF |
| 4404 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4406 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4407 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4408 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4409 | rm -f conftest.er1 |
| 4410 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4412 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4413 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4415 | (eval $ac_try) 2>&5 |
| 4416 | ac_status=$? |
| 4417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4418 | (exit $ac_status); }; } && |
| 4419 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4421 | (eval $ac_try) 2>&5 |
| 4422 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4424 | (exit $ac_status); }; }; then |
| 4425 | ac_cv_lib_ipc_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4426 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4427 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4429 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4430 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4431 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4432 | rm -f conftest.err conftest.$ac_objext \ |
| 4433 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4434 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4435 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4436 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4437 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 4438 | if test $ac_cv_lib_ipc_shmat = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4439 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4440 | fi |
| 4441 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4442 | fi |
| 4443 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4444 | |
| 4445 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4446 | ac_save_LDFLAGS=$LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4447 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 4448 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 4449 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 4450 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 4451 | # These have to be linked with before -lX11, unlike the other |
| 4452 | # libraries we check for below, so use a different variable. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4453 | # John Interrante, Karl Berry |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4454 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4455 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 4456 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 4457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4458 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4459 | ac_check_lib_save_LIBS=$LIBS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 4460 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4461 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4462 | /* confdefs.h. */ |
| 4463 | _ACEOF |
| 4464 | cat confdefs.h >>conftest.$ac_ext |
| 4465 | cat >>conftest.$ac_ext <<_ACEOF |
| 4466 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4467 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4468 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4469 | #ifdef __cplusplus |
| 4470 | extern "C" |
| 4471 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4472 | /* 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] | 4473 | builtin and then its argument prototype would still apply. */ |
| 4474 | char IceConnectionNumber (); |
| 4475 | int |
| 4476 | main () |
| 4477 | { |
| 4478 | IceConnectionNumber (); |
| 4479 | ; |
| 4480 | return 0; |
| 4481 | } |
| 4482 | _ACEOF |
| 4483 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4485 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4486 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4488 | rm -f conftest.er1 |
| 4489 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4491 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4492 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4494 | (eval $ac_try) 2>&5 |
| 4495 | ac_status=$? |
| 4496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4497 | (exit $ac_status); }; } && |
| 4498 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4500 | (eval $ac_try) 2>&5 |
| 4501 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4503 | (exit $ac_status); }; }; then |
| 4504 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4505 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4506 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4508 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4509 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4510 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4511 | rm -f conftest.err conftest.$ac_objext \ |
| 4512 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4513 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4514 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4515 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4516 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 4517 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4518 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4519 | fi |
| 4520 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4521 | LDFLAGS=$ac_save_LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 4522 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4523 | fi |
| 4524 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4525 | for ac_prog in flex lex |
| 4526 | do |
| 4527 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4528 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4529 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4531 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 4532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4533 | else |
| 4534 | if test -n "$LEX"; then |
| 4535 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 4536 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4538 | for as_dir in $PATH |
| 4539 | do |
| 4540 | IFS=$as_save_IFS |
| 4541 | test -z "$as_dir" && as_dir=. |
| 4542 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4544 | ac_cv_prog_LEX="$ac_prog" |
| 4545 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4546 | break 2 |
| 4547 | fi |
| 4548 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4549 | done |
| 4550 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4551 | fi |
| 4552 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4553 | LEX=$ac_cv_prog_LEX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4554 | if test -n "$LEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4555 | echo "$as_me:$LINENO: result: $LEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4556 | echo "${ECHO_T}$LEX" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4557 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4558 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4559 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4560 | fi |
| 4561 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4562 | test -n "$LEX" && break |
| 4563 | done |
| 4564 | test -n "$LEX" || LEX=":" |
| 4565 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4566 | if test -z "$LEXLIB" |
| 4567 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4568 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4569 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 4570 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 4571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4572 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4573 | ac_check_lib_save_LIBS=$LIBS |
| 4574 | LIBS="-lfl $LIBS" |
| 4575 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4576 | /* confdefs.h. */ |
| 4577 | _ACEOF |
| 4578 | cat confdefs.h >>conftest.$ac_ext |
| 4579 | cat >>conftest.$ac_ext <<_ACEOF |
| 4580 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4581 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 4582 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4583 | #ifdef __cplusplus |
| 4584 | extern "C" |
| 4585 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 4586 | /* 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] | 4587 | builtin and then its argument prototype would still apply. */ |
| 4588 | char yywrap (); |
| 4589 | int |
| 4590 | main () |
| 4591 | { |
| 4592 | yywrap (); |
| 4593 | ; |
| 4594 | return 0; |
| 4595 | } |
| 4596 | _ACEOF |
| 4597 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4599 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4600 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4602 | rm -f conftest.er1 |
| 4603 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4605 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4606 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4608 | (eval $ac_try) 2>&5 |
| 4609 | ac_status=$? |
| 4610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4611 | (exit $ac_status); }; } && |
| 4612 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4614 | (eval $ac_try) 2>&5 |
| 4615 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4617 | (exit $ac_status); }; }; then |
| 4618 | ac_cv_lib_fl_yywrap=yes |
| 4619 | else |
| 4620 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4622 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4623 | ac_cv_lib_fl_yywrap=no |
| 4624 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4625 | rm -f conftest.err conftest.$ac_objext \ |
| 4626 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4627 | LIBS=$ac_check_lib_save_LIBS |
| 4628 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4629 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4630 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 4631 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 4632 | LEXLIB="-lfl" |
| 4633 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4634 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4635 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 4636 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 4637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4638 | else |
| 4639 | ac_check_lib_save_LIBS=$LIBS |
| 4640 | LIBS="-ll $LIBS" |
| 4641 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4642 | /* confdefs.h. */ |
| 4643 | _ACEOF |
| 4644 | cat confdefs.h >>conftest.$ac_ext |
| 4645 | cat >>conftest.$ac_ext <<_ACEOF |
| 4646 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4647 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4648 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4649 | #ifdef __cplusplus |
| 4650 | extern "C" |
| 4651 | #endif |
| 4652 | /* We use char because int might match the return type of a gcc2 |
| 4653 | builtin and then its argument prototype would still apply. */ |
| 4654 | char yywrap (); |
| 4655 | int |
| 4656 | main () |
| 4657 | { |
| 4658 | yywrap (); |
| 4659 | ; |
| 4660 | return 0; |
| 4661 | } |
| 4662 | _ACEOF |
| 4663 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4665 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4666 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4668 | rm -f conftest.er1 |
| 4669 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4671 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4672 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4674 | (eval $ac_try) 2>&5 |
| 4675 | ac_status=$? |
| 4676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4677 | (exit $ac_status); }; } && |
| 4678 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4680 | (eval $ac_try) 2>&5 |
| 4681 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4683 | (exit $ac_status); }; }; then |
| 4684 | ac_cv_lib_l_yywrap=yes |
| 4685 | else |
| 4686 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4688 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4689 | ac_cv_lib_l_yywrap=no |
| 4690 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4691 | rm -f conftest.err conftest.$ac_objext \ |
| 4692 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4693 | LIBS=$ac_check_lib_save_LIBS |
| 4694 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4695 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4696 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 4697 | if test $ac_cv_lib_l_yywrap = yes; then |
| 4698 | LEXLIB="-ll" |
| 4699 | fi |
| 4700 | |
| 4701 | fi |
| 4702 | |
| 4703 | fi |
| 4704 | |
| 4705 | if test "x$LEX" != "x:"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4706 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4707 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 4708 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 4709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4710 | else |
| 4711 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 4712 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4713 | cat >conftest.l <<_ACEOF |
| 4714 | %% |
| 4715 | %% |
| 4716 | _ACEOF |
| 4717 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 4718 | (eval $LEX conftest.l) 2>&5 |
| 4719 | ac_status=$? |
| 4720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4721 | (exit $ac_status); } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4722 | if test -f lex.yy.c; then |
| 4723 | ac_cv_prog_lex_root=lex.yy |
| 4724 | elif test -f lexyy.c; then |
| 4725 | ac_cv_prog_lex_root=lexyy |
| 4726 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4727 | { { 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] | 4728 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 4729 | { (exit 1); exit 1; }; } |
| 4730 | fi |
| 4731 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4732 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4733 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4734 | rm -f conftest.l |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4735 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 4736 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4737 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4738 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 4739 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 4740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4741 | else |
| 4742 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 4743 | # default is implementation-dependent. Figure out which it is, since |
| 4744 | # not all implementations provide the %pointer and %array declarations. |
| 4745 | ac_cv_prog_lex_yytext_pointer=no |
| 4746 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 4747 | ac_save_LIBS=$LIBS |
| 4748 | LIBS="$LIBS $LEXLIB" |
| 4749 | cat >conftest.$ac_ext <<_ACEOF |
| 4750 | `cat $LEX_OUTPUT_ROOT.c` |
| 4751 | _ACEOF |
| 4752 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4754 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4755 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4757 | rm -f conftest.er1 |
| 4758 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4760 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4763 | (eval $ac_try) 2>&5 |
| 4764 | ac_status=$? |
| 4765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4766 | (exit $ac_status); }; } && |
| 4767 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4769 | (eval $ac_try) 2>&5 |
| 4770 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4772 | (exit $ac_status); }; }; then |
| 4773 | ac_cv_prog_lex_yytext_pointer=yes |
| 4774 | else |
| 4775 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4777 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4778 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 4779 | rm -f conftest.err conftest.$ac_objext \ |
| 4780 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4781 | LIBS=$ac_save_LIBS |
| 4782 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 4783 | |
| 4784 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4785 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4786 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 4787 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 4788 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4789 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4790 | #define YYTEXT_POINTER 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4791 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4792 | |
| 4793 | fi |
| 4794 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4795 | fi |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4796 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4797 | for ac_prog in $LEX flex lex |
| 4798 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4799 | # 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] | 4800 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4801 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4803 | if test "${ac_cv_prog_XLEX+set}" = set; then |
| 4804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4805 | else |
| 4806 | if test -n "$XLEX"; then |
| 4807 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 4808 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4810 | for as_dir in $PATH |
| 4811 | do |
| 4812 | IFS=$as_save_IFS |
| 4813 | test -z "$as_dir" && as_dir=. |
| 4814 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4815 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4816 | ac_cv_prog_XLEX="$ac_prog" |
| 4817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4818 | break 2 |
| 4819 | fi |
| 4820 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4821 | done |
| 4822 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4823 | fi |
| 4824 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4825 | XLEX=$ac_cv_prog_XLEX |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4826 | if test -n "$XLEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4827 | echo "$as_me:$LINENO: result: $XLEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4828 | echo "${ECHO_T}$XLEX" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4829 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4830 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4831 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4832 | fi |
| 4833 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4834 | test -n "$XLEX" && break |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4835 | done |
| 4836 | test -n "$XLEX" || XLEX="none" |
| 4837 | |
| 4838 | if test "$XLEX" = "none" |
| 4839 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4840 | { { 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] | 4841 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
| 4842 | { (exit 1); exit 1; }; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4843 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4844 | |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 4845 | for ac_prog in bison |
| 4846 | do |
| 4847 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4848 | set dummy $ac_prog; ac_word=$2 |
| 4849 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4851 | if test "${ac_cv_prog_BISON+set}" = set; then |
| 4852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4853 | else |
| 4854 | if test -n "$BISON"; then |
| 4855 | ac_cv_prog_BISON="$BISON" # Let the user override the test. |
| 4856 | else |
| 4857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4858 | for as_dir in $PATH |
| 4859 | do |
| 4860 | IFS=$as_save_IFS |
| 4861 | test -z "$as_dir" && as_dir=. |
| 4862 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4863 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4864 | ac_cv_prog_BISON="$ac_prog" |
| 4865 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4866 | break 2 |
| 4867 | fi |
| 4868 | done |
| 4869 | done |
| 4870 | |
| 4871 | fi |
| 4872 | fi |
| 4873 | BISON=$ac_cv_prog_BISON |
| 4874 | if test -n "$BISON"; then |
| 4875 | echo "$as_me:$LINENO: result: $BISON" >&5 |
| 4876 | echo "${ECHO_T}$BISON" >&6 |
| 4877 | else |
| 4878 | echo "$as_me:$LINENO: result: no" >&5 |
| 4879 | echo "${ECHO_T}no" >&6 |
| 4880 | fi |
| 4881 | |
| 4882 | test -n "$BISON" && break |
| 4883 | done |
| 4884 | test -n "$BISON" || BISON="none" |
| 4885 | |
| 4886 | if test "$BISON" = "none" |
| 4887 | then |
| 4888 | { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5 |
| 4889 | echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;} |
| 4890 | { (exit 1); exit 1; }; } |
| 4891 | fi |
| 4892 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4893 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4894 | for ac_prog in gas as |
| 4895 | do |
| 4896 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4897 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4898 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4900 | if test "${ac_cv_prog_AS+set}" = set; then |
| 4901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4902 | else |
| 4903 | if test -n "$AS"; then |
| 4904 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 4905 | else |
| 4906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4907 | for as_dir in $PATH |
| 4908 | do |
| 4909 | IFS=$as_save_IFS |
| 4910 | test -z "$as_dir" && as_dir=. |
| 4911 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4912 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4913 | ac_cv_prog_AS="$ac_tool_prefix$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4915 | break 2 |
| 4916 | fi |
| 4917 | done |
| 4918 | done |
| 4919 | |
| 4920 | fi |
| 4921 | fi |
| 4922 | AS=$ac_cv_prog_AS |
| 4923 | if test -n "$AS"; then |
| 4924 | echo "$as_me:$LINENO: result: $AS" >&5 |
| 4925 | echo "${ECHO_T}$AS" >&6 |
| 4926 | else |
| 4927 | echo "$as_me:$LINENO: result: no" >&5 |
| 4928 | echo "${ECHO_T}no" >&6 |
| 4929 | fi |
| 4930 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4931 | test -n "$AS" && break |
| 4932 | done |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4933 | fi |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4934 | if test -z "$AS"; then |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4935 | ac_ct_AS=$AS |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4936 | for ac_prog in gas as |
| 4937 | do |
| 4938 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4939 | set dummy $ac_prog; ac_word=$2 |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4942 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
| 4943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4944 | else |
| 4945 | if test -n "$ac_ct_AS"; then |
| 4946 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 4947 | else |
| 4948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4949 | for as_dir in $PATH |
| 4950 | do |
| 4951 | IFS=$as_save_IFS |
| 4952 | test -z "$as_dir" && as_dir=. |
| 4953 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4955 | ac_cv_prog_ac_ct_AS="$ac_prog" |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4957 | break 2 |
| 4958 | fi |
| 4959 | done |
| 4960 | done |
| 4961 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4962 | fi |
| 4963 | fi |
| 4964 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 4965 | if test -n "$ac_ct_AS"; then |
| 4966 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
| 4967 | echo "${ECHO_T}$ac_ct_AS" >&6 |
| 4968 | else |
| 4969 | echo "$as_me:$LINENO: result: no" >&5 |
| 4970 | echo "${ECHO_T}no" >&6 |
| 4971 | fi |
| 4972 | |
Alexandre Julliard | c80c290 | 2003-05-06 18:41:52 +0000 | [diff] [blame] | 4973 | test -n "$ac_ct_AS" && break |
| 4974 | done |
| 4975 | test -n "$ac_ct_AS" || ac_ct_AS="as" |
| 4976 | |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4977 | AS=$ac_ct_AS |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 4978 | fi |
| 4979 | |
| 4980 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 4981 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. |
| 4982 | set dummy ${ac_tool_prefix}ld; ac_word=$2 |
| 4983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4985 | if test "${ac_cv_prog_LD+set}" = set; then |
| 4986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4987 | else |
| 4988 | if test -n "$LD"; then |
| 4989 | ac_cv_prog_LD="$LD" # Let the user override the test. |
| 4990 | else |
| 4991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4992 | for as_dir in $PATH |
| 4993 | do |
| 4994 | IFS=$as_save_IFS |
| 4995 | test -z "$as_dir" && as_dir=. |
| 4996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4997 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4998 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
| 4999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5000 | break 2 |
| 5001 | fi |
| 5002 | done |
| 5003 | done |
| 5004 | |
| 5005 | fi |
| 5006 | fi |
| 5007 | LD=$ac_cv_prog_LD |
| 5008 | if test -n "$LD"; then |
| 5009 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 5010 | echo "${ECHO_T}$LD" >&6 |
| 5011 | else |
| 5012 | echo "$as_me:$LINENO: result: no" >&5 |
| 5013 | echo "${ECHO_T}no" >&6 |
| 5014 | fi |
| 5015 | |
| 5016 | fi |
| 5017 | if test -z "$ac_cv_prog_LD"; then |
| 5018 | ac_ct_LD=$LD |
| 5019 | # Extract the first word of "ld", so it can be a program name with args. |
| 5020 | set dummy ld; ac_word=$2 |
| 5021 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5022 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5023 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
| 5024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5025 | else |
| 5026 | if test -n "$ac_ct_LD"; then |
| 5027 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. |
| 5028 | else |
| 5029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5030 | for as_dir in $PATH |
| 5031 | do |
| 5032 | IFS=$as_save_IFS |
| 5033 | test -z "$as_dir" && as_dir=. |
| 5034 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5035 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5036 | ac_cv_prog_ac_ct_LD="ld" |
| 5037 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5038 | break 2 |
| 5039 | fi |
| 5040 | done |
| 5041 | done |
| 5042 | |
| 5043 | test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld" |
| 5044 | fi |
| 5045 | fi |
| 5046 | ac_ct_LD=$ac_cv_prog_ac_ct_LD |
| 5047 | if test -n "$ac_ct_LD"; then |
| 5048 | echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
| 5049 | echo "${ECHO_T}$ac_ct_LD" >&6 |
| 5050 | else |
| 5051 | echo "$as_me:$LINENO: result: no" >&5 |
| 5052 | echo "${ECHO_T}no" >&6 |
| 5053 | fi |
| 5054 | |
| 5055 | LD=$ac_ct_LD |
| 5056 | else |
| 5057 | LD="$ac_cv_prog_LD" |
| 5058 | fi |
| 5059 | |
| 5060 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5061 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5062 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5063 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5064 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5065 | if test "${ac_cv_prog_AR+set}" = set; then |
| 5066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5067 | else |
| 5068 | if test -n "$AR"; then |
| 5069 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5070 | else |
| 5071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5072 | for as_dir in $PATH |
| 5073 | do |
| 5074 | IFS=$as_save_IFS |
| 5075 | test -z "$as_dir" && as_dir=. |
| 5076 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5077 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5078 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5079 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5080 | break 2 |
| 5081 | fi |
| 5082 | done |
| 5083 | done |
| 5084 | |
| 5085 | fi |
| 5086 | fi |
| 5087 | AR=$ac_cv_prog_AR |
| 5088 | if test -n "$AR"; then |
| 5089 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 5090 | echo "${ECHO_T}$AR" >&6 |
| 5091 | else |
| 5092 | echo "$as_me:$LINENO: result: no" >&5 |
| 5093 | echo "${ECHO_T}no" >&6 |
| 5094 | fi |
| 5095 | |
| 5096 | fi |
| 5097 | if test -z "$ac_cv_prog_AR"; then |
| 5098 | ac_ct_AR=$AR |
| 5099 | # Extract the first word of "ar", so it can be a program name with args. |
| 5100 | set dummy ar; ac_word=$2 |
| 5101 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5102 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5103 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 5104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5105 | else |
| 5106 | if test -n "$ac_ct_AR"; then |
| 5107 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5108 | else |
| 5109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5110 | for as_dir in $PATH |
| 5111 | do |
| 5112 | IFS=$as_save_IFS |
| 5113 | test -z "$as_dir" && as_dir=. |
| 5114 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5115 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5116 | ac_cv_prog_ac_ct_AR="ar" |
| 5117 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5118 | break 2 |
| 5119 | fi |
| 5120 | done |
| 5121 | done |
| 5122 | |
| 5123 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" |
| 5124 | fi |
| 5125 | fi |
| 5126 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5127 | if test -n "$ac_ct_AR"; then |
| 5128 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 5129 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 5130 | else |
| 5131 | echo "$as_me:$LINENO: result: no" >&5 |
| 5132 | echo "${ECHO_T}no" >&6 |
| 5133 | fi |
| 5134 | |
| 5135 | AR=$ac_ct_AR |
| 5136 | else |
| 5137 | AR="$ac_cv_prog_AR" |
| 5138 | fi |
| 5139 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5140 | if test -n "$ac_tool_prefix"; then |
| 5141 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5142 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5143 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5145 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 5146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5147 | else |
| 5148 | if test -n "$RANLIB"; then |
| 5149 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5150 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5152 | for as_dir in $PATH |
| 5153 | do |
| 5154 | IFS=$as_save_IFS |
| 5155 | test -z "$as_dir" && as_dir=. |
| 5156 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5157 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5158 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5160 | break 2 |
| 5161 | fi |
| 5162 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5163 | done |
| 5164 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5165 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5166 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5167 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5168 | if test -n "$RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5169 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5170 | echo "${ECHO_T}$RANLIB" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5171 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5172 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5173 | echo "${ECHO_T}no" >&6 |
| 5174 | fi |
| 5175 | |
| 5176 | fi |
| 5177 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5178 | ac_ct_RANLIB=$RANLIB |
| 5179 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5180 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5181 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5182 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5183 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5185 | else |
| 5186 | if test -n "$ac_ct_RANLIB"; then |
| 5187 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5188 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5190 | for as_dir in $PATH |
| 5191 | do |
| 5192 | IFS=$as_save_IFS |
| 5193 | test -z "$as_dir" && as_dir=. |
| 5194 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5195 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5196 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5197 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5198 | break 2 |
| 5199 | fi |
| 5200 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5201 | done |
| 5202 | |
| 5203 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 5204 | fi |
| 5205 | fi |
| 5206 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5207 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5208 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5209 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 5210 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5211 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5212 | echo "${ECHO_T}no" >&6 |
| 5213 | fi |
| 5214 | |
| 5215 | RANLIB=$ac_ct_RANLIB |
| 5216 | else |
| 5217 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 5218 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 5219 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 5220 | if test -n "$ac_tool_prefix"; then |
| 5221 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5222 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5223 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5225 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 5226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5227 | else |
| 5228 | if test -n "$STRIP"; then |
| 5229 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5230 | else |
| 5231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5232 | for as_dir in $PATH |
| 5233 | do |
| 5234 | IFS=$as_save_IFS |
| 5235 | test -z "$as_dir" && as_dir=. |
| 5236 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5237 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5238 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5240 | break 2 |
| 5241 | fi |
| 5242 | done |
| 5243 | done |
| 5244 | |
| 5245 | fi |
| 5246 | fi |
| 5247 | STRIP=$ac_cv_prog_STRIP |
| 5248 | if test -n "$STRIP"; then |
| 5249 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 5250 | echo "${ECHO_T}$STRIP" >&6 |
| 5251 | else |
| 5252 | echo "$as_me:$LINENO: result: no" >&5 |
| 5253 | echo "${ECHO_T}no" >&6 |
| 5254 | fi |
| 5255 | |
| 5256 | fi |
| 5257 | if test -z "$ac_cv_prog_STRIP"; then |
| 5258 | ac_ct_STRIP=$STRIP |
| 5259 | # Extract the first word of "strip", so it can be a program name with args. |
| 5260 | set dummy strip; ac_word=$2 |
| 5261 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5262 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5263 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 5264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5265 | else |
| 5266 | if test -n "$ac_ct_STRIP"; then |
| 5267 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5268 | else |
| 5269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5270 | for as_dir in $PATH |
| 5271 | do |
| 5272 | IFS=$as_save_IFS |
| 5273 | test -z "$as_dir" && as_dir=. |
| 5274 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5275 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5276 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5277 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5278 | break 2 |
| 5279 | fi |
| 5280 | done |
| 5281 | done |
| 5282 | |
| 5283 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip" |
| 5284 | fi |
| 5285 | fi |
| 5286 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5287 | if test -n "$ac_ct_STRIP"; then |
| 5288 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 5289 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 5290 | else |
| 5291 | echo "$as_me:$LINENO: result: no" >&5 |
| 5292 | echo "${ECHO_T}no" >&6 |
| 5293 | fi |
| 5294 | |
| 5295 | STRIP=$ac_ct_STRIP |
| 5296 | else |
| 5297 | STRIP="$ac_cv_prog_STRIP" |
| 5298 | fi |
| 5299 | |
| 5300 | if test -n "$ac_tool_prefix"; then |
| 5301 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 5302 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 5303 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5305 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 5306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5307 | else |
| 5308 | if test -n "$WINDRES"; then |
| 5309 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 5310 | else |
| 5311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5312 | for as_dir in $PATH |
| 5313 | do |
| 5314 | IFS=$as_save_IFS |
| 5315 | test -z "$as_dir" && as_dir=. |
| 5316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5317 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5318 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 5319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5320 | break 2 |
| 5321 | fi |
| 5322 | done |
| 5323 | done |
| 5324 | |
| 5325 | fi |
| 5326 | fi |
| 5327 | WINDRES=$ac_cv_prog_WINDRES |
| 5328 | if test -n "$WINDRES"; then |
| 5329 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 5330 | echo "${ECHO_T}$WINDRES" >&6 |
| 5331 | else |
| 5332 | echo "$as_me:$LINENO: result: no" >&5 |
| 5333 | echo "${ECHO_T}no" >&6 |
| 5334 | fi |
| 5335 | |
| 5336 | fi |
| 5337 | if test -z "$ac_cv_prog_WINDRES"; then |
| 5338 | ac_ct_WINDRES=$WINDRES |
| 5339 | # Extract the first word of "windres", so it can be a program name with args. |
| 5340 | set dummy windres; ac_word=$2 |
| 5341 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5343 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 5344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5345 | else |
| 5346 | if test -n "$ac_ct_WINDRES"; then |
| 5347 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 5348 | else |
| 5349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5350 | for as_dir in $PATH |
| 5351 | do |
| 5352 | IFS=$as_save_IFS |
| 5353 | test -z "$as_dir" && as_dir=. |
| 5354 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5355 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5356 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 5357 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5358 | break 2 |
| 5359 | fi |
| 5360 | done |
| 5361 | done |
| 5362 | |
| 5363 | test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false" |
| 5364 | fi |
| 5365 | fi |
| 5366 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 5367 | if test -n "$ac_ct_WINDRES"; then |
| 5368 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 5369 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 |
| 5370 | else |
| 5371 | echo "$as_me:$LINENO: result: no" >&5 |
| 5372 | echo "${ECHO_T}no" >&6 |
| 5373 | fi |
| 5374 | |
| 5375 | WINDRES=$ac_ct_WINDRES |
| 5376 | else |
| 5377 | WINDRES="$ac_cv_prog_WINDRES" |
| 5378 | fi |
| 5379 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5380 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5381 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 5382 | LN_S=$as_ln_s |
| 5383 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5384 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5385 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 5386 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5387 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5388 | echo "${ECHO_T}no, using $LN_S" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 5389 | fi |
| 5390 | |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 5391 | echo "$as_me:$LINENO: checking whether ln works" >&5 |
| 5392 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 |
| 5393 | rm -f conf$$ conf$$.file |
| 5394 | echo >conf$$.file |
| 5395 | if ln conf$$.file conf$$ 2>/dev/null; then |
| 5396 | LN=ln |
| 5397 | |
| 5398 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5399 | echo "${ECHO_T}yes" >&6 |
| 5400 | else |
| 5401 | LN="cp -p" |
| 5402 | |
| 5403 | echo "$as_me:$LINENO: result: no, using $LN" >&5 |
| 5404 | echo "${ECHO_T}no, using $LN" >&6 |
| 5405 | fi |
| 5406 | rm -f conf$$ conf$$.file |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 5407 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 5408 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 5409 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 5410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5411 | else |
| 5412 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 5413 | then ac_cv_prog_egrep='grep -E' |
| 5414 | else ac_cv_prog_egrep='egrep' |
| 5415 | fi |
| 5416 | fi |
| 5417 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 5418 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 5419 | EGREP=$ac_cv_prog_egrep |
| 5420 | |
| 5421 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5422 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 5423 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5424 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5426 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 5427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5428 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5429 | case $LDCONFIG in |
| 5430 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5431 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 5432 | ;; |
| 5433 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 5435 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5436 | do |
| 5437 | IFS=$as_save_IFS |
| 5438 | test -z "$as_dir" && as_dir=. |
| 5439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5440 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5441 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5443 | break 2 |
| 5444 | fi |
| 5445 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5446 | done |
| 5447 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 5448 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5449 | ;; |
| 5450 | esac |
| 5451 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5452 | LDCONFIG=$ac_cv_path_LDCONFIG |
| 5453 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5454 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5455 | echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5456 | echo "${ECHO_T}$LDCONFIG" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5457 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5458 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5459 | echo "${ECHO_T}no" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 5460 | fi |
| 5461 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5462 | # Find a good install program. We prefer a C program (faster), |
| 5463 | # so one script is as good as another. But avoid the broken or |
| 5464 | # incompatible versions: |
| 5465 | # SysV /etc/install, /usr/sbin/install |
| 5466 | # SunOS /usr/etc/install |
| 5467 | # IRIX /sbin/install |
| 5468 | # AIX /bin/install |
| 5469 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5470 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5471 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5472 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5473 | # OS/2's system install, which has a completely different semantic |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5474 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5475 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 5476 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 5477 | if test -z "$INSTALL"; then |
| 5478 | if test "${ac_cv_path_install+set}" = set; then |
| 5479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5480 | else |
| 5481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5482 | for as_dir in $PATH |
| 5483 | do |
| 5484 | IFS=$as_save_IFS |
| 5485 | test -z "$as_dir" && as_dir=. |
| 5486 | # Account for people who put trailing slashes in PATH elements. |
| 5487 | case $as_dir/ in |
| 5488 | ./ | .// | /cC/* | \ |
| 5489 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5490 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5491 | /usr/ucb/* ) ;; |
| 5492 | *) |
| 5493 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5494 | # Don't use installbsd from OSF since it installs stuff as root |
| 5495 | # by default. |
| 5496 | for ac_prog in ginstall scoinst install; do |
| 5497 | for ac_exec_ext in '' $ac_executable_extensions; do |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5498 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 5499 | if test $ac_prog = install && |
| 5500 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5501 | # AIX install. It has an incompatible calling convention. |
| 5502 | : |
| 5503 | elif test $ac_prog = install && |
| 5504 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5505 | # program-specific install script used by HP pwplus--don't use. |
| 5506 | : |
| 5507 | else |
| 5508 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5509 | break 3 |
| 5510 | fi |
| 5511 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5512 | done |
| 5513 | done |
| 5514 | ;; |
| 5515 | esac |
| 5516 | done |
| 5517 | |
| 5518 | |
| 5519 | fi |
| 5520 | if test "${ac_cv_path_install+set}" = set; then |
| 5521 | INSTALL=$ac_cv_path_install |
| 5522 | else |
| 5523 | # As a last resort, use the slow shell script. We don't cache a |
| 5524 | # path for INSTALL within a source directory, because that will |
| 5525 | # break other packages using the cache if that directory is |
| 5526 | # removed, or if the path is relative. |
| 5527 | INSTALL=$ac_install_sh |
| 5528 | fi |
| 5529 | fi |
| 5530 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 5531 | echo "${ECHO_T}$INSTALL" >&6 |
| 5532 | |
| 5533 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5534 | # It thinks the first close brace ends the variable substitution. |
| 5535 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5536 | |
| 5537 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 5538 | |
| 5539 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5540 | |
| 5541 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 5542 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5543 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 5544 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5545 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5546 | for ac_prog in lclint lint |
| 5547 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5548 | # 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] | 5549 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5550 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5552 | if test "${ac_cv_prog_LINT+set}" = set; then |
| 5553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5554 | else |
| 5555 | if test -n "$LINT"; then |
| 5556 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 5557 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5559 | for as_dir in $PATH |
| 5560 | do |
| 5561 | IFS=$as_save_IFS |
| 5562 | test -z "$as_dir" && as_dir=. |
| 5563 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5565 | ac_cv_prog_LINT="$ac_prog" |
| 5566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5567 | break 2 |
| 5568 | fi |
| 5569 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5570 | done |
| 5571 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5572 | fi |
| 5573 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5574 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5575 | if test -n "$LINT"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5576 | echo "$as_me:$LINENO: result: $LINT" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5577 | echo "${ECHO_T}$LINT" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5578 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5579 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5580 | echo "${ECHO_T}no" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5581 | fi |
| 5582 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5583 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 5584 | done |
| 5585 | |
| 5586 | if test "$LINT" = "lint" |
| 5587 | then |
| 5588 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 5589 | fi |
| 5590 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5591 | |
| 5592 | |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 5593 | for ac_prog in docbook2html db2html |
| 5594 | do |
| 5595 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5596 | set dummy $ac_prog; ac_word=$2 |
| 5597 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5599 | if test "${ac_cv_prog_DB2HTML+set}" = set; then |
| 5600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5601 | else |
| 5602 | if test -n "$DB2HTML"; then |
| 5603 | ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test. |
| 5604 | else |
| 5605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5606 | for as_dir in $PATH |
| 5607 | do |
| 5608 | IFS=$as_save_IFS |
| 5609 | test -z "$as_dir" && as_dir=. |
| 5610 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5611 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5612 | ac_cv_prog_DB2HTML="$ac_prog" |
| 5613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5614 | break 2 |
| 5615 | fi |
| 5616 | done |
| 5617 | done |
| 5618 | |
| 5619 | fi |
| 5620 | fi |
| 5621 | DB2HTML=$ac_cv_prog_DB2HTML |
| 5622 | if test -n "$DB2HTML"; then |
| 5623 | echo "$as_me:$LINENO: result: $DB2HTML" >&5 |
| 5624 | echo "${ECHO_T}$DB2HTML" >&6 |
| 5625 | else |
| 5626 | echo "$as_me:$LINENO: result: no" >&5 |
| 5627 | echo "${ECHO_T}no" >&6 |
| 5628 | fi |
| 5629 | |
| 5630 | test -n "$DB2HTML" && break |
| 5631 | done |
| 5632 | test -n "$DB2HTML" || DB2HTML="false" |
| 5633 | |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 5634 | for ac_prog in docbook2pdf db2pdf |
| 5635 | do |
| 5636 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5637 | set dummy $ac_prog; ac_word=$2 |
| 5638 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5639 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5640 | if test "${ac_cv_prog_DB2PDF+set}" = set; then |
| 5641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5642 | else |
| 5643 | if test -n "$DB2PDF"; then |
| 5644 | ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test. |
| 5645 | else |
| 5646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5647 | for as_dir in $PATH |
| 5648 | do |
| 5649 | IFS=$as_save_IFS |
| 5650 | test -z "$as_dir" && as_dir=. |
| 5651 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5652 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5653 | ac_cv_prog_DB2PDF="$ac_prog" |
| 5654 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5655 | break 2 |
| 5656 | fi |
| 5657 | done |
| 5658 | done |
| 5659 | |
| 5660 | fi |
| 5661 | fi |
| 5662 | DB2PDF=$ac_cv_prog_DB2PDF |
| 5663 | if test -n "$DB2PDF"; then |
| 5664 | echo "$as_me:$LINENO: result: $DB2PDF" >&5 |
| 5665 | echo "${ECHO_T}$DB2PDF" >&6 |
| 5666 | else |
| 5667 | echo "$as_me:$LINENO: result: no" >&5 |
| 5668 | echo "${ECHO_T}no" >&6 |
| 5669 | fi |
| 5670 | |
| 5671 | test -n "$DB2PDF" && break |
| 5672 | done |
| 5673 | test -n "$DB2PDF" || DB2PDF="false" |
| 5674 | |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 5675 | for ac_prog in docbook2ps db2ps |
| 5676 | do |
| 5677 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5678 | set dummy $ac_prog; ac_word=$2 |
| 5679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5681 | if test "${ac_cv_prog_DB2PS+set}" = set; then |
| 5682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5683 | else |
| 5684 | if test -n "$DB2PS"; then |
| 5685 | ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test. |
| 5686 | else |
| 5687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5688 | for as_dir in $PATH |
| 5689 | do |
| 5690 | IFS=$as_save_IFS |
| 5691 | test -z "$as_dir" && as_dir=. |
| 5692 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5694 | ac_cv_prog_DB2PS="$ac_prog" |
| 5695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5696 | break 2 |
| 5697 | fi |
| 5698 | done |
| 5699 | done |
| 5700 | |
| 5701 | fi |
| 5702 | fi |
| 5703 | DB2PS=$ac_cv_prog_DB2PS |
| 5704 | if test -n "$DB2PS"; then |
| 5705 | echo "$as_me:$LINENO: result: $DB2PS" >&5 |
| 5706 | echo "${ECHO_T}$DB2PS" >&6 |
| 5707 | else |
| 5708 | echo "$as_me:$LINENO: result: no" >&5 |
| 5709 | echo "${ECHO_T}no" >&6 |
| 5710 | fi |
| 5711 | |
| 5712 | test -n "$DB2PS" && break |
| 5713 | done |
| 5714 | test -n "$DB2PS" || DB2PS="false" |
| 5715 | |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 5716 | for ac_prog in docbook2txt db2txt |
| 5717 | do |
| 5718 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5719 | set dummy $ac_prog; ac_word=$2 |
| 5720 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5721 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5722 | if test "${ac_cv_prog_DB2TXT+set}" = set; then |
| 5723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5724 | else |
| 5725 | if test -n "$DB2TXT"; then |
| 5726 | ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test. |
| 5727 | else |
| 5728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5729 | for as_dir in $PATH |
| 5730 | do |
| 5731 | IFS=$as_save_IFS |
| 5732 | test -z "$as_dir" && as_dir=. |
| 5733 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5734 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5735 | ac_cv_prog_DB2TXT="$ac_prog" |
| 5736 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5737 | break 2 |
| 5738 | fi |
| 5739 | done |
| 5740 | done |
| 5741 | |
| 5742 | fi |
| 5743 | fi |
| 5744 | DB2TXT=$ac_cv_prog_DB2TXT |
| 5745 | if test -n "$DB2TXT"; then |
| 5746 | echo "$as_me:$LINENO: result: $DB2TXT" >&5 |
| 5747 | echo "${ECHO_T}$DB2TXT" >&6 |
| 5748 | else |
| 5749 | echo "$as_me:$LINENO: result: no" >&5 |
| 5750 | echo "${ECHO_T}no" >&6 |
| 5751 | fi |
| 5752 | |
| 5753 | test -n "$DB2TXT" && break |
| 5754 | done |
| 5755 | test -n "$DB2TXT" || DB2TXT="false" |
| 5756 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 5757 | for ac_prog in fontforge |
| 5758 | do |
| 5759 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5760 | set dummy $ac_prog; ac_word=$2 |
| 5761 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5762 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5763 | if test "${ac_cv_prog_FONTFORGE+set}" = set; then |
| 5764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5765 | else |
| 5766 | if test -n "$FONTFORGE"; then |
| 5767 | ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test. |
| 5768 | else |
| 5769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5770 | for as_dir in $PATH |
| 5771 | do |
| 5772 | IFS=$as_save_IFS |
| 5773 | test -z "$as_dir" && as_dir=. |
| 5774 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5775 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5776 | ac_cv_prog_FONTFORGE="$ac_prog" |
| 5777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5778 | break 2 |
| 5779 | fi |
| 5780 | done |
| 5781 | done |
| 5782 | |
| 5783 | fi |
| 5784 | fi |
| 5785 | FONTFORGE=$ac_cv_prog_FONTFORGE |
| 5786 | if test -n "$FONTFORGE"; then |
| 5787 | echo "$as_me:$LINENO: result: $FONTFORGE" >&5 |
| 5788 | echo "${ECHO_T}$FONTFORGE" >&6 |
| 5789 | else |
| 5790 | echo "$as_me:$LINENO: result: no" >&5 |
| 5791 | echo "${ECHO_T}no" >&6 |
| 5792 | fi |
| 5793 | |
| 5794 | test -n "$FONTFORGE" && break |
| 5795 | done |
| 5796 | test -n "$FONTFORGE" || FONTFORGE="false" |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 5797 | |
| 5798 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5799 | |
| 5800 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5801 | echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5802 | echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6 |
| 5803 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
| 5804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5805 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5806 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5807 | LIBS="-li386 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5808 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5809 | /* confdefs.h. */ |
| 5810 | _ACEOF |
| 5811 | cat confdefs.h >>conftest.$ac_ext |
| 5812 | cat >>conftest.$ac_ext <<_ACEOF |
| 5813 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5814 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 5815 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5816 | #ifdef __cplusplus |
| 5817 | extern "C" |
| 5818 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5819 | /* 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] | 5820 | builtin and then its argument prototype would still apply. */ |
| 5821 | char i386_set_ldt (); |
| 5822 | int |
| 5823 | main () |
| 5824 | { |
| 5825 | i386_set_ldt (); |
| 5826 | ; |
| 5827 | return 0; |
| 5828 | } |
| 5829 | _ACEOF |
| 5830 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5832 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5833 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5835 | rm -f conftest.er1 |
| 5836 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5838 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5839 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5841 | (eval $ac_try) 2>&5 |
| 5842 | ac_status=$? |
| 5843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5844 | (exit $ac_status); }; } && |
| 5845 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5847 | (eval $ac_try) 2>&5 |
| 5848 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5850 | (exit $ac_status); }; }; then |
| 5851 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5852 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5853 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5855 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5856 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5857 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5858 | rm -f conftest.err conftest.$ac_objext \ |
| 5859 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5860 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5861 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5862 | 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] | 5863 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6 |
| 5864 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5865 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5866 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5867 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5868 | |
| 5869 | LIBS="-li386 $LIBS" |
| 5870 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5871 | fi |
| 5872 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5873 | |
| 5874 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5875 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
| 5876 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 5877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5878 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5879 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5880 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5881 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5882 | /* confdefs.h. */ |
| 5883 | _ACEOF |
| 5884 | cat confdefs.h >>conftest.$ac_ext |
| 5885 | cat >>conftest.$ac_ext <<_ACEOF |
| 5886 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5887 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5888 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5889 | #ifdef __cplusplus |
| 5890 | extern "C" |
| 5891 | #endif |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5892 | /* 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] | 5893 | builtin and then its argument prototype would still apply. */ |
| 5894 | char _oss_ioctl (); |
| 5895 | int |
| 5896 | main () |
| 5897 | { |
| 5898 | _oss_ioctl (); |
| 5899 | ; |
| 5900 | return 0; |
| 5901 | } |
| 5902 | _ACEOF |
| 5903 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5905 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5906 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5908 | rm -f conftest.er1 |
| 5909 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5911 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5912 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5914 | (eval $ac_try) 2>&5 |
| 5915 | ac_status=$? |
| 5916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5917 | (exit $ac_status); }; } && |
| 5918 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5920 | (eval $ac_try) 2>&5 |
| 5921 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5923 | (exit $ac_status); }; }; then |
| 5924 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5925 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5926 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5928 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5929 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5930 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5931 | rm -f conftest.err conftest.$ac_objext \ |
| 5932 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5933 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5934 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5935 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5936 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
| 5937 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5938 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5939 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5940 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5941 | |
| 5942 | LIBS="-lossaudio $LIBS" |
| 5943 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5944 | fi |
| 5945 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5946 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5947 | for ac_func in iswalnum |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5948 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5949 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5950 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5951 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5952 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5954 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5955 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5956 | /* confdefs.h. */ |
| 5957 | _ACEOF |
| 5958 | cat confdefs.h >>conftest.$ac_ext |
| 5959 | cat >>conftest.$ac_ext <<_ACEOF |
| 5960 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5961 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5962 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5963 | #define $ac_func innocuous_$ac_func |
| 5964 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5965 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5966 | which can conflict with char $ac_func (); below. |
| 5967 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5968 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5969 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5970 | #ifdef __STDC__ |
| 5971 | # include <limits.h> |
| 5972 | #else |
| 5973 | # include <assert.h> |
| 5974 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 5975 | |
| 5976 | #undef $ac_func |
| 5977 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5978 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5979 | #ifdef __cplusplus |
| 5980 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5981 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5982 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5983 | /* 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] | 5984 | builtin and then its argument prototype would still apply. */ |
| 5985 | char $ac_func (); |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5986 | /* The GNU C library defines this for functions which it implements |
| 5987 | to always fail with ENOSYS. Some functions are actually named |
| 5988 | something starting with __ and the normal name is an alias. */ |
| 5989 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5990 | choke me |
| 5991 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5992 | char (*f) () = $ac_func; |
| 5993 | #endif |
| 5994 | #ifdef __cplusplus |
| 5995 | } |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5996 | #endif |
| 5997 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5998 | int |
| 5999 | main () |
| 6000 | { |
| 6001 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6002 | ; |
| 6003 | return 0; |
| 6004 | } |
| 6005 | _ACEOF |
| 6006 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6008 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6009 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6011 | rm -f conftest.er1 |
| 6012 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6014 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6015 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6017 | (eval $ac_try) 2>&5 |
| 6018 | ac_status=$? |
| 6019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6020 | (exit $ac_status); }; } && |
| 6021 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6023 | (eval $ac_try) 2>&5 |
| 6024 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6026 | (exit $ac_status); }; }; then |
| 6027 | eval "$as_ac_var=yes" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6028 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6029 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6031 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6032 | eval "$as_ac_var=no" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6033 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6034 | rm -f conftest.err conftest.$ac_objext \ |
| 6035 | conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6036 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6038 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6039 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6040 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6041 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6042 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6043 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6044 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6045 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6046 | echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6047 | echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6 |
| 6048 | if test "${ac_cv_lib_w_iswalnum+set}" = set; then |
| 6049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6050 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6051 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6052 | LIBS="-lw $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6053 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6054 | /* confdefs.h. */ |
| 6055 | _ACEOF |
| 6056 | cat confdefs.h >>conftest.$ac_ext |
| 6057 | cat >>conftest.$ac_ext <<_ACEOF |
| 6058 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6059 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6060 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6061 | #ifdef __cplusplus |
| 6062 | extern "C" |
| 6063 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6064 | /* 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] | 6065 | builtin and then its argument prototype would still apply. */ |
| 6066 | char iswalnum (); |
| 6067 | int |
| 6068 | main () |
| 6069 | { |
| 6070 | iswalnum (); |
| 6071 | ; |
| 6072 | return 0; |
| 6073 | } |
| 6074 | _ACEOF |
| 6075 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6077 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6078 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6079 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6080 | rm -f conftest.er1 |
| 6081 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6083 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6084 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6086 | (eval $ac_try) 2>&5 |
| 6087 | ac_status=$? |
| 6088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6089 | (exit $ac_status); }; } && |
| 6090 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6092 | (eval $ac_try) 2>&5 |
| 6093 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6095 | (exit $ac_status); }; }; then |
| 6096 | ac_cv_lib_w_iswalnum=yes |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6097 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6098 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6099 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6100 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6101 | ac_cv_lib_w_iswalnum=no |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6102 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6103 | rm -f conftest.err conftest.$ac_objext \ |
| 6104 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6105 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6106 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6107 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6108 | echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6 |
| 6109 | if test $ac_cv_lib_w_iswalnum = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6110 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6111 | #define HAVE_LIBW 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6112 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6113 | |
| 6114 | LIBS="-lw $LIBS" |
| 6115 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6116 | fi |
| 6117 | |
| 6118 | fi |
| 6119 | done |
| 6120 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6121 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6122 | for ac_func in gethostbyname |
| 6123 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6124 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6125 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6126 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6127 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6129 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6130 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6131 | /* confdefs.h. */ |
| 6132 | _ACEOF |
| 6133 | cat confdefs.h >>conftest.$ac_ext |
| 6134 | cat >>conftest.$ac_ext <<_ACEOF |
| 6135 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6136 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6137 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6138 | #define $ac_func innocuous_$ac_func |
| 6139 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6140 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6141 | which can conflict with char $ac_func (); below. |
| 6142 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6143 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6144 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6145 | #ifdef __STDC__ |
| 6146 | # include <limits.h> |
| 6147 | #else |
| 6148 | # include <assert.h> |
| 6149 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6150 | |
| 6151 | #undef $ac_func |
| 6152 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6153 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6154 | #ifdef __cplusplus |
| 6155 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6156 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6157 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6158 | /* 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] | 6159 | builtin and then its argument prototype would still apply. */ |
| 6160 | char $ac_func (); |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6161 | /* The GNU C library defines this for functions which it implements |
| 6162 | to always fail with ENOSYS. Some functions are actually named |
| 6163 | something starting with __ and the normal name is an alias. */ |
| 6164 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6165 | choke me |
| 6166 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6167 | char (*f) () = $ac_func; |
| 6168 | #endif |
| 6169 | #ifdef __cplusplus |
| 6170 | } |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6171 | #endif |
| 6172 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6173 | int |
| 6174 | main () |
| 6175 | { |
| 6176 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6177 | ; |
| 6178 | return 0; |
| 6179 | } |
| 6180 | _ACEOF |
| 6181 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6183 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6184 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6185 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6186 | rm -f conftest.er1 |
| 6187 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6189 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6190 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6192 | (eval $ac_try) 2>&5 |
| 6193 | ac_status=$? |
| 6194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6195 | (exit $ac_status); }; } && |
| 6196 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6198 | (eval $ac_try) 2>&5 |
| 6199 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6201 | (exit $ac_status); }; }; then |
| 6202 | eval "$as_ac_var=yes" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6203 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6204 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6206 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6207 | eval "$as_ac_var=no" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6208 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6209 | rm -f conftest.err conftest.$ac_objext \ |
| 6210 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6211 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6212 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6213 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6214 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6215 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6216 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6217 | _ACEOF |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6218 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6219 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6220 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6221 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6222 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 6223 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 6224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6225 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6226 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6227 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6228 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6229 | /* confdefs.h. */ |
| 6230 | _ACEOF |
| 6231 | cat confdefs.h >>conftest.$ac_ext |
| 6232 | cat >>conftest.$ac_ext <<_ACEOF |
| 6233 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6234 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6235 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6236 | #ifdef __cplusplus |
| 6237 | extern "C" |
| 6238 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6239 | /* 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] | 6240 | builtin and then its argument prototype would still apply. */ |
| 6241 | char gethostbyname (); |
| 6242 | int |
| 6243 | main () |
| 6244 | { |
| 6245 | gethostbyname (); |
| 6246 | ; |
| 6247 | return 0; |
| 6248 | } |
| 6249 | _ACEOF |
| 6250 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6252 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6253 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6255 | rm -f conftest.er1 |
| 6256 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6258 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6259 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6261 | (eval $ac_try) 2>&5 |
| 6262 | ac_status=$? |
| 6263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6264 | (exit $ac_status); }; } && |
| 6265 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6267 | (eval $ac_try) 2>&5 |
| 6268 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6270 | (exit $ac_status); }; }; then |
| 6271 | ac_cv_lib_nsl_gethostbyname=yes |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6272 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6273 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6274 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6275 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6276 | ac_cv_lib_nsl_gethostbyname=no |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6277 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6278 | rm -f conftest.err conftest.$ac_objext \ |
| 6279 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6280 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6281 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6282 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6283 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 6284 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6285 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6286 | #define HAVE_LIBNSL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6287 | _ACEOF |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 6288 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 6289 | LIBS="-lnsl $LIBS" |
| 6290 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 6291 | fi |
| 6292 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6293 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 6294 | done |
| 6295 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6296 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6297 | for ac_func in connect |
| 6298 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6299 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6300 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6301 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6302 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6304 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6305 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6306 | /* confdefs.h. */ |
| 6307 | _ACEOF |
| 6308 | cat confdefs.h >>conftest.$ac_ext |
| 6309 | cat >>conftest.$ac_ext <<_ACEOF |
| 6310 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6311 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6312 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6313 | #define $ac_func innocuous_$ac_func |
| 6314 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6315 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6316 | which can conflict with char $ac_func (); below. |
| 6317 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6318 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6319 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6320 | #ifdef __STDC__ |
| 6321 | # include <limits.h> |
| 6322 | #else |
| 6323 | # include <assert.h> |
| 6324 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6325 | |
| 6326 | #undef $ac_func |
| 6327 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6328 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6329 | #ifdef __cplusplus |
| 6330 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6331 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6332 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6333 | /* 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] | 6334 | builtin and then its argument prototype would still apply. */ |
| 6335 | char $ac_func (); |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6336 | /* The GNU C library defines this for functions which it implements |
| 6337 | to always fail with ENOSYS. Some functions are actually named |
| 6338 | something starting with __ and the normal name is an alias. */ |
| 6339 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6340 | choke me |
| 6341 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6342 | char (*f) () = $ac_func; |
| 6343 | #endif |
| 6344 | #ifdef __cplusplus |
| 6345 | } |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6346 | #endif |
| 6347 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6348 | int |
| 6349 | main () |
| 6350 | { |
| 6351 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6352 | ; |
| 6353 | return 0; |
| 6354 | } |
| 6355 | _ACEOF |
| 6356 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6358 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6359 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6361 | rm -f conftest.er1 |
| 6362 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6364 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6365 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6367 | (eval $ac_try) 2>&5 |
| 6368 | ac_status=$? |
| 6369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6370 | (exit $ac_status); }; } && |
| 6371 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6373 | (eval $ac_try) 2>&5 |
| 6374 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6376 | (exit $ac_status); }; }; then |
| 6377 | eval "$as_ac_var=yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6378 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6379 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6381 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6382 | eval "$as_ac_var=no" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6383 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6384 | rm -f conftest.err conftest.$ac_objext \ |
| 6385 | conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6386 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6387 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6388 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6389 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6390 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6391 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6392 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6393 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6394 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6395 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6396 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6397 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 6398 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 6399 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6400 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6401 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6402 | LIBS="-lsocket $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6403 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6404 | /* confdefs.h. */ |
| 6405 | _ACEOF |
| 6406 | cat confdefs.h >>conftest.$ac_ext |
| 6407 | cat >>conftest.$ac_ext <<_ACEOF |
| 6408 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6409 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6410 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6411 | #ifdef __cplusplus |
| 6412 | extern "C" |
| 6413 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6414 | /* 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] | 6415 | builtin and then its argument prototype would still apply. */ |
| 6416 | char connect (); |
| 6417 | int |
| 6418 | main () |
| 6419 | { |
| 6420 | connect (); |
| 6421 | ; |
| 6422 | return 0; |
| 6423 | } |
| 6424 | _ACEOF |
| 6425 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6427 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6428 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6430 | rm -f conftest.er1 |
| 6431 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6433 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6434 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6436 | (eval $ac_try) 2>&5 |
| 6437 | ac_status=$? |
| 6438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6439 | (exit $ac_status); }; } && |
| 6440 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6442 | (eval $ac_try) 2>&5 |
| 6443 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6445 | (exit $ac_status); }; }; then |
| 6446 | ac_cv_lib_socket_connect=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6447 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6448 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6450 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6451 | ac_cv_lib_socket_connect=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6452 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6453 | rm -f conftest.err conftest.$ac_objext \ |
| 6454 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6455 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6456 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6457 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6458 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 6459 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6460 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6461 | #define HAVE_LIBSOCKET 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6462 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6463 | |
| 6464 | LIBS="-lsocket $LIBS" |
| 6465 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 6466 | fi |
| 6467 | |
| 6468 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 6469 | done |
| 6470 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6471 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6472 | for ac_func in inet_aton |
| 6473 | do |
| 6474 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6475 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6476 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6477 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6479 | else |
| 6480 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6481 | /* confdefs.h. */ |
| 6482 | _ACEOF |
| 6483 | cat confdefs.h >>conftest.$ac_ext |
| 6484 | cat >>conftest.$ac_ext <<_ACEOF |
| 6485 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6486 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6487 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6488 | #define $ac_func innocuous_$ac_func |
| 6489 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6490 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6491 | which can conflict with char $ac_func (); below. |
| 6492 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6493 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6494 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6495 | #ifdef __STDC__ |
| 6496 | # include <limits.h> |
| 6497 | #else |
| 6498 | # include <assert.h> |
| 6499 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6500 | |
| 6501 | #undef $ac_func |
| 6502 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6503 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6504 | #ifdef __cplusplus |
| 6505 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6506 | { |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6507 | #endif |
| 6508 | /* We use char because int might match the return type of a gcc2 |
| 6509 | builtin and then its argument prototype would still apply. */ |
| 6510 | char $ac_func (); |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6511 | /* The GNU C library defines this for functions which it implements |
| 6512 | to always fail with ENOSYS. Some functions are actually named |
| 6513 | something starting with __ and the normal name is an alias. */ |
| 6514 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6515 | choke me |
| 6516 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6517 | char (*f) () = $ac_func; |
| 6518 | #endif |
| 6519 | #ifdef __cplusplus |
| 6520 | } |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6521 | #endif |
| 6522 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6523 | int |
| 6524 | main () |
| 6525 | { |
| 6526 | return f != $ac_func; |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6527 | ; |
| 6528 | return 0; |
| 6529 | } |
| 6530 | _ACEOF |
| 6531 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6533 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6534 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6536 | rm -f conftest.er1 |
| 6537 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6539 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6540 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6542 | (eval $ac_try) 2>&5 |
| 6543 | ac_status=$? |
| 6544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6545 | (exit $ac_status); }; } && |
| 6546 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6548 | (eval $ac_try) 2>&5 |
| 6549 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6551 | (exit $ac_status); }; }; then |
| 6552 | eval "$as_ac_var=yes" |
| 6553 | else |
| 6554 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6556 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6557 | eval "$as_ac_var=no" |
| 6558 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6559 | rm -f conftest.err conftest.$ac_objext \ |
| 6560 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6561 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6563 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6564 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6565 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6566 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6567 | _ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6568 | |
| 6569 | else |
| 6570 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6571 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6572 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 6573 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 6574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6575 | else |
| 6576 | ac_check_lib_save_LIBS=$LIBS |
| 6577 | LIBS="-lresolv $LIBS" |
| 6578 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6579 | /* confdefs.h. */ |
| 6580 | _ACEOF |
| 6581 | cat confdefs.h >>conftest.$ac_ext |
| 6582 | cat >>conftest.$ac_ext <<_ACEOF |
| 6583 | /* end confdefs.h. */ |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6584 | |
| 6585 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6586 | #ifdef __cplusplus |
| 6587 | extern "C" |
| 6588 | #endif |
| 6589 | /* We use char because int might match the return type of a gcc2 |
| 6590 | builtin and then its argument prototype would still apply. */ |
| 6591 | char inet_aton (); |
| 6592 | int |
| 6593 | main () |
| 6594 | { |
| 6595 | inet_aton (); |
| 6596 | ; |
| 6597 | return 0; |
| 6598 | } |
| 6599 | _ACEOF |
| 6600 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6602 | (eval $ac_link) 2>conftest.er1 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6603 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6605 | rm -f conftest.er1 |
| 6606 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6608 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6611 | (eval $ac_try) 2>&5 |
| 6612 | ac_status=$? |
| 6613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6614 | (exit $ac_status); }; } && |
| 6615 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6617 | (eval $ac_try) 2>&5 |
| 6618 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6620 | (exit $ac_status); }; }; then |
| 6621 | ac_cv_lib_resolv_inet_aton=yes |
| 6622 | else |
| 6623 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6624 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6625 | |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6626 | ac_cv_lib_resolv_inet_aton=no |
| 6627 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6628 | rm -f conftest.err conftest.$ac_objext \ |
| 6629 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6630 | LIBS=$ac_check_lib_save_LIBS |
| 6631 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6632 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6633 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 6634 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6635 | cat >>confdefs.h <<_ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6636 | #define HAVE_LIBRESOLV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6637 | _ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 6638 | |
| 6639 | LIBS="-lresolv $LIBS" |
| 6640 | |
| 6641 | fi |
| 6642 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 6643 | fi |
| 6644 | done |
| 6645 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6646 | |
| 6647 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6648 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 6649 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 6650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6651 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6652 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6653 | LIBS="-lxpg4 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6654 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6655 | /* confdefs.h. */ |
| 6656 | _ACEOF |
| 6657 | cat confdefs.h >>conftest.$ac_ext |
| 6658 | cat >>conftest.$ac_ext <<_ACEOF |
| 6659 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6660 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6661 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6662 | #ifdef __cplusplus |
| 6663 | extern "C" |
| 6664 | #endif |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6665 | /* 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] | 6666 | builtin and then its argument prototype would still apply. */ |
| 6667 | char _xpg4_setrunelocale (); |
| 6668 | int |
| 6669 | main () |
| 6670 | { |
| 6671 | _xpg4_setrunelocale (); |
| 6672 | ; |
| 6673 | return 0; |
| 6674 | } |
| 6675 | _ACEOF |
| 6676 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6678 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6679 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6681 | rm -f conftest.er1 |
| 6682 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6684 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6687 | (eval $ac_try) 2>&5 |
| 6688 | ac_status=$? |
| 6689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6690 | (exit $ac_status); }; } && |
| 6691 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6693 | (eval $ac_try) 2>&5 |
| 6694 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6696 | (exit $ac_status); }; }; then |
| 6697 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6698 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6699 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6701 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6702 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6703 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6704 | rm -f conftest.err conftest.$ac_objext \ |
| 6705 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6706 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6707 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6708 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6709 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 6710 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6711 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6712 | #define HAVE_LIBXPG4 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6713 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6714 | |
| 6715 | LIBS="-lxpg4 $LIBS" |
| 6716 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 6717 | fi |
| 6718 | |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6719 | |
| 6720 | echo "$as_me:$LINENO: checking for poll in -lpoll" >&5 |
| 6721 | echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6 |
| 6722 | if test "${ac_cv_lib_poll_poll+set}" = set; then |
| 6723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6724 | else |
| 6725 | ac_check_lib_save_LIBS=$LIBS |
| 6726 | LIBS="-lpoll $LIBS" |
| 6727 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6728 | /* confdefs.h. */ |
| 6729 | _ACEOF |
| 6730 | cat confdefs.h >>conftest.$ac_ext |
| 6731 | cat >>conftest.$ac_ext <<_ACEOF |
| 6732 | /* end confdefs.h. */ |
| 6733 | |
| 6734 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6735 | #ifdef __cplusplus |
| 6736 | extern "C" |
| 6737 | #endif |
| 6738 | /* We use char because int might match the return type of a gcc2 |
| 6739 | builtin and then its argument prototype would still apply. */ |
| 6740 | char poll (); |
| 6741 | int |
| 6742 | main () |
| 6743 | { |
| 6744 | poll (); |
| 6745 | ; |
| 6746 | return 0; |
| 6747 | } |
| 6748 | _ACEOF |
| 6749 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6751 | (eval $ac_link) 2>conftest.er1 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6752 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6753 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6754 | rm -f conftest.er1 |
| 6755 | cat conftest.err >&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6757 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6758 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6760 | (eval $ac_try) 2>&5 |
| 6761 | ac_status=$? |
| 6762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6763 | (exit $ac_status); }; } && |
| 6764 | { ac_try='test -s conftest$ac_exeext' |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6766 | (eval $ac_try) 2>&5 |
| 6767 | ac_status=$? |
| 6768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6769 | (exit $ac_status); }; }; then |
| 6770 | ac_cv_lib_poll_poll=yes |
| 6771 | else |
| 6772 | echo "$as_me: failed program was:" >&5 |
| 6773 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6774 | |
| 6775 | ac_cv_lib_poll_poll=no |
| 6776 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6777 | rm -f conftest.err conftest.$ac_objext \ |
| 6778 | conftest$ac_exeext conftest.$ac_ext |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 6779 | LIBS=$ac_check_lib_save_LIBS |
| 6780 | fi |
| 6781 | echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5 |
| 6782 | echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6 |
| 6783 | if test $ac_cv_lib_poll_poll = yes; then |
| 6784 | cat >>confdefs.h <<_ACEOF |
| 6785 | #define HAVE_LIBPOLL 1 |
| 6786 | _ACEOF |
| 6787 | |
| 6788 | LIBS="-lpoll $LIBS" |
| 6789 | |
| 6790 | fi |
| 6791 | |
Emmanuel Maillard | bc21f44 | 2004-07-06 19:41:12 +0000 | [diff] [blame] | 6792 | |
| 6793 | echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5 |
| 6794 | echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6 |
| 6795 | if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then |
| 6796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6797 | else |
| 6798 | ac_check_lib_save_LIBS=$LIBS |
| 6799 | LIBS="-lresolv $LIBS" |
| 6800 | cat >conftest.$ac_ext <<_ACEOF |
| 6801 | /* confdefs.h. */ |
| 6802 | _ACEOF |
| 6803 | cat confdefs.h >>conftest.$ac_ext |
| 6804 | cat >>conftest.$ac_ext <<_ACEOF |
| 6805 | /* end confdefs.h. */ |
| 6806 | |
| 6807 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6808 | #ifdef __cplusplus |
| 6809 | extern "C" |
| 6810 | #endif |
| 6811 | /* We use char because int might match the return type of a gcc2 |
| 6812 | builtin and then its argument prototype would still apply. */ |
| 6813 | char res_9_init (); |
| 6814 | int |
| 6815 | main () |
| 6816 | { |
| 6817 | res_9_init (); |
| 6818 | ; |
| 6819 | return 0; |
| 6820 | } |
| 6821 | _ACEOF |
| 6822 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6824 | (eval $ac_link) 2>conftest.er1 |
| 6825 | ac_status=$? |
| 6826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6827 | rm -f conftest.er1 |
| 6828 | cat conftest.err >&5 |
| 6829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6830 | (exit $ac_status); } && |
| 6831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6833 | (eval $ac_try) 2>&5 |
| 6834 | ac_status=$? |
| 6835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6836 | (exit $ac_status); }; } && |
| 6837 | { ac_try='test -s conftest$ac_exeext' |
| 6838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6839 | (eval $ac_try) 2>&5 |
| 6840 | ac_status=$? |
| 6841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6842 | (exit $ac_status); }; }; then |
| 6843 | ac_cv_lib_resolv_res_9_init=yes |
| 6844 | else |
| 6845 | echo "$as_me: failed program was:" >&5 |
| 6846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6847 | |
| 6848 | ac_cv_lib_resolv_res_9_init=no |
| 6849 | fi |
| 6850 | rm -f conftest.err conftest.$ac_objext \ |
| 6851 | conftest$ac_exeext conftest.$ac_ext |
| 6852 | LIBS=$ac_check_lib_save_LIBS |
| 6853 | fi |
| 6854 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5 |
| 6855 | echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6 |
| 6856 | if test $ac_cv_lib_resolv_res_9_init = yes; then |
| 6857 | cat >>confdefs.h <<_ACEOF |
| 6858 | #define HAVE_LIBRESOLV 1 |
| 6859 | _ACEOF |
| 6860 | |
| 6861 | LIBS="-lresolv $LIBS" |
| 6862 | |
| 6863 | fi |
| 6864 | |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6865 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 6866 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 6867 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6869 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6870 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6871 | LIBS="-lpthread $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6872 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6873 | /* confdefs.h. */ |
| 6874 | _ACEOF |
| 6875 | cat confdefs.h >>conftest.$ac_ext |
| 6876 | cat >>conftest.$ac_ext <<_ACEOF |
| 6877 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6878 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6879 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6880 | #ifdef __cplusplus |
| 6881 | extern "C" |
| 6882 | #endif |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6883 | /* 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] | 6884 | builtin and then its argument prototype would still apply. */ |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6885 | char pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6886 | int |
| 6887 | main () |
| 6888 | { |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6889 | pthread_create (); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6890 | ; |
| 6891 | return 0; |
| 6892 | } |
| 6893 | _ACEOF |
| 6894 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6896 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6897 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6899 | rm -f conftest.er1 |
| 6900 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6902 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6903 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6905 | (eval $ac_try) 2>&5 |
| 6906 | ac_status=$? |
| 6907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6908 | (exit $ac_status); }; } && |
| 6909 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6911 | (eval $ac_try) 2>&5 |
| 6912 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6914 | (exit $ac_status); }; }; then |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6915 | ac_cv_lib_pthread_pthread_create=yes |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6916 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6917 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6919 | |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6920 | ac_cv_lib_pthread_pthread_create=no |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6921 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6922 | rm -f conftest.err conftest.$ac_objext \ |
| 6923 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6924 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6925 | fi |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 6926 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 6927 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 |
| 6928 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
| 6929 | LIBPTHREAD="-lpthread" |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6930 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 6931 | fi |
| 6932 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6933 | |
Alexandre Julliard | 562089b | 2001-12-31 22:28:35 +0000 | [diff] [blame] | 6934 | |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 6935 | |
| 6936 | XFILES="" |
| 6937 | |
| 6938 | OPENGLFILES="" |
| 6939 | |
| 6940 | GLU32FILES="" |
| 6941 | |
| 6942 | OPENGL_LIBS="" |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 6943 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 6944 | |
| 6945 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6946 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 6947 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 6949 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6950 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6951 | /* confdefs.h. */ |
| 6952 | _ACEOF |
| 6953 | cat confdefs.h >>conftest.$ac_ext |
| 6954 | cat >>conftest.$ac_ext <<_ACEOF |
| 6955 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6956 | #include <stdlib.h> |
| 6957 | #include <stdarg.h> |
| 6958 | #include <string.h> |
| 6959 | #include <float.h> |
| 6960 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6961 | int |
| 6962 | main () |
| 6963 | { |
| 6964 | |
| 6965 | ; |
| 6966 | return 0; |
| 6967 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6968 | _ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6969 | rm -f conftest.$ac_objext |
| 6970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6971 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6972 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6973 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6974 | rm -f conftest.er1 |
| 6975 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6977 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6978 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6980 | (eval $ac_try) 2>&5 |
| 6981 | ac_status=$? |
| 6982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6983 | (exit $ac_status); }; } && |
| 6984 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6986 | (eval $ac_try) 2>&5 |
| 6987 | ac_status=$? |
| 6988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6989 | (exit $ac_status); }; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6990 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6991 | else |
| 6992 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6994 | |
| 6995 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 6996 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 6997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6998 | |
| 6999 | if test $ac_cv_header_stdc = yes; then |
| 7000 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7001 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7002 | /* confdefs.h. */ |
| 7003 | _ACEOF |
| 7004 | cat confdefs.h >>conftest.$ac_ext |
| 7005 | cat >>conftest.$ac_ext <<_ACEOF |
| 7006 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7007 | #include <string.h> |
| 7008 | |
| 7009 | _ACEOF |
| 7010 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7011 | $EGREP "memchr" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7012 | : |
| 7013 | else |
| 7014 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 7015 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7016 | rm -f conftest* |
| 7017 | |
| 7018 | fi |
| 7019 | |
| 7020 | if test $ac_cv_header_stdc = yes; then |
| 7021 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7022 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7023 | /* confdefs.h. */ |
| 7024 | _ACEOF |
| 7025 | cat confdefs.h >>conftest.$ac_ext |
| 7026 | cat >>conftest.$ac_ext <<_ACEOF |
| 7027 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7028 | #include <stdlib.h> |
| 7029 | |
| 7030 | _ACEOF |
| 7031 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7032 | $EGREP "free" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7033 | : |
| 7034 | else |
| 7035 | ac_cv_header_stdc=no |
| 7036 | fi |
| 7037 | rm -f conftest* |
| 7038 | |
| 7039 | fi |
| 7040 | |
| 7041 | if test $ac_cv_header_stdc = yes; then |
| 7042 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7043 | if test "$cross_compiling" = yes; then |
| 7044 | : |
| 7045 | else |
| 7046 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7047 | /* confdefs.h. */ |
| 7048 | _ACEOF |
| 7049 | cat confdefs.h >>conftest.$ac_ext |
| 7050 | cat >>conftest.$ac_ext <<_ACEOF |
| 7051 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7052 | #include <ctype.h> |
| 7053 | #if ((' ' & 0x0FF) == 0x020) |
| 7054 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7055 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7056 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7057 | # define ISLOWER(c) \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7058 | (('a' <= (c) && (c) <= 'i') \ |
| 7059 | || ('j' <= (c) && (c) <= 'r') \ |
| 7060 | || ('s' <= (c) && (c) <= 'z')) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7061 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7062 | #endif |
| 7063 | |
| 7064 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7065 | int |
| 7066 | main () |
| 7067 | { |
| 7068 | int i; |
| 7069 | for (i = 0; i < 256; i++) |
| 7070 | if (XOR (islower (i), ISLOWER (i)) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7071 | || toupper (i) != TOUPPER (i)) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7072 | exit(2); |
| 7073 | exit (0); |
| 7074 | } |
| 7075 | _ACEOF |
| 7076 | rm -f conftest$ac_exeext |
| 7077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7078 | (eval $ac_link) 2>&5 |
| 7079 | ac_status=$? |
| 7080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7081 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7083 | (eval $ac_try) 2>&5 |
| 7084 | ac_status=$? |
| 7085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7086 | (exit $ac_status); }; }; then |
| 7087 | : |
| 7088 | else |
| 7089 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7090 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7092 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7093 | ( exit $ac_status ) |
| 7094 | ac_cv_header_stdc=no |
| 7095 | fi |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 7096 | 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] | 7097 | fi |
| 7098 | fi |
| 7099 | fi |
| 7100 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 7101 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 7102 | if test $ac_cv_header_stdc = yes; then |
| 7103 | |
| 7104 | cat >>confdefs.h <<\_ACEOF |
| 7105 | #define STDC_HEADERS 1 |
| 7106 | _ACEOF |
| 7107 | |
| 7108 | fi |
| 7109 | |
| 7110 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7111 | |
| 7112 | |
| 7113 | |
| 7114 | |
| 7115 | |
| 7116 | |
| 7117 | |
| 7118 | |
| 7119 | |
| 7120 | 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] | 7121 | inttypes.h stdint.h unistd.h |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7122 | do |
| 7123 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7124 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7125 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7126 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7128 | else |
| 7129 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7130 | /* confdefs.h. */ |
| 7131 | _ACEOF |
| 7132 | cat confdefs.h >>conftest.$ac_ext |
| 7133 | cat >>conftest.$ac_ext <<_ACEOF |
| 7134 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7135 | $ac_includes_default |
| 7136 | |
| 7137 | #include <$ac_header> |
| 7138 | _ACEOF |
| 7139 | rm -f conftest.$ac_objext |
| 7140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7141 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7142 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7144 | rm -f conftest.er1 |
| 7145 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7147 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7150 | (eval $ac_try) 2>&5 |
| 7151 | ac_status=$? |
| 7152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7153 | (exit $ac_status); }; } && |
| 7154 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7156 | (eval $ac_try) 2>&5 |
| 7157 | ac_status=$? |
| 7158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7159 | (exit $ac_status); }; }; then |
| 7160 | eval "$as_ac_Header=yes" |
| 7161 | else |
| 7162 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7164 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7165 | eval "$as_ac_Header=no" |
| 7166 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7168 | fi |
| 7169 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7170 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7171 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7172 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7173 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7174 | _ACEOF |
| 7175 | |
| 7176 | fi |
| 7177 | |
| 7178 | done |
| 7179 | |
| 7180 | |
| 7181 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7182 | |
| 7183 | |
| 7184 | |
| 7185 | |
| 7186 | |
| 7187 | |
| 7188 | |
| 7189 | |
| 7190 | |
| 7191 | |
| 7192 | |
| 7193 | |
| 7194 | |
| 7195 | |
| 7196 | |
| 7197 | |
| 7198 | |
| 7199 | |
| 7200 | |
| 7201 | |
| 7202 | |
| 7203 | |
| 7204 | |
| 7205 | |
| 7206 | |
| 7207 | |
| 7208 | |
| 7209 | |
| 7210 | |
| 7211 | |
| 7212 | |
| 7213 | |
| 7214 | |
| 7215 | |
| 7216 | |
| 7217 | |
| 7218 | |
| 7219 | |
| 7220 | |
| 7221 | |
| 7222 | |
| 7223 | |
| 7224 | |
| 7225 | |
| 7226 | |
| 7227 | |
| 7228 | |
| 7229 | |
| 7230 | |
| 7231 | |
| 7232 | |
| 7233 | |
| 7234 | |
| 7235 | |
| 7236 | |
| 7237 | |
| 7238 | |
| 7239 | |
| 7240 | |
| 7241 | |
| 7242 | |
| 7243 | |
| 7244 | |
| 7245 | |
| 7246 | |
| 7247 | |
| 7248 | |
| 7249 | |
| 7250 | |
| 7251 | |
| 7252 | |
| 7253 | |
| 7254 | |
| 7255 | |
| 7256 | |
| 7257 | |
| 7258 | |
| 7259 | |
| 7260 | |
| 7261 | |
| 7262 | |
| 7263 | |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame^] | 7264 | |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7265 | for ac_header in \ |
| 7266 | arpa/inet.h \ |
| 7267 | arpa/nameser.h \ |
| 7268 | cups/cups.h \ |
| 7269 | direct.h \ |
| 7270 | elf.h \ |
| 7271 | float.h \ |
| 7272 | fontconfig/fontconfig.h \ |
| 7273 | getopt.h \ |
| 7274 | gif_lib.h \ |
| 7275 | ieeefp.h \ |
| 7276 | io.h \ |
| 7277 | jack/jack.h \ |
| 7278 | jpeglib.h \ |
Kevin Koltzau | a2bbacb | 2004-11-23 17:33:55 +0000 | [diff] [blame] | 7279 | lcms/lcms.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7280 | lcms.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7281 | link.h \ |
| 7282 | linux/cdrom.h \ |
| 7283 | linux/compiler.h \ |
| 7284 | linux/hdreg.h \ |
| 7285 | linux/input.h \ |
| 7286 | linux/ioctl.h \ |
| 7287 | linux/joystick.h \ |
| 7288 | linux/major.h \ |
| 7289 | linux/param.h \ |
| 7290 | linux/serial.h \ |
| 7291 | linux/ucdrom.h \ |
| 7292 | machine/cpu.h \ |
| 7293 | mntent.h \ |
| 7294 | netdb.h \ |
| 7295 | netinet/in.h \ |
| 7296 | netinet/in_systm.h \ |
| 7297 | netinet/tcp.h \ |
| 7298 | netinet/tcp_fsm.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7299 | openssl/ssl.h \ |
Steven Edwards | 5727918 | 2005-03-04 12:38:36 +0000 | [diff] [blame^] | 7300 | poll.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7301 | process.h \ |
| 7302 | pthread.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7303 | pwd.h \ |
| 7304 | regex.h \ |
| 7305 | sched.h \ |
| 7306 | scsi/sg.h \ |
| 7307 | scsi/scsi.h \ |
| 7308 | scsi/scsi_ioctl.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7309 | stdint.h \ |
| 7310 | strings.h \ |
| 7311 | sys/cdio.h \ |
| 7312 | sys/elf32.h \ |
| 7313 | sys/errno.h \ |
| 7314 | sys/epoll.h \ |
| 7315 | sys/exec_elf.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7316 | sys/filio.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7317 | sys/ioctl.h \ |
| 7318 | sys/ipc.h \ |
| 7319 | sys/link.h \ |
| 7320 | sys/lwp.h \ |
| 7321 | sys/mman.h \ |
| 7322 | sys/modem.h \ |
| 7323 | sys/msg.h \ |
| 7324 | sys/param.h \ |
| 7325 | sys/poll.h \ |
| 7326 | sys/ptrace.h \ |
| 7327 | sys/reg.h \ |
| 7328 | sys/scsiio.h \ |
| 7329 | sys/shm.h \ |
| 7330 | sys/signal.h \ |
| 7331 | sys/socket.h \ |
| 7332 | sys/sockio.h \ |
| 7333 | sys/statfs.h \ |
| 7334 | sys/statvfs.h \ |
| 7335 | sys/strtio.h \ |
| 7336 | sys/syscall.h \ |
| 7337 | sys/sysctl.h \ |
| 7338 | sys/time.h \ |
| 7339 | sys/times.h \ |
| 7340 | sys/uio.h \ |
| 7341 | sys/un.h \ |
Rein Klazes | 7ff1256 | 2004-11-09 20:16:35 +0000 | [diff] [blame] | 7342 | sys/vfs.h \ |
| 7343 | sys/vm86.h \ |
| 7344 | sys/wait.h \ |
| 7345 | syscall.h \ |
| 7346 | termios.h \ |
| 7347 | unistd.h \ |
| 7348 | utime.h \ |
| 7349 | valgrind/memcheck.h |
| 7350 | |
| 7351 | do |
| 7352 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7353 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7354 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7358 | fi |
| 7359 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7360 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7361 | else |
| 7362 | # Is the header compilable? |
| 7363 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7364 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7365 | cat >conftest.$ac_ext <<_ACEOF |
| 7366 | /* confdefs.h. */ |
| 7367 | _ACEOF |
| 7368 | cat confdefs.h >>conftest.$ac_ext |
| 7369 | cat >>conftest.$ac_ext <<_ACEOF |
| 7370 | /* end confdefs.h. */ |
| 7371 | $ac_includes_default |
| 7372 | #include <$ac_header> |
| 7373 | _ACEOF |
| 7374 | rm -f conftest.$ac_objext |
| 7375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7376 | (eval $ac_compile) 2>conftest.er1 |
| 7377 | ac_status=$? |
| 7378 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7379 | rm -f conftest.er1 |
| 7380 | cat conftest.err >&5 |
| 7381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7382 | (exit $ac_status); } && |
| 7383 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7385 | (eval $ac_try) 2>&5 |
| 7386 | ac_status=$? |
| 7387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7388 | (exit $ac_status); }; } && |
| 7389 | { ac_try='test -s conftest.$ac_objext' |
| 7390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7391 | (eval $ac_try) 2>&5 |
| 7392 | ac_status=$? |
| 7393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7394 | (exit $ac_status); }; }; then |
| 7395 | ac_header_compiler=yes |
| 7396 | else |
| 7397 | echo "$as_me: failed program was:" >&5 |
| 7398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7399 | |
| 7400 | ac_header_compiler=no |
| 7401 | fi |
| 7402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7403 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7404 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7405 | |
| 7406 | # Is the header present? |
| 7407 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7408 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7409 | cat >conftest.$ac_ext <<_ACEOF |
| 7410 | /* confdefs.h. */ |
| 7411 | _ACEOF |
| 7412 | cat confdefs.h >>conftest.$ac_ext |
| 7413 | cat >>conftest.$ac_ext <<_ACEOF |
| 7414 | /* end confdefs.h. */ |
| 7415 | #include <$ac_header> |
| 7416 | _ACEOF |
| 7417 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7418 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7419 | ac_status=$? |
| 7420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7421 | rm -f conftest.er1 |
| 7422 | cat conftest.err >&5 |
| 7423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7424 | (exit $ac_status); } >/dev/null; then |
| 7425 | if test -s conftest.err; then |
| 7426 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7427 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7428 | else |
| 7429 | ac_cpp_err= |
| 7430 | fi |
| 7431 | else |
| 7432 | ac_cpp_err=yes |
| 7433 | fi |
| 7434 | if test -z "$ac_cpp_err"; then |
| 7435 | ac_header_preproc=yes |
| 7436 | else |
| 7437 | echo "$as_me: failed program was:" >&5 |
| 7438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7439 | |
| 7440 | ac_header_preproc=no |
| 7441 | fi |
| 7442 | rm -f conftest.err conftest.$ac_ext |
| 7443 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7444 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7445 | |
| 7446 | # So? What about this header? |
| 7447 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7448 | yes:no: ) |
| 7449 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7450 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7451 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7452 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7453 | ac_header_preproc=yes |
| 7454 | ;; |
| 7455 | no:yes:* ) |
| 7456 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7457 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7458 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7459 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7460 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7461 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7462 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7463 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7464 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7465 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7466 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7467 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7468 | ( |
| 7469 | cat <<\_ASBOX |
| 7470 | ## ------------------------------------ ## |
| 7471 | ## Report this to wine-devel@winehq.org ## |
| 7472 | ## ------------------------------------ ## |
| 7473 | _ASBOX |
| 7474 | ) | |
| 7475 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7476 | ;; |
| 7477 | esac |
| 7478 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7479 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7480 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7482 | else |
| 7483 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7484 | fi |
| 7485 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7486 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7487 | |
| 7488 | fi |
| 7489 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7490 | cat >>confdefs.h <<_ACEOF |
| 7491 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7492 | _ACEOF |
| 7493 | |
| 7494 | fi |
| 7495 | |
| 7496 | done |
| 7497 | |
| 7498 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 7499 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 7500 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 7501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7502 | else |
| 7503 | cat >conftest.$ac_ext <<_ACEOF |
| 7504 | /* confdefs.h. */ |
| 7505 | _ACEOF |
| 7506 | cat confdefs.h >>conftest.$ac_ext |
| 7507 | cat >>conftest.$ac_ext <<_ACEOF |
| 7508 | /* end confdefs.h. */ |
| 7509 | #include <sys/types.h> |
| 7510 | #include <sys/stat.h> |
| 7511 | |
| 7512 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 7513 | # if S_ISBLK (S_IFDIR) |
| 7514 | You lose. |
| 7515 | # endif |
| 7516 | #endif |
| 7517 | |
| 7518 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 7519 | # if S_ISBLK (S_IFCHR) |
| 7520 | You lose. |
| 7521 | # endif |
| 7522 | #endif |
| 7523 | |
| 7524 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 7525 | # if S_ISLNK (S_IFREG) |
| 7526 | You lose. |
| 7527 | # endif |
| 7528 | #endif |
| 7529 | |
| 7530 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 7531 | # if S_ISSOCK (S_IFREG) |
| 7532 | You lose. |
| 7533 | # endif |
| 7534 | #endif |
| 7535 | |
| 7536 | _ACEOF |
| 7537 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7538 | $EGREP "You lose" >/dev/null 2>&1; then |
| 7539 | ac_cv_header_stat_broken=yes |
| 7540 | else |
| 7541 | ac_cv_header_stat_broken=no |
| 7542 | fi |
| 7543 | rm -f conftest* |
| 7544 | |
| 7545 | fi |
| 7546 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 7547 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
| 7548 | if test $ac_cv_header_stat_broken = yes; then |
| 7549 | |
| 7550 | cat >>confdefs.h <<\_ACEOF |
| 7551 | #define STAT_MACROS_BROKEN 1 |
| 7552 | _ACEOF |
| 7553 | |
| 7554 | fi |
| 7555 | |
| 7556 | |
| 7557 | |
| 7558 | if test "$have_x" = "yes" |
| 7559 | then |
| 7560 | XLIB="-lXext -lX11" |
| 7561 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 7562 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 7563 | |
| 7564 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7565 | for ac_header in X11/Xlib.h |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7566 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7567 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7568 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7569 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7570 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7571 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7573 | fi |
| 7574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7575 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7576 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7577 | # Is the header compilable? |
| 7578 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7579 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7580 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7581 | /* confdefs.h. */ |
| 7582 | _ACEOF |
| 7583 | cat confdefs.h >>conftest.$ac_ext |
| 7584 | cat >>conftest.$ac_ext <<_ACEOF |
| 7585 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7586 | $ac_includes_default |
| 7587 | #include <$ac_header> |
| 7588 | _ACEOF |
| 7589 | rm -f conftest.$ac_objext |
| 7590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7591 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7592 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7594 | rm -f conftest.er1 |
| 7595 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7597 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7600 | (eval $ac_try) 2>&5 |
| 7601 | ac_status=$? |
| 7602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7603 | (exit $ac_status); }; } && |
| 7604 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7606 | (eval $ac_try) 2>&5 |
| 7607 | ac_status=$? |
| 7608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7609 | (exit $ac_status); }; }; then |
| 7610 | ac_header_compiler=yes |
| 7611 | else |
| 7612 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7614 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7615 | ac_header_compiler=no |
| 7616 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7618 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7619 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7620 | |
| 7621 | # Is the header present? |
| 7622 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7623 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7624 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7625 | /* confdefs.h. */ |
| 7626 | _ACEOF |
| 7627 | cat confdefs.h >>conftest.$ac_ext |
| 7628 | cat >>conftest.$ac_ext <<_ACEOF |
| 7629 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7630 | #include <$ac_header> |
| 7631 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7632 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7633 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7634 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7635 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7636 | rm -f conftest.er1 |
| 7637 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7639 | (exit $ac_status); } >/dev/null; then |
| 7640 | if test -s conftest.err; then |
| 7641 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7642 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7643 | else |
| 7644 | ac_cpp_err= |
| 7645 | fi |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7646 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7647 | ac_cpp_err=yes |
| 7648 | fi |
| 7649 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7650 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7651 | else |
| 7652 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7654 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7655 | ac_header_preproc=no |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7656 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7657 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7658 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7659 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7660 | |
| 7661 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7662 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7663 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7664 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7665 | 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] | 7666 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7667 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7668 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7669 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7670 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7671 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7672 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7673 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7674 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7675 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7676 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7677 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7678 | 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] | 7679 | { 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] | 7680 | 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] | 7681 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7682 | 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] | 7683 | ( |
| 7684 | cat <<\_ASBOX |
| 7685 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7686 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7687 | ## ------------------------------------ ## |
| 7688 | _ASBOX |
| 7689 | ) | |
| 7690 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7691 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7692 | esac |
| 7693 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7694 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7695 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7697 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7698 | eval "$as_ac_Header=\$ac_header_preproc" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 7699 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7700 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7701 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7702 | |
| 7703 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7704 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7705 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7706 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7707 | _ACEOF |
| 7708 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7709 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7710 | |
| 7711 | |
| 7712 | |
| 7713 | |
| 7714 | |
| 7715 | |
| 7716 | |
| 7717 | |
| 7718 | for ac_header in X11/XKBlib.h \ |
| 7719 | X11/Xutil.h \ |
| 7720 | X11/extensions/shape.h \ |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 7721 | X11/extensions/XInput.h \ |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7722 | X11/extensions/XShm.h \ |
| 7723 | X11/extensions/Xrandr.h \ |
| 7724 | X11/extensions/Xrender.h \ |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7725 | X11/extensions/xf86dga.h \ |
| 7726 | X11/extensions/xf86vmode.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7727 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7728 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7729 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7730 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7731 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7733 | else |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7734 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7735 | /* confdefs.h. */ |
| 7736 | _ACEOF |
| 7737 | cat confdefs.h >>conftest.$ac_ext |
| 7738 | cat >>conftest.$ac_ext <<_ACEOF |
| 7739 | /* end confdefs.h. */ |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7740 | #include <X11/Xlib.h> |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7741 | #ifdef HAVE_X11_XUTIL_H |
| 7742 | # include <X11/Xutil.h> |
| 7743 | #endif |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7744 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7745 | #include <$ac_header> |
| 7746 | _ACEOF |
| 7747 | rm -f conftest.$ac_objext |
| 7748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7749 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7750 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7752 | rm -f conftest.er1 |
| 7753 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7755 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7756 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7758 | (eval $ac_try) 2>&5 |
| 7759 | ac_status=$? |
| 7760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7761 | (exit $ac_status); }; } && |
| 7762 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7764 | (eval $ac_try) 2>&5 |
| 7765 | ac_status=$? |
| 7766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7767 | (exit $ac_status); }; }; then |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7768 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7769 | else |
| 7770 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7772 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 7773 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7774 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7776 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7777 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7778 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7779 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7780 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7781 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7782 | _ACEOF |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7783 | |
| 7784 | fi |
| 7785 | |
| 7786 | done |
| 7787 | |
| 7788 | |
| 7789 | if test "$ac_cv_header_X11_XKBlib_h" = "yes" |
| 7790 | then |
| 7791 | echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7792 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6 |
| 7793 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
| 7794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7795 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7796 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7797 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7798 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7799 | /* confdefs.h. */ |
| 7800 | _ACEOF |
| 7801 | cat confdefs.h >>conftest.$ac_ext |
| 7802 | cat >>conftest.$ac_ext <<_ACEOF |
| 7803 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7804 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7805 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7806 | #ifdef __cplusplus |
| 7807 | extern "C" |
| 7808 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7809 | /* 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] | 7810 | builtin and then its argument prototype would still apply. */ |
| 7811 | char XkbQueryExtension (); |
| 7812 | int |
| 7813 | main () |
| 7814 | { |
| 7815 | XkbQueryExtension (); |
| 7816 | ; |
| 7817 | return 0; |
| 7818 | } |
| 7819 | _ACEOF |
| 7820 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7822 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7823 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7825 | rm -f conftest.er1 |
| 7826 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7828 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7831 | (eval $ac_try) 2>&5 |
| 7832 | ac_status=$? |
| 7833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7834 | (exit $ac_status); }; } && |
| 7835 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7837 | (eval $ac_try) 2>&5 |
| 7838 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7840 | (exit $ac_status); }; }; then |
| 7841 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7842 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7843 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7845 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7846 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7847 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7848 | rm -f conftest.err conftest.$ac_objext \ |
| 7849 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7850 | LIBS=$ac_check_lib_save_LIBS |
| 7851 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7852 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7853 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6 |
| 7854 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7855 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7856 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7857 | #define HAVE_XKB 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7858 | _ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7859 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7860 | fi |
| 7861 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7862 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7863 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7864 | if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
| 7865 | then |
| 7866 | echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7867 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6 |
| 7868 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
| 7869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7870 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7871 | ac_check_lib_save_LIBS=$LIBS |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7872 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7873 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7874 | /* confdefs.h. */ |
| 7875 | _ACEOF |
| 7876 | cat confdefs.h >>conftest.$ac_ext |
| 7877 | cat >>conftest.$ac_ext <<_ACEOF |
| 7878 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7879 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7880 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7881 | #ifdef __cplusplus |
| 7882 | extern "C" |
| 7883 | #endif |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7884 | /* 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] | 7885 | builtin and then its argument prototype would still apply. */ |
| 7886 | char XShmQueryExtension (); |
| 7887 | int |
| 7888 | main () |
| 7889 | { |
| 7890 | XShmQueryExtension (); |
| 7891 | ; |
| 7892 | return 0; |
| 7893 | } |
| 7894 | _ACEOF |
| 7895 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7897 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7898 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7899 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7900 | rm -f conftest.er1 |
| 7901 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7903 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7906 | (eval $ac_try) 2>&5 |
| 7907 | ac_status=$? |
| 7908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7909 | (exit $ac_status); }; } && |
| 7910 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7912 | (eval $ac_try) 2>&5 |
| 7913 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7915 | (exit $ac_status); }; }; then |
| 7916 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7917 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7918 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7920 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7921 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7922 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7923 | rm -f conftest.err conftest.$ac_objext \ |
| 7924 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7925 | LIBS=$ac_check_lib_save_LIBS |
| 7926 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7927 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7928 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6 |
| 7929 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7930 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7931 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7932 | #define HAVE_LIBXXSHM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7933 | _ACEOF |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7934 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 7935 | fi |
| 7936 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7937 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7938 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 7939 | if test "$ac_cv_header_X11_extensions_shape_h" = "yes" |
| 7940 | then |
| 7941 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7942 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 7943 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 7944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7945 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7946 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7947 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7948 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7949 | /* confdefs.h. */ |
| 7950 | _ACEOF |
| 7951 | cat confdefs.h >>conftest.$ac_ext |
| 7952 | cat >>conftest.$ac_ext <<_ACEOF |
| 7953 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7954 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7955 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7956 | #ifdef __cplusplus |
| 7957 | extern "C" |
| 7958 | #endif |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7959 | /* 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] | 7960 | builtin and then its argument prototype would still apply. */ |
| 7961 | char XShapeQueryExtension (); |
| 7962 | int |
| 7963 | main () |
| 7964 | { |
| 7965 | XShapeQueryExtension (); |
| 7966 | ; |
| 7967 | return 0; |
| 7968 | } |
| 7969 | _ACEOF |
| 7970 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7972 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7973 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7974 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7975 | rm -f conftest.er1 |
| 7976 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7978 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7979 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7981 | (eval $ac_try) 2>&5 |
| 7982 | ac_status=$? |
| 7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7984 | (exit $ac_status); }; } && |
| 7985 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7987 | (eval $ac_try) 2>&5 |
| 7988 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7990 | (exit $ac_status); }; }; then |
| 7991 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7992 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7993 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7995 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7996 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 7997 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 7998 | rm -f conftest.err conftest.$ac_objext \ |
| 7999 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8000 | LIBS=$ac_check_lib_save_LIBS |
| 8001 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8002 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8003 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 8004 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8005 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8006 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8007 | #define HAVE_LIBXSHAPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8008 | _ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8009 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 8010 | fi |
| 8011 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8012 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8013 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8014 | if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes" |
| 8015 | then |
| 8016 | echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8017 | echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 8018 | if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then |
| 8019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8020 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8021 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8022 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8023 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8024 | /* confdefs.h. */ |
| 8025 | _ACEOF |
| 8026 | cat confdefs.h >>conftest.$ac_ext |
| 8027 | cat >>conftest.$ac_ext <<_ACEOF |
| 8028 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8029 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8030 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8031 | #ifdef __cplusplus |
| 8032 | extern "C" |
| 8033 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8034 | /* 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] | 8035 | builtin and then its argument prototype would still apply. */ |
| 8036 | char XDGAQueryExtension (); |
| 8037 | int |
| 8038 | main () |
| 8039 | { |
| 8040 | XDGAQueryExtension (); |
| 8041 | ; |
| 8042 | return 0; |
| 8043 | } |
| 8044 | _ACEOF |
| 8045 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8047 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8048 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8050 | rm -f conftest.er1 |
| 8051 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8053 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8054 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8056 | (eval $ac_try) 2>&5 |
| 8057 | ac_status=$? |
| 8058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8059 | (exit $ac_status); }; } && |
| 8060 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8062 | (eval $ac_try) 2>&5 |
| 8063 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8065 | (exit $ac_status); }; }; then |
| 8066 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8067 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8068 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8070 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8071 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=no |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8072 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8073 | rm -f conftest.err conftest.$ac_objext \ |
| 8074 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8075 | LIBS=$ac_check_lib_save_LIBS |
| 8076 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8077 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8078 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6 |
| 8079 | if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8080 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8081 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 8082 | #define HAVE_LIBXXF86DGA2 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8083 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 8084 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8085 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8086 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8087 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8088 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8089 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8090 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8091 | if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" |
| 8092 | then |
| 8093 | echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8094 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6 |
| 8095 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
| 8096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8097 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8098 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8099 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8100 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8101 | /* confdefs.h. */ |
| 8102 | _ACEOF |
| 8103 | cat confdefs.h >>conftest.$ac_ext |
| 8104 | cat >>conftest.$ac_ext <<_ACEOF |
| 8105 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8106 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8107 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8108 | #ifdef __cplusplus |
| 8109 | extern "C" |
| 8110 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8111 | /* 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] | 8112 | builtin and then its argument prototype would still apply. */ |
| 8113 | char XF86VidModeQueryExtension (); |
| 8114 | int |
| 8115 | main () |
| 8116 | { |
| 8117 | XF86VidModeQueryExtension (); |
| 8118 | ; |
| 8119 | return 0; |
| 8120 | } |
| 8121 | _ACEOF |
| 8122 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8124 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8125 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8127 | rm -f conftest.er1 |
| 8128 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8130 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8131 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8133 | (eval $ac_try) 2>&5 |
| 8134 | ac_status=$? |
| 8135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8136 | (exit $ac_status); }; } && |
| 8137 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8139 | (eval $ac_try) 2>&5 |
| 8140 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8142 | (exit $ac_status); }; }; then |
| 8143 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8144 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8145 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8147 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8148 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8149 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8150 | rm -f conftest.err conftest.$ac_objext \ |
| 8151 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8152 | LIBS=$ac_check_lib_save_LIBS |
| 8153 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8154 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8155 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6 |
| 8156 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8157 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8158 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8159 | #define HAVE_LIBXXF86VM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8160 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8161 | |
| 8162 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8163 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8164 | fi |
| 8165 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8166 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8167 | |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8168 | if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" |
| 8169 | then |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8170 | cat >conftest.$ac_ext <<_ACEOF |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8171 | /* confdefs.h. */ |
| 8172 | _ACEOF |
| 8173 | cat confdefs.h >>conftest.$ac_ext |
| 8174 | cat >>conftest.$ac_ext <<_ACEOF |
| 8175 | /* end confdefs.h. */ |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8176 | #include <X11/Xlib.h> |
| 8177 | #include <X11/extensions/Xrandr.h> |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8178 | int |
| 8179 | main () |
| 8180 | { |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8181 | static typeof(XRRSetScreenConfigAndRate) * func; |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8182 | ; |
| 8183 | return 0; |
| 8184 | } |
| 8185 | _ACEOF |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8186 | rm -f conftest.$ac_objext |
| 8187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8188 | (eval $ac_compile) 2>conftest.er1 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8189 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8190 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8191 | rm -f conftest.er1 |
| 8192 | cat conftest.err >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8194 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8197 | (eval $ac_try) 2>&5 |
| 8198 | ac_status=$? |
| 8199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8200 | (exit $ac_status); }; } && |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8201 | { ac_try='test -s conftest.$ac_objext' |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8203 | (eval $ac_try) 2>&5 |
| 8204 | ac_status=$? |
| 8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8206 | (exit $ac_status); }; }; then |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8207 | |
| 8208 | cat >>confdefs.h <<\_ACEOF |
| 8209 | #define HAVE_LIBXRANDR 1 |
| 8210 | _ACEOF |
| 8211 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8212 | else |
| 8213 | echo "$as_me: failed program was:" >&5 |
| 8214 | sed 's/^/| /' conftest.$ac_ext >&5 |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8215 | |
| 8216 | fi |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 8217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 255b486 | 2003-10-15 04:09:55 +0000 | [diff] [blame] | 8218 | fi |
Alex Pasadyn | 8f174bc | 2003-10-15 03:28:04 +0000 | [diff] [blame] | 8219 | |
Kevin Koltzau | 92ec21b | 2004-10-27 00:43:50 +0000 | [diff] [blame] | 8220 | if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" |
| 8221 | then |
| 8222 | echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5 |
| 8223 | echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6 |
| 8224 | if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then |
| 8225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8226 | else |
| 8227 | ac_check_lib_save_LIBS=$LIBS |
| 8228 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 8229 | cat >conftest.$ac_ext <<_ACEOF |
| 8230 | /* confdefs.h. */ |
| 8231 | _ACEOF |
| 8232 | cat confdefs.h >>conftest.$ac_ext |
| 8233 | cat >>conftest.$ac_ext <<_ACEOF |
| 8234 | /* end confdefs.h. */ |
| 8235 | |
| 8236 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8237 | #ifdef __cplusplus |
| 8238 | extern "C" |
| 8239 | #endif |
| 8240 | /* We use char because int might match the return type of a gcc2 |
| 8241 | builtin and then its argument prototype would still apply. */ |
| 8242 | char XRenderSetPictureTransform (); |
| 8243 | int |
| 8244 | main () |
| 8245 | { |
| 8246 | XRenderSetPictureTransform (); |
| 8247 | ; |
| 8248 | return 0; |
| 8249 | } |
| 8250 | _ACEOF |
| 8251 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8253 | (eval $ac_link) 2>conftest.er1 |
| 8254 | ac_status=$? |
| 8255 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8256 | rm -f conftest.er1 |
| 8257 | cat conftest.err >&5 |
| 8258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8259 | (exit $ac_status); } && |
| 8260 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8262 | (eval $ac_try) 2>&5 |
| 8263 | ac_status=$? |
| 8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8265 | (exit $ac_status); }; } && |
| 8266 | { ac_try='test -s conftest$ac_exeext' |
| 8267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8268 | (eval $ac_try) 2>&5 |
| 8269 | ac_status=$? |
| 8270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8271 | (exit $ac_status); }; }; then |
| 8272 | ac_cv_lib_Xrender_XRenderSetPictureTransform=yes |
| 8273 | else |
| 8274 | echo "$as_me: failed program was:" >&5 |
| 8275 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8276 | |
| 8277 | ac_cv_lib_Xrender_XRenderSetPictureTransform=no |
| 8278 | fi |
| 8279 | rm -f conftest.err conftest.$ac_objext \ |
| 8280 | conftest$ac_exeext conftest.$ac_ext |
| 8281 | LIBS=$ac_check_lib_save_LIBS |
| 8282 | fi |
| 8283 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5 |
| 8284 | echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6 |
| 8285 | if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then |
| 8286 | |
| 8287 | cat >>confdefs.h <<\_ACEOF |
| 8288 | #define HAVE_XRENDERSETPICTURETRANSFORM 1 |
| 8289 | _ACEOF |
| 8290 | |
| 8291 | fi |
| 8292 | |
| 8293 | fi |
| 8294 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8295 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8296 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8297 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 8298 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8299 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 8300 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8301 | then |
Francois Gouget | 42dcd97 | 2002-01-29 17:52:28 +0000 | [diff] [blame] | 8302 | 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] | 8303 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8304 | { { 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] | 8305 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
| 8306 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 8307 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} |
| 8308 | { (exit 1); exit 1; }; } |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8309 | fi |
| 8310 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8311 | |
| 8312 | |
| 8313 | for ac_header in GL/gl.h GL/glx.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8314 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8315 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8316 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8317 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8319 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8321 | fi |
| 8322 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8323 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8324 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8325 | # Is the header compilable? |
| 8326 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8327 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8328 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8329 | /* confdefs.h. */ |
| 8330 | _ACEOF |
| 8331 | cat confdefs.h >>conftest.$ac_ext |
| 8332 | cat >>conftest.$ac_ext <<_ACEOF |
| 8333 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8334 | $ac_includes_default |
| 8335 | #include <$ac_header> |
| 8336 | _ACEOF |
| 8337 | rm -f conftest.$ac_objext |
| 8338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8339 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8340 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8342 | rm -f conftest.er1 |
| 8343 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8345 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8348 | (eval $ac_try) 2>&5 |
| 8349 | ac_status=$? |
| 8350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8351 | (exit $ac_status); }; } && |
| 8352 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8354 | (eval $ac_try) 2>&5 |
| 8355 | ac_status=$? |
| 8356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8357 | (exit $ac_status); }; }; then |
| 8358 | ac_header_compiler=yes |
| 8359 | else |
| 8360 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8362 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8363 | ac_header_compiler=no |
| 8364 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8366 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8367 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8368 | |
| 8369 | # Is the header present? |
| 8370 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8371 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8372 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8373 | /* confdefs.h. */ |
| 8374 | _ACEOF |
| 8375 | cat confdefs.h >>conftest.$ac_ext |
| 8376 | cat >>conftest.$ac_ext <<_ACEOF |
| 8377 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8378 | #include <$ac_header> |
| 8379 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8380 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8381 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8382 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8383 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8384 | rm -f conftest.er1 |
| 8385 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8387 | (exit $ac_status); } >/dev/null; then |
| 8388 | if test -s conftest.err; then |
| 8389 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8390 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8391 | else |
| 8392 | ac_cpp_err= |
| 8393 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8394 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8395 | ac_cpp_err=yes |
| 8396 | fi |
| 8397 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8398 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8399 | else |
| 8400 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8402 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8403 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8404 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8405 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8406 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8407 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8408 | |
| 8409 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8410 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8411 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8412 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8413 | 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] | 8414 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8415 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8416 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8417 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8418 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8419 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8420 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8421 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8422 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8423 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8424 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8425 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8426 | 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] | 8427 | { 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] | 8428 | 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] | 8429 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8430 | 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] | 8431 | ( |
| 8432 | cat <<\_ASBOX |
| 8433 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8434 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8435 | ## ------------------------------------ ## |
| 8436 | _ASBOX |
| 8437 | ) | |
| 8438 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8439 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8440 | esac |
| 8441 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8442 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8443 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8445 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8446 | eval "$as_ac_Header=\$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8447 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8448 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8449 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8450 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8451 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8452 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8453 | cat >>confdefs.h <<_ACEOF |
| 8454 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8455 | _ACEOF |
| 8456 | |
| 8457 | fi |
| 8458 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8459 | done |
| 8460 | |
Marcus Meissner | 22a969b | 2000-08-08 20:46:50 +0000 | [diff] [blame] | 8461 | 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] | 8462 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8463 | |
| 8464 | for ac_header in GL/glext.h |
| 8465 | do |
| 8466 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8467 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8468 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8469 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8471 | else |
| 8472 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8473 | /* confdefs.h. */ |
| 8474 | _ACEOF |
| 8475 | cat confdefs.h >>conftest.$ac_ext |
| 8476 | cat >>conftest.$ac_ext <<_ACEOF |
| 8477 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8478 | #include <GL/glx.h> |
| 8479 | |
| 8480 | #include <$ac_header> |
| 8481 | _ACEOF |
| 8482 | rm -f conftest.$ac_objext |
| 8483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8484 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8485 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8487 | rm -f conftest.er1 |
| 8488 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8490 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8491 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8493 | (eval $ac_try) 2>&5 |
| 8494 | ac_status=$? |
| 8495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8496 | (exit $ac_status); }; } && |
| 8497 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8499 | (eval $ac_try) 2>&5 |
| 8500 | ac_status=$? |
| 8501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8502 | (exit $ac_status); }; }; then |
| 8503 | eval "$as_ac_Header=yes" |
| 8504 | else |
| 8505 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8506 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8507 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8508 | eval "$as_ac_Header=no" |
| 8509 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8511 | fi |
| 8512 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8513 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8514 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8515 | cat >>confdefs.h <<_ACEOF |
| 8516 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8517 | _ACEOF |
| 8518 | |
| 8519 | fi |
| 8520 | |
| 8521 | done |
| 8522 | |
| 8523 | echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8524 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6 |
| 8525 | if test "${wine_cv_opengl_version_OK+set}" = set; then |
| 8526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8527 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8528 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8529 | /* confdefs.h. */ |
| 8530 | _ACEOF |
| 8531 | cat confdefs.h >>conftest.$ac_ext |
| 8532 | cat >>conftest.$ac_ext <<_ACEOF |
| 8533 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8534 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8535 | int |
| 8536 | main () |
| 8537 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8538 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8539 | ; |
| 8540 | return 0; |
| 8541 | } |
| 8542 | _ACEOF |
| 8543 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8545 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8546 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8548 | rm -f conftest.er1 |
| 8549 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8551 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8552 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8554 | (eval $ac_try) 2>&5 |
| 8555 | ac_status=$? |
| 8556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8557 | (exit $ac_status); }; } && |
| 8558 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8560 | (eval $ac_try) 2>&5 |
| 8561 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8563 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 8564 | wine_cv_opengl_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8565 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8566 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8568 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8569 | wine_cv_opengl_version_OK="no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8570 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8571 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 8573 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8574 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8575 | echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8576 | echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6 |
| 8577 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 8578 | if test "$wine_cv_opengl_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8579 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8580 | echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8581 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6 |
| 8582 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
| 8583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8584 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8585 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 8586 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8587 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8588 | /* confdefs.h. */ |
| 8589 | _ACEOF |
| 8590 | cat confdefs.h >>conftest.$ac_ext |
| 8591 | cat >>conftest.$ac_ext <<_ACEOF |
| 8592 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8593 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8594 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8595 | #ifdef __cplusplus |
| 8596 | extern "C" |
| 8597 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8598 | /* 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] | 8599 | builtin and then its argument prototype would still apply. */ |
| 8600 | char glXCreateContext (); |
| 8601 | int |
| 8602 | main () |
| 8603 | { |
| 8604 | glXCreateContext (); |
| 8605 | ; |
| 8606 | return 0; |
| 8607 | } |
| 8608 | _ACEOF |
| 8609 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8611 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8612 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8614 | rm -f conftest.er1 |
| 8615 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8617 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8618 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8620 | (eval $ac_try) 2>&5 |
| 8621 | ac_status=$? |
| 8622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8623 | (exit $ac_status); }; } && |
| 8624 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8626 | (eval $ac_try) 2>&5 |
| 8627 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8629 | (exit $ac_status); }; }; then |
| 8630 | ac_cv_lib_GL_glXCreateContext=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8631 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8632 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8634 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8635 | ac_cv_lib_GL_glXCreateContext=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8636 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8637 | rm -f conftest.err conftest.$ac_objext \ |
| 8638 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8639 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8640 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8641 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8642 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6 |
| 8643 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8644 | OPENGL_LIBS="-lGL" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8645 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8646 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8647 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8648 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 8649 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 8650 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 8651 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8652 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8653 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8654 | #define HAVE_OPENGL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8655 | _ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 8656 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8657 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8658 | echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8659 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6 |
| 8660 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
| 8661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8662 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8663 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8664 | 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] | 8665 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8666 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8667 | /* confdefs.h. */ |
| 8668 | _ACEOF |
| 8669 | cat confdefs.h >>conftest.$ac_ext |
| 8670 | cat >>conftest.$ac_ext <<_ACEOF |
| 8671 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8672 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8673 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8674 | #ifdef __cplusplus |
| 8675 | extern "C" |
| 8676 | #endif |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8677 | /* 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] | 8678 | builtin and then its argument prototype would still apply. */ |
| 8679 | char gluLookAt (); |
| 8680 | int |
| 8681 | main () |
| 8682 | { |
| 8683 | gluLookAt (); |
| 8684 | ; |
| 8685 | return 0; |
| 8686 | } |
| 8687 | _ACEOF |
| 8688 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8690 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8691 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8693 | rm -f conftest.er1 |
| 8694 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8696 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8699 | (eval $ac_try) 2>&5 |
| 8700 | ac_status=$? |
| 8701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8702 | (exit $ac_status); }; } && |
| 8703 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8705 | (eval $ac_try) 2>&5 |
| 8706 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8708 | (exit $ac_status); }; }; then |
| 8709 | ac_cv_lib_GLU_gluLookAt=yes |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8710 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8711 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8713 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8714 | ac_cv_lib_GLU_gluLookAt=no |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8715 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8716 | rm -f conftest.err conftest.$ac_objext \ |
| 8717 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8718 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8719 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8720 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8721 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6 |
| 8722 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 8723 | OPENGL_LIBS="$OPENGL_LIBS -lGLU" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8724 | GLU32FILES='$(GLU32FILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8725 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 8726 | fi |
| 8727 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8728 | fi |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8729 | |
| 8730 | echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5 |
| 8731 | echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6 |
| 8732 | if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then |
| 8733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8734 | else |
| 8735 | ac_check_lib_save_LIBS=$LIBS |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 8736 | 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] | 8737 | cat >conftest.$ac_ext <<_ACEOF |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8738 | /* confdefs.h. */ |
| 8739 | _ACEOF |
| 8740 | cat confdefs.h >>conftest.$ac_ext |
| 8741 | cat >>conftest.$ac_ext <<_ACEOF |
| 8742 | /* end confdefs.h. */ |
| 8743 | |
| 8744 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8745 | #ifdef __cplusplus |
| 8746 | extern "C" |
| 8747 | #endif |
| 8748 | /* We use char because int might match the return type of a gcc2 |
| 8749 | builtin and then its argument prototype would still apply. */ |
| 8750 | char glutMainLoop (); |
| 8751 | int |
| 8752 | main () |
| 8753 | { |
| 8754 | glutMainLoop (); |
| 8755 | ; |
| 8756 | return 0; |
| 8757 | } |
| 8758 | _ACEOF |
| 8759 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8761 | (eval $ac_link) 2>conftest.er1 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8762 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8764 | rm -f conftest.er1 |
| 8765 | cat conftest.err >&5 |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8767 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8768 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8770 | (eval $ac_try) 2>&5 |
| 8771 | ac_status=$? |
| 8772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8773 | (exit $ac_status); }; } && |
| 8774 | { ac_try='test -s conftest$ac_exeext' |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8776 | (eval $ac_try) 2>&5 |
| 8777 | ac_status=$? |
| 8778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8779 | (exit $ac_status); }; }; then |
| 8780 | ac_cv_lib_glut_glutMainLoop=yes |
| 8781 | else |
| 8782 | echo "$as_me: failed program was:" >&5 |
| 8783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8784 | |
| 8785 | ac_cv_lib_glut_glutMainLoop=no |
| 8786 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8787 | rm -f conftest.err conftest.$ac_objext \ |
| 8788 | conftest$ac_exeext conftest.$ac_ext |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8789 | LIBS=$ac_check_lib_save_LIBS |
| 8790 | fi |
| 8791 | echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5 |
| 8792 | echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6 |
| 8793 | if test $ac_cv_lib_glut_glutMainLoop = yes; then |
Jacek Caban | 5e69f11 | 2003-12-03 20:26:43 +0000 | [diff] [blame] | 8794 | GLUT_LIBS="-lglut -lXmu -lXi" |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 8795 | |
| 8796 | GLUT32FILES='$(GLUT32FILES)' |
| 8797 | |
| 8798 | fi |
| 8799 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 8800 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8801 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 8802 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8803 | NASLIBS="" |
| 8804 | |
| 8805 | |
| 8806 | for ac_header in audio/audiolib.h |
| 8807 | do |
| 8808 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8809 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8810 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8811 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8812 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8814 | fi |
| 8815 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8816 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8817 | else |
| 8818 | # Is the header compilable? |
| 8819 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8820 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8821 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8822 | /* confdefs.h. */ |
| 8823 | _ACEOF |
| 8824 | cat confdefs.h >>conftest.$ac_ext |
| 8825 | cat >>conftest.$ac_ext <<_ACEOF |
| 8826 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8827 | $ac_includes_default |
| 8828 | #include <$ac_header> |
| 8829 | _ACEOF |
| 8830 | rm -f conftest.$ac_objext |
| 8831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8832 | (eval $ac_compile) 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8833 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8835 | rm -f conftest.er1 |
| 8836 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8838 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8839 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8841 | (eval $ac_try) 2>&5 |
| 8842 | ac_status=$? |
| 8843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8844 | (exit $ac_status); }; } && |
| 8845 | { ac_try='test -s conftest.$ac_objext' |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8847 | (eval $ac_try) 2>&5 |
| 8848 | ac_status=$? |
| 8849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8850 | (exit $ac_status); }; }; then |
| 8851 | ac_header_compiler=yes |
| 8852 | else |
| 8853 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8854 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8855 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8856 | ac_header_compiler=no |
| 8857 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8859 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8860 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8861 | |
| 8862 | # Is the header present? |
| 8863 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8864 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8865 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8866 | /* confdefs.h. */ |
| 8867 | _ACEOF |
| 8868 | cat confdefs.h >>conftest.$ac_ext |
| 8869 | cat >>conftest.$ac_ext <<_ACEOF |
| 8870 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8871 | #include <$ac_header> |
| 8872 | _ACEOF |
| 8873 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8874 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8875 | ac_status=$? |
| 8876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8877 | rm -f conftest.er1 |
| 8878 | cat conftest.err >&5 |
| 8879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8880 | (exit $ac_status); } >/dev/null; then |
| 8881 | if test -s conftest.err; then |
| 8882 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8883 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8884 | else |
| 8885 | ac_cpp_err= |
| 8886 | fi |
| 8887 | else |
| 8888 | ac_cpp_err=yes |
| 8889 | fi |
| 8890 | if test -z "$ac_cpp_err"; then |
| 8891 | ac_header_preproc=yes |
| 8892 | else |
| 8893 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8894 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8895 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8896 | ac_header_preproc=no |
| 8897 | fi |
| 8898 | rm -f conftest.err conftest.$ac_ext |
| 8899 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8900 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8901 | |
| 8902 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8903 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8904 | yes:no: ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8905 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8906 | 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] | 8907 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8908 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8909 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8910 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8911 | no:yes:* ) |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8912 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8913 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8914 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8915 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8916 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8917 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8918 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8919 | 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] | 8920 | { 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] | 8921 | 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] | 8922 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8923 | 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] | 8924 | ( |
| 8925 | cat <<\_ASBOX |
| 8926 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8927 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8928 | ## ------------------------------------ ## |
| 8929 | _ASBOX |
| 8930 | ) | |
| 8931 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8932 | ;; |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8933 | esac |
| 8934 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8935 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8936 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8938 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8939 | eval "$as_ac_Header=\$ac_header_preproc" |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8940 | fi |
| 8941 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8942 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8943 | |
| 8944 | fi |
| 8945 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8946 | cat >>confdefs.h <<_ACEOF |
| 8947 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8948 | _ACEOF |
| 8949 | |
| 8950 | for ac_header in audio/soundlib.h |
| 8951 | do |
| 8952 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8953 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8954 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8955 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8957 | else |
| 8958 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8959 | /* confdefs.h. */ |
| 8960 | _ACEOF |
| 8961 | cat confdefs.h >>conftest.$ac_ext |
| 8962 | cat >>conftest.$ac_ext <<_ACEOF |
| 8963 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8964 | #include <audio/audiolib.h> |
| 8965 | |
| 8966 | #include <$ac_header> |
| 8967 | _ACEOF |
| 8968 | rm -f conftest.$ac_objext |
| 8969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8970 | (eval $ac_compile) 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8971 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8973 | rm -f conftest.er1 |
| 8974 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8976 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8977 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8979 | (eval $ac_try) 2>&5 |
| 8980 | ac_status=$? |
| 8981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8982 | (exit $ac_status); }; } && |
| 8983 | { ac_try='test -s conftest.$ac_objext' |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8985 | (eval $ac_try) 2>&5 |
| 8986 | ac_status=$? |
| 8987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8988 | (exit $ac_status); }; }; then |
| 8989 | eval "$as_ac_Header=yes" |
| 8990 | else |
| 8991 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8993 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8994 | eval "$as_ac_Header=no" |
| 8995 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 8996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8997 | fi |
| 8998 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8999 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9000 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9001 | cat >>confdefs.h <<_ACEOF |
| 9002 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9003 | _ACEOF |
| 9004 | |
| 9005 | fi |
| 9006 | |
| 9007 | done |
| 9008 | |
| 9009 | echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5 |
| 9010 | echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6 |
| 9011 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then |
| 9012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9013 | else |
| 9014 | ac_check_lib_save_LIBS=$LIBS |
| 9015 | LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 9016 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9017 | /* confdefs.h. */ |
| 9018 | _ACEOF |
| 9019 | cat confdefs.h >>conftest.$ac_ext |
| 9020 | cat >>conftest.$ac_ext <<_ACEOF |
| 9021 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9022 | |
| 9023 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9024 | #ifdef __cplusplus |
| 9025 | extern "C" |
| 9026 | #endif |
| 9027 | /* We use char because int might match the return type of a gcc2 |
| 9028 | builtin and then its argument prototype would still apply. */ |
| 9029 | char AuCreateFlow (); |
| 9030 | int |
| 9031 | main () |
| 9032 | { |
| 9033 | AuCreateFlow (); |
| 9034 | ; |
| 9035 | return 0; |
| 9036 | } |
| 9037 | _ACEOF |
| 9038 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9040 | (eval $ac_link) 2>conftest.er1 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9041 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9043 | rm -f conftest.er1 |
| 9044 | cat conftest.err >&5 |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9046 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9049 | (eval $ac_try) 2>&5 |
| 9050 | ac_status=$? |
| 9051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9052 | (exit $ac_status); }; } && |
| 9053 | { ac_try='test -s conftest$ac_exeext' |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9055 | (eval $ac_try) 2>&5 |
| 9056 | ac_status=$? |
| 9057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9058 | (exit $ac_status); }; }; then |
| 9059 | ac_cv_lib_audio_AuCreateFlow=yes |
| 9060 | else |
| 9061 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9062 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9063 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9064 | ac_cv_lib_audio_AuCreateFlow=no |
| 9065 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9066 | rm -f conftest.err conftest.$ac_objext \ |
| 9067 | conftest$ac_exeext conftest.$ac_ext |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 9068 | LIBS=$ac_check_lib_save_LIBS |
| 9069 | fi |
| 9070 | echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
| 9071 | echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6 |
| 9072 | if test $ac_cv_lib_audio_AuCreateFlow = yes; then |
| 9073 | |
| 9074 | cat >>confdefs.h <<\_ACEOF |
| 9075 | #define HAVE_NAS 1 |
| 9076 | _ACEOF |
| 9077 | |
| 9078 | NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS" |
| 9079 | fi |
| 9080 | |
| 9081 | fi |
| 9082 | |
| 9083 | done |
| 9084 | |
| 9085 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 9086 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 9087 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 9088 | else |
| 9089 | XLIB="" |
| 9090 | X_CFLAGS="" |
| 9091 | X_LIBS="" |
| 9092 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 9093 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9094 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9095 | if test "x$with_curses" != "xno" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 9096 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9097 | |
| 9098 | for ac_header in ncurses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9099 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9100 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9101 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9102 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9103 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9104 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9106 | fi |
| 9107 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9108 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9109 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9110 | # Is the header compilable? |
| 9111 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9112 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9113 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9114 | /* confdefs.h. */ |
| 9115 | _ACEOF |
| 9116 | cat confdefs.h >>conftest.$ac_ext |
| 9117 | cat >>conftest.$ac_ext <<_ACEOF |
| 9118 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9119 | $ac_includes_default |
| 9120 | #include <$ac_header> |
| 9121 | _ACEOF |
| 9122 | rm -f conftest.$ac_objext |
| 9123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9124 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9125 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9127 | rm -f conftest.er1 |
| 9128 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9130 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9131 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9133 | (eval $ac_try) 2>&5 |
| 9134 | ac_status=$? |
| 9135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9136 | (exit $ac_status); }; } && |
| 9137 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9139 | (eval $ac_try) 2>&5 |
| 9140 | ac_status=$? |
| 9141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9142 | (exit $ac_status); }; }; then |
| 9143 | ac_header_compiler=yes |
| 9144 | else |
| 9145 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9147 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9148 | ac_header_compiler=no |
| 9149 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9150 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9151 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9152 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9153 | |
| 9154 | # Is the header present? |
| 9155 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9156 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9157 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9158 | /* confdefs.h. */ |
| 9159 | _ACEOF |
| 9160 | cat confdefs.h >>conftest.$ac_ext |
| 9161 | cat >>conftest.$ac_ext <<_ACEOF |
| 9162 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9163 | #include <$ac_header> |
| 9164 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9165 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9166 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9167 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9168 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9169 | rm -f conftest.er1 |
| 9170 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9172 | (exit $ac_status); } >/dev/null; then |
| 9173 | if test -s conftest.err; then |
| 9174 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9175 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9176 | else |
| 9177 | ac_cpp_err= |
| 9178 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9179 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9180 | ac_cpp_err=yes |
| 9181 | fi |
| 9182 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9183 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9184 | else |
| 9185 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9187 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9188 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9189 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9190 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9191 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9192 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9193 | |
| 9194 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9195 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9196 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9197 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9198 | 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] | 9199 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9200 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9201 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9202 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9203 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9204 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9205 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9206 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9207 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9208 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9209 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9210 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9211 | 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] | 9212 | { 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] | 9213 | 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] | 9214 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9215 | 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] | 9216 | ( |
| 9217 | cat <<\_ASBOX |
| 9218 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9219 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9220 | ## ------------------------------------ ## |
| 9221 | _ASBOX |
| 9222 | ) | |
| 9223 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9224 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9225 | esac |
| 9226 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9227 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9228 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9230 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9231 | eval "$as_ac_Header=\$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9232 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9233 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9234 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9235 | |
| 9236 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9237 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9238 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9239 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9240 | _ACEOF |
| 9241 | echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9242 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6 |
| 9243 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
| 9244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9245 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9246 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9247 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9248 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9249 | /* confdefs.h. */ |
| 9250 | _ACEOF |
| 9251 | cat confdefs.h >>conftest.$ac_ext |
| 9252 | cat >>conftest.$ac_ext <<_ACEOF |
| 9253 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9254 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9255 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9256 | #ifdef __cplusplus |
| 9257 | extern "C" |
| 9258 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9259 | /* 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] | 9260 | builtin and then its argument prototype would still apply. */ |
| 9261 | char waddch (); |
| 9262 | int |
| 9263 | main () |
| 9264 | { |
| 9265 | waddch (); |
| 9266 | ; |
| 9267 | return 0; |
| 9268 | } |
| 9269 | _ACEOF |
| 9270 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9272 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9273 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9275 | rm -f conftest.er1 |
| 9276 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9278 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9279 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9281 | (eval $ac_try) 2>&5 |
| 9282 | ac_status=$? |
| 9283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9284 | (exit $ac_status); }; } && |
| 9285 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9287 | (eval $ac_try) 2>&5 |
| 9288 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9290 | (exit $ac_status); }; }; then |
| 9291 | ac_cv_lib_ncurses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9292 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9293 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9295 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9296 | ac_cv_lib_ncurses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9297 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9298 | rm -f conftest.err conftest.$ac_objext \ |
| 9299 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9300 | LIBS=$ac_check_lib_save_LIBS |
| 9301 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9302 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9303 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6 |
| 9304 | if test $ac_cv_lib_ncurses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9305 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9306 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9307 | #define HAVE_LIBNCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9308 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9309 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9310 | CURSESLIBS="-lncurses" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 9311 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9312 | |
| 9313 | for ac_header in curses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9314 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9315 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9316 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9317 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9319 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9321 | fi |
| 9322 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9323 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9324 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9325 | # Is the header compilable? |
| 9326 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9327 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9328 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9329 | /* confdefs.h. */ |
| 9330 | _ACEOF |
| 9331 | cat confdefs.h >>conftest.$ac_ext |
| 9332 | cat >>conftest.$ac_ext <<_ACEOF |
| 9333 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9334 | $ac_includes_default |
| 9335 | #include <$ac_header> |
| 9336 | _ACEOF |
| 9337 | rm -f conftest.$ac_objext |
| 9338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9339 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9340 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9342 | rm -f conftest.er1 |
| 9343 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9345 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9348 | (eval $ac_try) 2>&5 |
| 9349 | ac_status=$? |
| 9350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9351 | (exit $ac_status); }; } && |
| 9352 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9354 | (eval $ac_try) 2>&5 |
| 9355 | ac_status=$? |
| 9356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9357 | (exit $ac_status); }; }; then |
| 9358 | ac_header_compiler=yes |
| 9359 | else |
| 9360 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9362 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9363 | ac_header_compiler=no |
| 9364 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9366 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9367 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9368 | |
| 9369 | # Is the header present? |
| 9370 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9371 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9372 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9373 | /* confdefs.h. */ |
| 9374 | _ACEOF |
| 9375 | cat confdefs.h >>conftest.$ac_ext |
| 9376 | cat >>conftest.$ac_ext <<_ACEOF |
| 9377 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9378 | #include <$ac_header> |
| 9379 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9380 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9381 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9382 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9383 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9384 | rm -f conftest.er1 |
| 9385 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9387 | (exit $ac_status); } >/dev/null; then |
| 9388 | if test -s conftest.err; then |
| 9389 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9390 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9391 | else |
| 9392 | ac_cpp_err= |
| 9393 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9394 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9395 | ac_cpp_err=yes |
| 9396 | fi |
| 9397 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9398 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9399 | else |
| 9400 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9402 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9403 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9404 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9405 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9406 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9407 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9408 | |
| 9409 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9410 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9411 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9412 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9413 | 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] | 9414 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9415 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9416 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9417 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9418 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9419 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9420 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9421 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9422 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9423 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9424 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9425 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9426 | 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] | 9427 | { 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] | 9428 | 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] | 9429 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9430 | 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] | 9431 | ( |
| 9432 | cat <<\_ASBOX |
| 9433 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9434 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9435 | ## ------------------------------------ ## |
| 9436 | _ASBOX |
| 9437 | ) | |
| 9438 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9439 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9440 | esac |
| 9441 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9442 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9443 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9445 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9446 | eval "$as_ac_Header=\$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 9447 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9448 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9449 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9450 | |
| 9451 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9452 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9453 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9454 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9455 | _ACEOF |
| 9456 | echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9457 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6 |
| 9458 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
| 9459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9460 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9461 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9462 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9463 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9464 | /* confdefs.h. */ |
| 9465 | _ACEOF |
| 9466 | cat confdefs.h >>conftest.$ac_ext |
| 9467 | cat >>conftest.$ac_ext <<_ACEOF |
| 9468 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9469 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9470 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9471 | #ifdef __cplusplus |
| 9472 | extern "C" |
| 9473 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9474 | /* 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] | 9475 | builtin and then its argument prototype would still apply. */ |
| 9476 | char waddch (); |
| 9477 | int |
| 9478 | main () |
| 9479 | { |
| 9480 | waddch (); |
| 9481 | ; |
| 9482 | return 0; |
| 9483 | } |
| 9484 | _ACEOF |
| 9485 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9487 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9488 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9490 | rm -f conftest.er1 |
| 9491 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9493 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9496 | (eval $ac_try) 2>&5 |
| 9497 | ac_status=$? |
| 9498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9499 | (exit $ac_status); }; } && |
| 9500 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9502 | (eval $ac_try) 2>&5 |
| 9503 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9505 | (exit $ac_status); }; }; then |
| 9506 | ac_cv_lib_curses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9507 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9508 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9510 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9511 | ac_cv_lib_curses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9512 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9513 | rm -f conftest.err conftest.$ac_objext \ |
| 9514 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9515 | LIBS=$ac_check_lib_save_LIBS |
| 9516 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9517 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9518 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6 |
| 9519 | if test $ac_cv_lib_curses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9520 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9521 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9522 | #define HAVE_LIBCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9523 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9524 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9525 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9526 | fi |
| 9527 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9528 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9529 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9530 | done |
| 9531 | |
| 9532 | fi |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9533 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 9534 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9535 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 9536 | done |
| 9537 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 9538 | fi |
| 9539 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9540 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9541 | # Extract the first word of "sane-config", so it can be a program name with args. |
| 9542 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9545 | if test "${ac_cv_prog_sane_devel+set}" = set; then |
| 9546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9547 | else |
| 9548 | if test -n "$sane_devel"; then |
| 9549 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 9550 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9552 | for as_dir in $PATH |
| 9553 | do |
| 9554 | IFS=$as_save_IFS |
| 9555 | test -z "$as_dir" && as_dir=. |
| 9556 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9558 | ac_cv_prog_sane_devel="sane-config" |
| 9559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9560 | break 2 |
| 9561 | fi |
| 9562 | done |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9563 | done |
| 9564 | |
| 9565 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 9566 | fi |
| 9567 | fi |
| 9568 | sane_devel=$ac_cv_prog_sane_devel |
| 9569 | if test -n "$sane_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9570 | echo "$as_me:$LINENO: result: $sane_devel" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9571 | echo "${ECHO_T}$sane_devel" >&6 |
| 9572 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9573 | echo "$as_me:$LINENO: result: no" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9574 | echo "${ECHO_T}no" >&6 |
| 9575 | fi |
| 9576 | |
| 9577 | if test "$sane_devel" = "no" |
| 9578 | then |
| 9579 | SANELIBS="" |
| 9580 | SANEINCL="" |
| 9581 | else |
| 9582 | SANELIBS="`$sane_devel --libs`" |
| 9583 | SANEINCL="`$sane_devel --cflags`" |
| 9584 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9585 | ac_save_LIBS="$LIBS" |
| 9586 | CPPFLAGS="$CPPFLAGS $SANEINCL" |
| 9587 | LIBS="$LIBS $SANELIBS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9588 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 9589 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9590 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 9591 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 9592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9593 | fi |
| 9594 | echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 9595 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9596 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9597 | # Is the header compilable? |
| 9598 | echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 |
| 9599 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6 |
| 9600 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9601 | /* confdefs.h. */ |
| 9602 | _ACEOF |
| 9603 | cat confdefs.h >>conftest.$ac_ext |
| 9604 | cat >>conftest.$ac_ext <<_ACEOF |
| 9605 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9606 | $ac_includes_default |
| 9607 | #include <sane/sane.h> |
| 9608 | _ACEOF |
| 9609 | rm -f conftest.$ac_objext |
| 9610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9611 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9612 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9614 | rm -f conftest.er1 |
| 9615 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9617 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9618 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9620 | (eval $ac_try) 2>&5 |
| 9621 | ac_status=$? |
| 9622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9623 | (exit $ac_status); }; } && |
| 9624 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9626 | (eval $ac_try) 2>&5 |
| 9627 | ac_status=$? |
| 9628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9629 | (exit $ac_status); }; }; then |
| 9630 | ac_header_compiler=yes |
| 9631 | else |
| 9632 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9634 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9635 | ac_header_compiler=no |
| 9636 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9638 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9639 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9640 | |
| 9641 | # Is the header present? |
| 9642 | echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 |
| 9643 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6 |
| 9644 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9645 | /* confdefs.h. */ |
| 9646 | _ACEOF |
| 9647 | cat confdefs.h >>conftest.$ac_ext |
| 9648 | cat >>conftest.$ac_ext <<_ACEOF |
| 9649 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9650 | #include <sane/sane.h> |
| 9651 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9652 | 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] | 9653 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9654 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9655 | grep -v '^ *+' conftest.er1 >conftest.err |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9656 | rm -f conftest.er1 |
| 9657 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9659 | (exit $ac_status); } >/dev/null; then |
| 9660 | if test -s conftest.err; then |
| 9661 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9662 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9663 | else |
| 9664 | ac_cpp_err= |
| 9665 | fi |
| 9666 | else |
| 9667 | ac_cpp_err=yes |
| 9668 | fi |
| 9669 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9670 | ac_header_preproc=yes |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9671 | else |
| 9672 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9674 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9675 | ac_header_preproc=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9676 | fi |
| 9677 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9678 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9679 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9680 | |
| 9681 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9682 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9683 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9684 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9685 | 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] | 9686 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5 |
| 9687 | echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;} |
| 9688 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9689 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9690 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9691 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 |
| 9692 | 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] | 9693 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 |
| 9694 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} |
| 9695 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5 |
| 9696 | echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;} |
| 9697 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9698 | 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] | 9699 | { 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] | 9700 | 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] | 9701 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5 |
| 9702 | 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] | 9703 | ( |
| 9704 | cat <<\_ASBOX |
| 9705 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9706 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9707 | ## ------------------------------------ ## |
| 9708 | _ASBOX |
| 9709 | ) | |
| 9710 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9711 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9712 | esac |
| 9713 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 9714 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 9715 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 9716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9717 | else |
| 9718 | ac_cv_header_sane_sane_h=$ac_header_preproc |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9719 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9720 | 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] | 9721 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9722 | |
| 9723 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9724 | if test $ac_cv_header_sane_sane_h = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9725 | echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9726 | echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6 |
| 9727 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then |
| 9728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9729 | else |
| 9730 | ac_check_lib_save_LIBS=$LIBS |
| 9731 | LIBS="-lsane $LIBS" |
| 9732 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9733 | /* confdefs.h. */ |
| 9734 | _ACEOF |
| 9735 | cat confdefs.h >>conftest.$ac_ext |
| 9736 | cat >>conftest.$ac_ext <<_ACEOF |
| 9737 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9738 | |
| 9739 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9740 | #ifdef __cplusplus |
| 9741 | extern "C" |
| 9742 | #endif |
| 9743 | /* We use char because int might match the return type of a gcc2 |
| 9744 | builtin and then its argument prototype would still apply. */ |
| 9745 | char sane_open (); |
| 9746 | int |
| 9747 | main () |
| 9748 | { |
| 9749 | sane_open (); |
| 9750 | ; |
| 9751 | return 0; |
| 9752 | } |
| 9753 | _ACEOF |
| 9754 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9756 | (eval $ac_link) 2>conftest.er1 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9757 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9759 | rm -f conftest.er1 |
| 9760 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9762 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9765 | (eval $ac_try) 2>&5 |
| 9766 | ac_status=$? |
| 9767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9768 | (exit $ac_status); }; } && |
| 9769 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9771 | (eval $ac_try) 2>&5 |
| 9772 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9774 | (exit $ac_status); }; }; then |
| 9775 | ac_cv_lib_sane_sane_open=yes |
| 9776 | else |
| 9777 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9779 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9780 | ac_cv_lib_sane_sane_open=no |
| 9781 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9782 | rm -f conftest.err conftest.$ac_objext \ |
| 9783 | conftest$ac_exeext conftest.$ac_ext |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9784 | LIBS=$ac_check_lib_save_LIBS |
| 9785 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9786 | 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] | 9787 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6 |
| 9788 | if test $ac_cv_lib_sane_sane_open = yes; then |
| 9789 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9790 | cat >>confdefs.h <<\_ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9791 | #define HAVE_SANE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9792 | _ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9793 | |
| 9794 | else |
| 9795 | SANELIBS="" |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 9796 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9797 | fi |
| 9798 | |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 9799 | else |
| 9800 | SANELIBS="" |
| 9801 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9802 | fi |
| 9803 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9804 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 9805 | LIBS="$ac_save_LIBS" |
| 9806 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 9807 | fi |
| 9808 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9809 | |
| 9810 | |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9811 | |
| 9812 | for ac_header in unicode/ubidi.h |
| 9813 | do |
| 9814 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9815 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9816 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9817 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9818 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9820 | fi |
| 9821 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9822 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9823 | else |
| 9824 | # Is the header compilable? |
| 9825 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9826 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9827 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9828 | /* confdefs.h. */ |
| 9829 | _ACEOF |
| 9830 | cat confdefs.h >>conftest.$ac_ext |
| 9831 | cat >>conftest.$ac_ext <<_ACEOF |
| 9832 | /* end confdefs.h. */ |
| 9833 | $ac_includes_default |
| 9834 | #include <$ac_header> |
| 9835 | _ACEOF |
| 9836 | rm -f conftest.$ac_objext |
| 9837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9838 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9839 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9840 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9841 | rm -f conftest.er1 |
| 9842 | cat conftest.err >&5 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9844 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9845 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9847 | (eval $ac_try) 2>&5 |
| 9848 | ac_status=$? |
| 9849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9850 | (exit $ac_status); }; } && |
| 9851 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9853 | (eval $ac_try) 2>&5 |
| 9854 | ac_status=$? |
| 9855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9856 | (exit $ac_status); }; }; then |
| 9857 | ac_header_compiler=yes |
| 9858 | else |
| 9859 | echo "$as_me: failed program was:" >&5 |
| 9860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9861 | |
| 9862 | ac_header_compiler=no |
| 9863 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9865 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9866 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9867 | |
| 9868 | # Is the header present? |
| 9869 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9870 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9871 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9872 | /* confdefs.h. */ |
| 9873 | _ACEOF |
| 9874 | cat confdefs.h >>conftest.$ac_ext |
| 9875 | cat >>conftest.$ac_ext <<_ACEOF |
| 9876 | /* end confdefs.h. */ |
| 9877 | #include <$ac_header> |
| 9878 | _ACEOF |
| 9879 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9880 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9881 | ac_status=$? |
| 9882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9883 | rm -f conftest.er1 |
| 9884 | cat conftest.err >&5 |
| 9885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9886 | (exit $ac_status); } >/dev/null; then |
| 9887 | if test -s conftest.err; then |
| 9888 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9889 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9890 | else |
| 9891 | ac_cpp_err= |
| 9892 | fi |
| 9893 | else |
| 9894 | ac_cpp_err=yes |
| 9895 | fi |
| 9896 | if test -z "$ac_cpp_err"; then |
| 9897 | ac_header_preproc=yes |
| 9898 | else |
| 9899 | echo "$as_me: failed program was:" >&5 |
| 9900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9901 | |
| 9902 | ac_header_preproc=no |
| 9903 | fi |
| 9904 | rm -f conftest.err conftest.$ac_ext |
| 9905 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9906 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9907 | |
| 9908 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9909 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9910 | yes:no: ) |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9911 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9912 | 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] | 9913 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9914 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9915 | ac_header_preproc=yes |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9916 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9917 | no:yes:* ) |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9918 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9919 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9920 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9921 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9922 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9923 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9924 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9925 | 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] | 9926 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9927 | 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] | 9928 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9929 | 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] | 9930 | ( |
| 9931 | cat <<\_ASBOX |
| 9932 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9933 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9934 | ## ------------------------------------ ## |
| 9935 | _ASBOX |
| 9936 | ) | |
| 9937 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9938 | ;; |
| 9939 | esac |
| 9940 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9941 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9944 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9945 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9946 | fi |
| 9947 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9948 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9949 | |
| 9950 | fi |
| 9951 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9952 | cat >>confdefs.h <<_ACEOF |
| 9953 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9954 | _ACEOF |
| 9955 | |
| 9956 | fi |
| 9957 | |
| 9958 | done |
| 9959 | |
| 9960 | if test "$ac_cv_header_unicode_ubidi_h" = "yes" |
| 9961 | then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 9962 | saved_libs="$LIBS" |
| 9963 | ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}" |
Shachar Shemesh | 9f2627e | 2004-04-06 20:13:21 +0000 | [diff] [blame] | 9964 | ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}" |
| 9965 | ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}" |
| 9966 | echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5 |
| 9967 | 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] | 9968 | LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s" |
| 9969 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9970 | /* confdefs.h. */ |
| 9971 | _ACEOF |
| 9972 | cat confdefs.h >>conftest.$ac_ext |
| 9973 | cat >>conftest.$ac_ext <<_ACEOF |
| 9974 | /* end confdefs.h. */ |
| 9975 | #include <unicode/ubidi.h> |
| 9976 | int |
| 9977 | main () |
| 9978 | { |
| 9979 | ubidi_open() |
| 9980 | ; |
| 9981 | return 0; |
| 9982 | } |
| 9983 | _ACEOF |
| 9984 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9986 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9987 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9989 | rm -f conftest.er1 |
| 9990 | cat conftest.err >&5 |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 9991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9992 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 9993 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9995 | (eval $ac_try) 2>&5 |
| 9996 | ac_status=$? |
| 9997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9998 | (exit $ac_status); }; } && |
| 9999 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 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); }; }; then |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10005 | |
| 10006 | cat >>confdefs.h <<\_ACEOF |
| 10007 | #define HAVE_ICU 1 |
| 10008 | _ACEOF |
| 10009 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 10010 | ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10011 | |
Shachar Shemesh | 9f2627e | 2004-04-06 20:13:21 +0000 | [diff] [blame] | 10012 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10013 | echo "${ECHO_T}yes" >&6 |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 10014 | else |
| 10015 | echo "$as_me: failed program was:" >&5 |
| 10016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10017 | |
Shachar Shemesh | 9f2627e | 2004-04-06 20:13:21 +0000 | [diff] [blame] | 10018 | echo "$as_me:$LINENO: result: no" >&5 |
| 10019 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 10020 | fi |
| 10021 | rm -f conftest.err conftest.$ac_objext \ |
| 10022 | conftest$ac_exeext conftest.$ac_ext |
| 10023 | LIBS="$saved_libs" |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 10024 | fi |
| 10025 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10026 | echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10027 | echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6 |
| 10028 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 10029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10030 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10031 | ac_check_lib_save_LIBS=$LIBS |
Dmitry Timoshkov | 8871a11 | 2001-11-06 22:26:53 +0000 | [diff] [blame] | 10032 | LIBS="-lfreetype $X_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10033 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10034 | /* confdefs.h. */ |
| 10035 | _ACEOF |
| 10036 | cat confdefs.h >>conftest.$ac_ext |
| 10037 | cat >>conftest.$ac_ext <<_ACEOF |
| 10038 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10039 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10040 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10041 | #ifdef __cplusplus |
| 10042 | extern "C" |
| 10043 | #endif |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10044 | /* 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] | 10045 | builtin and then its argument prototype would still apply. */ |
| 10046 | char FT_Init_FreeType (); |
| 10047 | int |
| 10048 | main () |
| 10049 | { |
| 10050 | FT_Init_FreeType (); |
| 10051 | ; |
| 10052 | return 0; |
| 10053 | } |
| 10054 | _ACEOF |
| 10055 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10057 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10058 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10060 | rm -f conftest.er1 |
| 10061 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10063 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10064 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10066 | (eval $ac_try) 2>&5 |
| 10067 | ac_status=$? |
| 10068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10069 | (exit $ac_status); }; } && |
| 10070 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10072 | (eval $ac_try) 2>&5 |
| 10073 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10075 | (exit $ac_status); }; }; then |
| 10076 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10077 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10078 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10079 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10080 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10081 | ac_cv_lib_freetype_FT_Init_FreeType=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10082 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10083 | rm -f conftest.err conftest.$ac_objext \ |
| 10084 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10085 | LIBS=$ac_check_lib_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10086 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10087 | 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] | 10088 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6 |
| 10089 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10090 | ft_lib=yes |
| 10091 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10092 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10093 | fi |
| 10094 | |
| 10095 | if test "$ft_lib" = "no" |
| 10096 | then |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10097 | FREETYPELIBS="" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10098 | FREETYPEINCL="" |
| 10099 | wine_cv_msg_freetype=no |
| 10100 | else |
| 10101 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 10102 | set dummy freetype-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10103 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10104 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10105 | if test "${ac_cv_prog_ft_devel+set}" = set; then |
| 10106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10107 | else |
| 10108 | if test -n "$ft_devel"; then |
| 10109 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 10110 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10112 | for as_dir in $PATH |
| 10113 | do |
| 10114 | IFS=$as_save_IFS |
| 10115 | test -z "$as_dir" && as_dir=. |
| 10116 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10117 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10118 | ac_cv_prog_ft_devel="freetype-config" |
| 10119 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10120 | break 2 |
| 10121 | fi |
| 10122 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10123 | done |
| 10124 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10125 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 10126 | fi |
| 10127 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10128 | ft_devel=$ac_cv_prog_ft_devel |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10129 | if test -n "$ft_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10130 | echo "$as_me:$LINENO: result: $ft_devel" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10131 | echo "${ECHO_T}$ft_devel" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10132 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10133 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10134 | echo "${ECHO_T}no" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10135 | fi |
| 10136 | |
| 10137 | if test "$ft_devel" = "no" |
| 10138 | then |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10139 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 10140 | set dummy freetype2-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10141 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10143 | if test "${ac_cv_prog_ft_devel2+set}" = set; then |
| 10144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10145 | else |
| 10146 | if test -n "$ft_devel2"; then |
| 10147 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 10148 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10150 | for as_dir in $PATH |
| 10151 | do |
| 10152 | IFS=$as_save_IFS |
| 10153 | test -z "$as_dir" && as_dir=. |
| 10154 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10155 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10156 | ac_cv_prog_ft_devel2="freetype2-config" |
| 10157 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10158 | break 2 |
| 10159 | fi |
| 10160 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10161 | done |
| 10162 | |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10163 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 10164 | fi |
| 10165 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10166 | ft_devel2=$ac_cv_prog_ft_devel2 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10167 | if test -n "$ft_devel2"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10168 | echo "$as_me:$LINENO: result: $ft_devel2" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10169 | echo "${ECHO_T}$ft_devel2" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10170 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10171 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10172 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10173 | fi |
| 10174 | |
| 10175 | if test "$ft_devel2" = "freetype2-config" |
| 10176 | then |
| 10177 | ft_devel=$ft_devel2 |
| 10178 | fi |
| 10179 | fi |
| 10180 | if test "$ft_devel" = "no" |
| 10181 | then |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10182 | FREETYPELIBS="" |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10183 | FREETYPEINCL="" |
| 10184 | wine_cv_msg_freetype=yes |
| 10185 | else |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10186 | FREETYPELIBS=`$ft_devel --libs` |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 10187 | FREETYPEINCL=`$ft_devel --cflags` |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10188 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 10189 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10190 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10191 | |
| 10192 | |
| 10193 | |
| 10194 | |
| 10195 | |
| 10196 | |
| 10197 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 10198 | |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 10199 | |
Rein Klazes | e617a9c | 2003-11-19 02:18:13 +0000 | [diff] [blame] | 10200 | for ac_header in ft2build.h \ |
| 10201 | freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10202 | freetype/ftglyph.h \ |
| 10203 | freetype/tttables.h \ |
| 10204 | freetype/ftnames.h \ |
| 10205 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 10206 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10207 | freetype/ftoutln.h \ |
Huw Davies | c221718 | 2004-06-16 20:06:26 +0000 | [diff] [blame] | 10208 | freetype/ftwinfnt.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 10209 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10210 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10211 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10212 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10213 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10214 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10216 | else |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10217 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10218 | /* confdefs.h. */ |
| 10219 | _ACEOF |
| 10220 | cat confdefs.h >>conftest.$ac_ext |
| 10221 | cat >>conftest.$ac_ext <<_ACEOF |
| 10222 | /* end confdefs.h. */ |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10223 | #if HAVE_FT2BUILD_H |
| 10224 | #include <ft2build.h> |
| 10225 | #endif |
| 10226 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10227 | #include <$ac_header> |
| 10228 | _ACEOF |
| 10229 | rm -f conftest.$ac_objext |
| 10230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10231 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10232 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10233 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10234 | rm -f conftest.er1 |
| 10235 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10237 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10238 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10240 | (eval $ac_try) 2>&5 |
| 10241 | ac_status=$? |
| 10242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10243 | (exit $ac_status); }; } && |
| 10244 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10246 | (eval $ac_try) 2>&5 |
| 10247 | ac_status=$? |
| 10248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10249 | (exit $ac_status); }; }; then |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10250 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10251 | else |
| 10252 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10253 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10254 | |
Rein Klazes | 9c26917 | 2003-11-20 04:17:33 +0000 | [diff] [blame] | 10255 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10256 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10258 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10259 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10260 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10262 | cat >>confdefs.h <<_ACEOF |
| 10263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10264 | _ACEOF |
| 10265 | |
| 10266 | fi |
| 10267 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10268 | done |
| 10269 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10270 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10271 | /* confdefs.h. */ |
| 10272 | _ACEOF |
| 10273 | cat confdefs.h >>conftest.$ac_ext |
| 10274 | cat >>conftest.$ac_ext <<_ACEOF |
| 10275 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10276 | #include <ft2build.h> |
| 10277 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10278 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10279 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10280 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10281 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10282 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10283 | rm -f conftest.er1 |
| 10284 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10286 | (exit $ac_status); } >/dev/null; then |
| 10287 | if test -s conftest.err; then |
| 10288 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10289 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10290 | else |
| 10291 | ac_cpp_err= |
| 10292 | fi |
| 10293 | else |
| 10294 | ac_cpp_err=yes |
| 10295 | fi |
| 10296 | if test -z "$ac_cpp_err"; then |
| 10297 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10298 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10299 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10300 | _ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10301 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10302 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10303 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10304 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10306 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10307 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 10308 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10309 | rm -f conftest.err conftest.$ac_ext |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 10310 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 10311 | 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] | 10312 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10313 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10314 | cat >>confdefs.h <<\_ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10315 | #define HAVE_FREETYPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10316 | _ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10317 | |
| 10318 | wine_cv_msg_freetype=no |
| 10319 | else |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10320 | FREETYPELIBS="" |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 10321 | FREETYPEINCL="" |
| 10322 | wine_cv_msg_freetype=yes |
| 10323 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 10324 | fi |
| 10325 | fi |
| 10326 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10327 | |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 10328 | |
| 10329 | if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS" |
| 10330 | then |
| 10331 | FONTSSUBDIRS="fonts" |
| 10332 | |
| 10333 | fi |
| 10334 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10335 | echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10336 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6 |
| 10337 | if test "${ac_cv_c_ppdev+set}" = set; then |
| 10338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 10339 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10340 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10341 | /* confdefs.h. */ |
| 10342 | _ACEOF |
| 10343 | cat confdefs.h >>conftest.$ac_ext |
| 10344 | cat >>conftest.$ac_ext <<_ACEOF |
| 10345 | /* end confdefs.h. */ |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10346 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10347 | int |
| 10348 | main () |
| 10349 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10350 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10351 | ; |
| 10352 | return 0; |
| 10353 | } |
| 10354 | _ACEOF |
| 10355 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10357 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10358 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10360 | rm -f conftest.er1 |
| 10361 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10363 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10366 | (eval $ac_try) 2>&5 |
| 10367 | ac_status=$? |
| 10368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10369 | (exit $ac_status); }; } && |
| 10370 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10372 | (eval $ac_try) 2>&5 |
| 10373 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10375 | (exit $ac_status); }; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10376 | ac_cv_c_ppdev="yes" |
| 10377 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10378 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10380 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10381 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10382 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10384 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10385 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10386 | echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10387 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10388 | if test "$ac_cv_c_ppdev" = "yes" |
| 10389 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10390 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10391 | cat >>confdefs.h <<\_ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10392 | #define HAVE_PPDEV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10393 | _ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 10394 | |
| 10395 | fi |
| 10396 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10397 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
| 10398 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 |
| 10399 | if test "${ac_cv_c_va_copy+set}" = set; then |
| 10400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10401 | else |
| 10402 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10403 | /* confdefs.h. */ |
| 10404 | _ACEOF |
| 10405 | cat confdefs.h >>conftest.$ac_ext |
| 10406 | cat >>conftest.$ac_ext <<_ACEOF |
| 10407 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10408 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10409 | int |
| 10410 | main () |
| 10411 | { |
| 10412 | va_list ap1, ap2; |
| 10413 | va_copy(ap1,ap2); |
| 10414 | |
| 10415 | ; |
| 10416 | return 0; |
| 10417 | } |
| 10418 | _ACEOF |
| 10419 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10421 | (eval $ac_link) 2>conftest.er1 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10422 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10424 | rm -f conftest.er1 |
| 10425 | cat conftest.err >&5 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10427 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10430 | (eval $ac_try) 2>&5 |
| 10431 | ac_status=$? |
| 10432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10433 | (exit $ac_status); }; } && |
| 10434 | { ac_try='test -s conftest$ac_exeext' |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10436 | (eval $ac_try) 2>&5 |
| 10437 | ac_status=$? |
| 10438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10439 | (exit $ac_status); }; }; then |
| 10440 | ac_cv_c_va_copy="yes" |
| 10441 | else |
| 10442 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10444 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10445 | ac_cv_c_va_copy="no" |
| 10446 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10447 | rm -f conftest.err conftest.$ac_objext \ |
| 10448 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10449 | |
| 10450 | fi |
| 10451 | echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
| 10452 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6 |
| 10453 | if test "$ac_cv_c_va_copy" = "yes" |
| 10454 | then |
| 10455 | |
| 10456 | cat >>confdefs.h <<\_ACEOF |
| 10457 | #define HAVE_VA_COPY 1 |
| 10458 | _ACEOF |
| 10459 | |
| 10460 | fi |
| 10461 | echo "$as_me:$LINENO: checking for __va_copy" >&5 |
| 10462 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6 |
| 10463 | if test "${ac_cv_c___va_copy+set}" = set; then |
| 10464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10465 | else |
| 10466 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +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. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10472 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10473 | int |
| 10474 | main () |
| 10475 | { |
| 10476 | va_list ap1, ap2; |
| 10477 | __va_copy(ap1,ap2); |
| 10478 | |
| 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 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +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 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +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' |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +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___va_copy="yes" |
| 10505 | else |
| 10506 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10508 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10509 | ac_cv_c___va_copy="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 |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 10513 | |
| 10514 | fi |
| 10515 | echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
| 10516 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6 |
| 10517 | if test "$ac_cv_c___va_copy" = "yes" |
| 10518 | then |
| 10519 | |
| 10520 | cat >>confdefs.h <<\_ACEOF |
| 10521 | #define HAVE___VA_COPY 1 |
| 10522 | _ACEOF |
| 10523 | |
| 10524 | fi |
| 10525 | |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10526 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
| 10527 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 |
| 10528 | if test "${ac_cv_c_sigsetjmp+set}" = set; then |
| 10529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10530 | else |
| 10531 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +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 | #include <setjmp.h> |
| 10538 | int |
| 10539 | main () |
| 10540 | { |
| 10541 | sigjmp_buf buf; |
| 10542 | sigsetjmp( buf, 1 ); |
| 10543 | siglongjmp( buf, 1 ); |
| 10544 | ; |
| 10545 | return 0; |
| 10546 | } |
| 10547 | _ACEOF |
| 10548 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10550 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10551 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10552 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10553 | rm -f conftest.er1 |
| 10554 | cat conftest.err >&5 |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10556 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10557 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10559 | (eval $ac_try) 2>&5 |
| 10560 | ac_status=$? |
| 10561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10562 | (exit $ac_status); }; } && |
| 10563 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10565 | (eval $ac_try) 2>&5 |
| 10566 | ac_status=$? |
| 10567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10568 | (exit $ac_status); }; }; then |
| 10569 | ac_cv_c_sigsetjmp="yes" |
| 10570 | else |
| 10571 | echo "$as_me: failed program was:" >&5 |
| 10572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10573 | |
| 10574 | ac_cv_c_sigsetjmp="no" |
| 10575 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10576 | rm -f conftest.err conftest.$ac_objext \ |
| 10577 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 10578 | |
| 10579 | fi |
| 10580 | echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5 |
| 10581 | echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6 |
| 10582 | if test "$ac_cv_c_sigsetjmp" = "yes" |
| 10583 | then |
| 10584 | |
| 10585 | cat >>confdefs.h <<\_ACEOF |
| 10586 | #define HAVE_SIGSETJMP 1 |
| 10587 | _ACEOF |
| 10588 | |
| 10589 | fi |
| 10590 | |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10591 | echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5 |
| 10592 | echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6 |
| 10593 | if test "${ac_cv_type_pthread_rwlock_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_rwlock_t *) 0) |
| 10609 | return 0; |
| 10610 | if (sizeof (pthread_rwlock_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_rwlock_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_rwlock_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_rwlock_t" >&5 |
| 10647 | echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6 |
| 10648 | if test $ac_cv_type_pthread_rwlock_t = yes; then |
| 10649 | |
| 10650 | cat >>confdefs.h <<_ACEOF |
| 10651 | #define HAVE_PTHREAD_RWLOCK_T 1 |
| 10652 | _ACEOF |
| 10653 | |
| 10654 | |
| 10655 | fi |
| 10656 | echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5 |
| 10657 | echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6 |
| 10658 | if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then |
| 10659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10660 | else |
| 10661 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10662 | /* confdefs.h. */ |
| 10663 | _ACEOF |
| 10664 | cat confdefs.h >>conftest.$ac_ext |
| 10665 | cat >>conftest.$ac_ext <<_ACEOF |
| 10666 | /* end confdefs.h. */ |
| 10667 | #define _GNU_SOURCE |
| 10668 | #include <pthread.h> |
| 10669 | |
| 10670 | int |
| 10671 | main () |
| 10672 | { |
| 10673 | if ((pthread_rwlockattr_t *) 0) |
| 10674 | return 0; |
| 10675 | if (sizeof (pthread_rwlockattr_t)) |
| 10676 | return 0; |
| 10677 | ; |
| 10678 | return 0; |
| 10679 | } |
| 10680 | _ACEOF |
| 10681 | rm -f conftest.$ac_objext |
| 10682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10683 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10684 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10685 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10686 | rm -f conftest.er1 |
| 10687 | cat conftest.err >&5 |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10689 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10690 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10692 | (eval $ac_try) 2>&5 |
| 10693 | ac_status=$? |
| 10694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10695 | (exit $ac_status); }; } && |
| 10696 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10698 | (eval $ac_try) 2>&5 |
| 10699 | ac_status=$? |
| 10700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10701 | (exit $ac_status); }; }; then |
| 10702 | ac_cv_type_pthread_rwlockattr_t=yes |
| 10703 | else |
| 10704 | echo "$as_me: failed program was:" >&5 |
| 10705 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10706 | |
| 10707 | ac_cv_type_pthread_rwlockattr_t=no |
| 10708 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 10710 | fi |
| 10711 | echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5 |
| 10712 | echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6 |
| 10713 | if test $ac_cv_type_pthread_rwlockattr_t = yes; then |
| 10714 | |
| 10715 | cat >>confdefs.h <<_ACEOF |
| 10716 | #define HAVE_PTHREAD_RWLOCKATTR_T 1 |
| 10717 | _ACEOF |
| 10718 | |
| 10719 | |
| 10720 | fi |
| 10721 | |
| 10722 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10723 | ac_save_LIBS="$LIBS" |
| 10724 | LIBS="$LIBS $LIBPTHREAD" |
| 10725 | |
Emmanuel Maillard | d110e1f | 2004-07-21 03:06:03 +0000 | [diff] [blame] | 10726 | |
| 10727 | |
| 10728 | for ac_func in \ |
| 10729 | pthread_getattr_np \ |
| 10730 | pthread_get_stackaddr_np \ |
| 10731 | pthread_get_stacksize_np \ |
| 10732 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10733 | do |
| 10734 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10735 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10736 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10737 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10739 | else |
| 10740 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10741 | /* confdefs.h. */ |
| 10742 | _ACEOF |
| 10743 | cat confdefs.h >>conftest.$ac_ext |
| 10744 | cat >>conftest.$ac_ext <<_ACEOF |
| 10745 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10746 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10747 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10748 | #define $ac_func innocuous_$ac_func |
| 10749 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10750 | /* System header to define __stub macros and hopefully few prototypes, |
| 10751 | which can conflict with char $ac_func (); below. |
| 10752 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10753 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10754 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10755 | #ifdef __STDC__ |
| 10756 | # include <limits.h> |
| 10757 | #else |
| 10758 | # include <assert.h> |
| 10759 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10760 | |
| 10761 | #undef $ac_func |
| 10762 | |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10763 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10764 | #ifdef __cplusplus |
| 10765 | extern "C" |
| 10766 | { |
| 10767 | #endif |
| 10768 | /* We use char because int might match the return type of a gcc2 |
| 10769 | builtin and then its argument prototype would still apply. */ |
| 10770 | char $ac_func (); |
| 10771 | /* The GNU C library defines this for functions which it implements |
| 10772 | to always fail with ENOSYS. Some functions are actually named |
| 10773 | something starting with __ and the normal name is an alias. */ |
| 10774 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10775 | choke me |
| 10776 | #else |
| 10777 | char (*f) () = $ac_func; |
| 10778 | #endif |
| 10779 | #ifdef __cplusplus |
| 10780 | } |
| 10781 | #endif |
| 10782 | |
| 10783 | int |
| 10784 | main () |
| 10785 | { |
| 10786 | return f != $ac_func; |
| 10787 | ; |
| 10788 | return 0; |
| 10789 | } |
| 10790 | _ACEOF |
| 10791 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10793 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10794 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10796 | rm -f conftest.er1 |
| 10797 | cat conftest.err >&5 |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10799 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10800 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10802 | (eval $ac_try) 2>&5 |
| 10803 | ac_status=$? |
| 10804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10805 | (exit $ac_status); }; } && |
| 10806 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10808 | (eval $ac_try) 2>&5 |
| 10809 | ac_status=$? |
| 10810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10811 | (exit $ac_status); }; }; then |
| 10812 | eval "$as_ac_var=yes" |
| 10813 | else |
| 10814 | echo "$as_me: failed program was:" >&5 |
| 10815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10816 | |
| 10817 | eval "$as_ac_var=no" |
| 10818 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10819 | rm -f conftest.err conftest.$ac_objext \ |
| 10820 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 821ab86 | 2003-11-12 22:44:56 +0000 | [diff] [blame] | 10821 | fi |
| 10822 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10823 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10824 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10825 | cat >>confdefs.h <<_ACEOF |
| 10826 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10827 | _ACEOF |
| 10828 | |
| 10829 | fi |
| 10830 | done |
| 10831 | |
| 10832 | LIBS="$ac_save_LIBS" |
| 10833 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10834 | |
| 10835 | |
| 10836 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10837 | for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10838 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10839 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10840 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10841 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10842 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10843 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10845 | fi |
| 10846 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10847 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10848 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10849 | # Is the header compilable? |
| 10850 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10851 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10852 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10853 | /* confdefs.h. */ |
| 10854 | _ACEOF |
| 10855 | cat confdefs.h >>conftest.$ac_ext |
| 10856 | cat >>conftest.$ac_ext <<_ACEOF |
| 10857 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10858 | $ac_includes_default |
| 10859 | #include <$ac_header> |
| 10860 | _ACEOF |
| 10861 | rm -f conftest.$ac_objext |
| 10862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10863 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10864 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10866 | rm -f conftest.er1 |
| 10867 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10869 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10872 | (eval $ac_try) 2>&5 |
| 10873 | ac_status=$? |
| 10874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10875 | (exit $ac_status); }; } && |
| 10876 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10878 | (eval $ac_try) 2>&5 |
| 10879 | ac_status=$? |
| 10880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10881 | (exit $ac_status); }; }; then |
| 10882 | ac_header_compiler=yes |
| 10883 | else |
| 10884 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10886 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10887 | ac_header_compiler=no |
| 10888 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10890 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10891 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10892 | |
| 10893 | # Is the header present? |
| 10894 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10895 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10896 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10897 | /* confdefs.h. */ |
| 10898 | _ACEOF |
| 10899 | cat confdefs.h >>conftest.$ac_ext |
| 10900 | cat >>conftest.$ac_ext <<_ACEOF |
| 10901 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10902 | #include <$ac_header> |
| 10903 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10904 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10905 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10906 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10907 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10908 | rm -f conftest.er1 |
| 10909 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10911 | (exit $ac_status); } >/dev/null; then |
| 10912 | if test -s conftest.err; then |
| 10913 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10914 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10915 | else |
| 10916 | ac_cpp_err= |
| 10917 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10918 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10919 | ac_cpp_err=yes |
| 10920 | fi |
| 10921 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10922 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10923 | else |
| 10924 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10925 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10926 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10927 | ac_header_preproc=no |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10928 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10929 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10930 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10931 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10932 | |
| 10933 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10934 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10935 | yes:no: ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10936 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10937 | 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] | 10938 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10939 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10940 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10941 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10942 | no:yes:* ) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10943 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10944 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10945 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10946 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10947 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10948 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10949 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10950 | 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] | 10951 | { 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] | 10952 | 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] | 10953 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10954 | 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] | 10955 | ( |
| 10956 | cat <<\_ASBOX |
| 10957 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10958 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10959 | ## ------------------------------------ ## |
| 10960 | _ASBOX |
| 10961 | ) | |
| 10962 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10963 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10964 | esac |
| 10965 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10966 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10967 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10969 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 10970 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10971 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10972 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10973 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10974 | |
| 10975 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10976 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10977 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10978 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10979 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 10980 | break |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10981 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10982 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10983 | done |
| 10984 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10985 | |
| 10986 | echo "$as_me:$LINENO: checking for Open Sound System" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10987 | echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6 |
| 10988 | if test "${ac_cv_c_opensoundsystem+set}" = set; then |
| 10989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10990 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10991 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10992 | /* confdefs.h. */ |
| 10993 | _ACEOF |
| 10994 | cat confdefs.h >>conftest.$ac_ext |
| 10995 | cat >>conftest.$ac_ext <<_ACEOF |
| 10996 | /* end confdefs.h. */ |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10997 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 10998 | #if defined(HAVE_SYS_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10999 | #include <sys/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 11000 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11001 | #include <machine/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 11002 | #elif defined(HAVE_SOUNDCARD_H) |
| 11003 | #include <soundcard.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11004 | #endif |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11005 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11006 | int |
| 11007 | main () |
| 11008 | { |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 11009 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11010 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 11011 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
| 11012 | #if !defined(SNDCTL_DSP_STEREO) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11013 | #error No open sound system |
| 11014 | #endif |
| 11015 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11016 | ; |
| 11017 | return 0; |
| 11018 | } |
| 11019 | _ACEOF |
| 11020 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11022 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11023 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11025 | rm -f conftest.er1 |
| 11026 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11028 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11031 | (eval $ac_try) 2>&5 |
| 11032 | ac_status=$? |
| 11033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11034 | (exit $ac_status); }; } && |
| 11035 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11037 | (eval $ac_try) 2>&5 |
| 11038 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11040 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11041 | ac_cv_c_opensoundsystem="yes" |
| 11042 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11043 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11045 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11046 | ac_cv_c_opensoundsystem="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11047 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11049 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11050 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11051 | echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11052 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 11053 | if test "$ac_cv_c_opensoundsystem" = "yes" |
| 11054 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11055 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11056 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 11057 | #define HAVE_OSS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11058 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 11059 | |
| 11060 | fi |
| 11061 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11062 | echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11063 | echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6 |
| 11064 | if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then |
| 11065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11066 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11067 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11068 | /* confdefs.h. */ |
| 11069 | _ACEOF |
| 11070 | cat confdefs.h >>conftest.$ac_ext |
| 11071 | cat >>conftest.$ac_ext <<_ACEOF |
| 11072 | /* end confdefs.h. */ |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11073 | |
| 11074 | #if defined(HAVE_SYS_SOUNDCARD_H) |
| 11075 | #include <sys/soundcard.h> |
| 11076 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
| 11077 | #include <machine/soundcard.h> |
| 11078 | #elif defined(HAVE_SOUNDCARD_H) |
| 11079 | #include <soundcard.h> |
| 11080 | #endif |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11081 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11082 | int |
| 11083 | main () |
| 11084 | { |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11085 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11086 | |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11087 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ |
| 11088 | #if !defined(SNDCTL_SEQ_SYNC) |
| 11089 | #error No open sound system MIDI interface |
| 11090 | #endif |
| 11091 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11092 | ; |
| 11093 | return 0; |
| 11094 | } |
| 11095 | _ACEOF |
| 11096 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11098 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11099 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11100 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11101 | rm -f conftest.er1 |
| 11102 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11104 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11105 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11107 | (eval $ac_try) 2>&5 |
| 11108 | ac_status=$? |
| 11109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11110 | (exit $ac_status); }; } && |
| 11111 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11113 | (eval $ac_try) 2>&5 |
| 11114 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11116 | (exit $ac_status); }; }; then |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11117 | ac_cv_c_opensoundsystem_midi="yes" |
| 11118 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11119 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11121 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11122 | ac_cv_c_opensoundsystem_midi="no" |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11123 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11125 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11126 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11127 | echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11128 | |
| 11129 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" |
| 11130 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11131 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11132 | cat >>confdefs.h <<\_ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11133 | #define HAVE_OSS_MIDI 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11134 | _ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 11135 | |
| 11136 | fi |
| 11137 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11138 | # Extract the first word of "artsc-config", so it can be a program name with args. |
| 11139 | set dummy artsc-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11140 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11142 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then |
| 11143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11144 | else |
| 11145 | case $ARTSCCONFIG in |
| 11146 | [\\/]* | ?:[\\/]*) |
| 11147 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. |
| 11148 | ;; |
| 11149 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11151 | for as_dir in $PATH |
| 11152 | do |
| 11153 | IFS=$as_save_IFS |
| 11154 | test -z "$as_dir" && as_dir=. |
| 11155 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11156 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11157 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 11158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11159 | break 2 |
| 11160 | fi |
| 11161 | done |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11162 | done |
| 11163 | |
| 11164 | ;; |
| 11165 | esac |
| 11166 | fi |
| 11167 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG |
| 11168 | |
| 11169 | if test -n "$ARTSCCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11170 | echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11171 | echo "${ECHO_T}$ARTSCCONFIG" >&6 |
| 11172 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11173 | echo "$as_me:$LINENO: result: no" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11174 | echo "${ECHO_T}no" >&6 |
| 11175 | fi |
| 11176 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11177 | if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"'; |
| 11178 | then |
Alexandre Julliard | b3b12cf | 2004-02-24 01:24:20 +0000 | [diff] [blame] | 11179 | ARTSC_CFLAGS="" |
| 11180 | for i in `$ARTSCCONFIG --cflags` |
| 11181 | do |
| 11182 | case "$i" in |
| 11183 | -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";; |
| 11184 | esac |
| 11185 | done |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11186 | ARTSC_LIBS=`$ARTSCCONFIG --libs` |
| 11187 | save_CFLAGS="$CFLAGS" |
| 11188 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
| 11189 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11190 | /* confdefs.h. */ |
| 11191 | _ACEOF |
| 11192 | cat confdefs.h >>conftest.$ac_ext |
| 11193 | cat >>conftest.$ac_ext <<_ACEOF |
| 11194 | /* end confdefs.h. */ |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11195 | #include <artsc.h> |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11196 | int |
| 11197 | main () |
| 11198 | { |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11199 | arts_stream_t stream; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11200 | ; |
| 11201 | return 0; |
| 11202 | } |
| 11203 | _ACEOF |
| 11204 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11206 | (eval $ac_compile) 2>conftest.er1 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11207 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11208 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11209 | rm -f conftest.er1 |
| 11210 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11212 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11213 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11215 | (eval $ac_try) 2>&5 |
| 11216 | ac_status=$? |
| 11217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11218 | (exit $ac_status); }; } && |
| 11219 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11221 | (eval $ac_try) 2>&5 |
| 11222 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11224 | (exit $ac_status); }; }; then |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11225 | ARTSLIBS=$ARTSC_LIBS |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11226 | |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11227 | ARTSINCL=$ARTSC_CFLAGS |
| 11228 | |
| 11229 | |
| 11230 | cat >>confdefs.h <<\_ACEOF |
| 11231 | #define HAVE_ARTS 1 |
| 11232 | _ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11233 | |
| 11234 | else |
| 11235 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11237 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11238 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | bc62458 | 2004-01-18 22:15:46 +0000 | [diff] [blame] | 11240 | CFLAGS="$save_CFLAGS" |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 11241 | fi |
| 11242 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11243 | ALSALIBS="" |
| 11244 | |
| 11245 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 11246 | |
| 11247 | for ac_header in alsa/asoundlib.h sys/asoundlib.h |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11248 | do |
| 11249 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11251 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11252 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11253 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11255 | fi |
| 11256 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11257 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11258 | else |
| 11259 | # Is the header compilable? |
| 11260 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11261 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11262 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11263 | /* confdefs.h. */ |
| 11264 | _ACEOF |
| 11265 | cat confdefs.h >>conftest.$ac_ext |
| 11266 | cat >>conftest.$ac_ext <<_ACEOF |
| 11267 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11268 | $ac_includes_default |
| 11269 | #include <$ac_header> |
| 11270 | _ACEOF |
| 11271 | rm -f conftest.$ac_objext |
| 11272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11273 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11274 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11276 | rm -f conftest.er1 |
| 11277 | cat conftest.err >&5 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11279 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11280 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11282 | (eval $ac_try) 2>&5 |
| 11283 | ac_status=$? |
| 11284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11285 | (exit $ac_status); }; } && |
| 11286 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11288 | (eval $ac_try) 2>&5 |
| 11289 | ac_status=$? |
| 11290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11291 | (exit $ac_status); }; }; then |
| 11292 | ac_header_compiler=yes |
| 11293 | else |
| 11294 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11296 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11297 | ac_header_compiler=no |
| 11298 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11300 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11301 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11302 | |
| 11303 | # Is the header present? |
| 11304 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11305 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11306 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11307 | /* confdefs.h. */ |
| 11308 | _ACEOF |
| 11309 | cat confdefs.h >>conftest.$ac_ext |
| 11310 | cat >>conftest.$ac_ext <<_ACEOF |
| 11311 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11312 | #include <$ac_header> |
| 11313 | _ACEOF |
| 11314 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11315 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11316 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11317 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11318 | rm -f conftest.er1 |
| 11319 | cat conftest.err >&5 |
| 11320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11321 | (exit $ac_status); } >/dev/null; then |
| 11322 | if test -s conftest.err; then |
| 11323 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11324 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11325 | else |
| 11326 | ac_cpp_err= |
| 11327 | fi |
| 11328 | else |
| 11329 | ac_cpp_err=yes |
| 11330 | fi |
| 11331 | if test -z "$ac_cpp_err"; then |
| 11332 | ac_header_preproc=yes |
| 11333 | else |
| 11334 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11336 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11337 | ac_header_preproc=no |
| 11338 | fi |
| 11339 | rm -f conftest.err conftest.$ac_ext |
| 11340 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11341 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11342 | |
| 11343 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11344 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11345 | yes:no: ) |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11346 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11347 | 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] | 11348 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11349 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11350 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11351 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11352 | no:yes:* ) |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11353 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11354 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11355 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11356 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11357 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11358 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11359 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11360 | 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] | 11361 | { 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] | 11362 | 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] | 11363 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11364 | 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] | 11365 | ( |
| 11366 | cat <<\_ASBOX |
| 11367 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11368 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11369 | ## ------------------------------------ ## |
| 11370 | _ASBOX |
| 11371 | ) | |
| 11372 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11373 | ;; |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11374 | esac |
| 11375 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11376 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11377 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11379 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11380 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11381 | fi |
| 11382 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11383 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11384 | |
| 11385 | fi |
| 11386 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11387 | cat >>confdefs.h <<_ACEOF |
| 11388 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11389 | _ACEOF |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 11390 | break |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11391 | fi |
| 11392 | |
| 11393 | done |
| 11394 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 11395 | 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] | 11396 | then |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 11397 | echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5 |
| 11398 | echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6 |
| 11399 | if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11401 | else |
| 11402 | ac_check_lib_save_LIBS=$LIBS |
| 11403 | LIBS="-lasound $LIBS" |
| 11404 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11405 | /* confdefs.h. */ |
| 11406 | _ACEOF |
| 11407 | cat confdefs.h >>conftest.$ac_ext |
| 11408 | cat >>conftest.$ac_ext <<_ACEOF |
| 11409 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11410 | |
| 11411 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11412 | #ifdef __cplusplus |
| 11413 | extern "C" |
| 11414 | #endif |
| 11415 | /* We use char because int might match the return type of a gcc2 |
| 11416 | builtin and then its argument prototype would still apply. */ |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 11417 | char snd_pcm_hw_params_get_access (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11418 | int |
| 11419 | main () |
| 11420 | { |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 11421 | snd_pcm_hw_params_get_access (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11422 | ; |
| 11423 | return 0; |
| 11424 | } |
| 11425 | _ACEOF |
| 11426 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11428 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11429 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11431 | rm -f conftest.er1 |
| 11432 | cat conftest.err >&5 |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11434 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11437 | (eval $ac_try) 2>&5 |
| 11438 | ac_status=$? |
| 11439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11440 | (exit $ac_status); }; } && |
| 11441 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11443 | (eval $ac_try) 2>&5 |
| 11444 | ac_status=$? |
| 11445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11446 | (exit $ac_status); }; }; then |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 11447 | ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11448 | else |
| 11449 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11450 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11451 | |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 11452 | ac_cv_lib_asound_snd_pcm_hw_params_get_access=no |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11453 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11454 | rm -f conftest.err conftest.$ac_objext \ |
| 11455 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11456 | LIBS=$ac_check_lib_save_LIBS |
| 11457 | fi |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 11458 | echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5 |
| 11459 | echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6 |
| 11460 | if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then |
| 11461 | cat >conftest.$ac_ext <<_ACEOF |
| 11462 | /* confdefs.h. */ |
| 11463 | _ACEOF |
| 11464 | cat confdefs.h >>conftest.$ac_ext |
| 11465 | cat >>conftest.$ac_ext <<_ACEOF |
| 11466 | /* end confdefs.h. */ |
| 11467 | #ifdef HAVE_ALSA_ASOUNDLIB_H |
| 11468 | #include <alsa/asoundlib.h> |
| 11469 | #elif defined(HAVE_SYS_ASOUNDLIB_H) |
| 11470 | #include <sys/asoundlib.h> |
| 11471 | #endif |
| 11472 | int |
| 11473 | main () |
| 11474 | { |
| 11475 | int ret = snd_pcm_hw_params_get_access(NULL, NULL) |
| 11476 | ; |
| 11477 | return 0; |
| 11478 | } |
| 11479 | _ACEOF |
| 11480 | rm -f conftest.$ac_objext |
| 11481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11482 | (eval $ac_compile) 2>conftest.er1 |
| 11483 | ac_status=$? |
| 11484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11485 | rm -f conftest.er1 |
| 11486 | cat conftest.err >&5 |
| 11487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11488 | (exit $ac_status); } && |
| 11489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11491 | (eval $ac_try) 2>&5 |
| 11492 | ac_status=$? |
| 11493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11494 | (exit $ac_status); }; } && |
| 11495 | { ac_try='test -s conftest.$ac_objext' |
| 11496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11497 | (eval $ac_try) 2>&5 |
| 11498 | ac_status=$? |
| 11499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11500 | (exit $ac_status); }; }; then |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11501 | |
| 11502 | cat >>confdefs.h <<\_ACEOF |
| 11503 | #define HAVE_ALSA 1 |
| 11504 | _ACEOF |
| 11505 | |
Vincent Béron | 151015f | 2005-01-10 13:26:33 +0000 | [diff] [blame] | 11506 | ALSALIBS="-lasound" |
| 11507 | else |
| 11508 | echo "$as_me: failed program was:" >&5 |
| 11509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11510 | |
| 11511 | fi |
| 11512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 11513 | fi |
| 11514 | |
| 11515 | fi |
| 11516 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11517 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11518 | AUDIOIOLIBS="" |
| 11519 | |
| 11520 | |
| 11521 | for ac_header in libaudioio.h |
| 11522 | do |
| 11523 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11524 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11525 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11526 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11529 | fi |
| 11530 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11531 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11532 | else |
| 11533 | # Is the header compilable? |
| 11534 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11535 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11536 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11537 | /* confdefs.h. */ |
| 11538 | _ACEOF |
| 11539 | cat confdefs.h >>conftest.$ac_ext |
| 11540 | cat >>conftest.$ac_ext <<_ACEOF |
| 11541 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11542 | $ac_includes_default |
| 11543 | #include <$ac_header> |
| 11544 | _ACEOF |
| 11545 | rm -f conftest.$ac_objext |
| 11546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11547 | (eval $ac_compile) 2>conftest.er1 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11548 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11549 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11550 | rm -f conftest.er1 |
| 11551 | cat conftest.err >&5 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11553 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11554 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11556 | (eval $ac_try) 2>&5 |
| 11557 | ac_status=$? |
| 11558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11559 | (exit $ac_status); }; } && |
| 11560 | { ac_try='test -s conftest.$ac_objext' |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11562 | (eval $ac_try) 2>&5 |
| 11563 | ac_status=$? |
| 11564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11565 | (exit $ac_status); }; }; then |
| 11566 | ac_header_compiler=yes |
| 11567 | else |
| 11568 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11570 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11571 | ac_header_compiler=no |
| 11572 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11574 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11575 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11576 | |
| 11577 | # Is the header present? |
| 11578 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11579 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11580 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11581 | /* confdefs.h. */ |
| 11582 | _ACEOF |
| 11583 | cat confdefs.h >>conftest.$ac_ext |
| 11584 | cat >>conftest.$ac_ext <<_ACEOF |
| 11585 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11586 | #include <$ac_header> |
| 11587 | _ACEOF |
| 11588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11590 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11591 | grep -v '^ *+' conftest.er1 >conftest.err |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11592 | rm -f conftest.er1 |
| 11593 | cat conftest.err >&5 |
| 11594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11595 | (exit $ac_status); } >/dev/null; then |
| 11596 | if test -s conftest.err; then |
| 11597 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11598 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11599 | else |
| 11600 | ac_cpp_err= |
| 11601 | fi |
| 11602 | else |
| 11603 | ac_cpp_err=yes |
| 11604 | fi |
| 11605 | if test -z "$ac_cpp_err"; then |
| 11606 | ac_header_preproc=yes |
| 11607 | else |
| 11608 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11610 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11611 | ac_header_preproc=no |
| 11612 | fi |
| 11613 | rm -f conftest.err conftest.$ac_ext |
| 11614 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11615 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11616 | |
| 11617 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11618 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11619 | yes:no: ) |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11620 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11621 | 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] | 11622 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11623 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11624 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11625 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11626 | no:yes:* ) |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11627 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11628 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11629 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11630 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11631 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11632 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11633 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11634 | 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] | 11635 | { 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] | 11636 | 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] | 11637 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11638 | 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] | 11639 | ( |
| 11640 | cat <<\_ASBOX |
| 11641 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11642 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11643 | ## ------------------------------------ ## |
| 11644 | _ASBOX |
| 11645 | ) | |
| 11646 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11647 | ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11648 | esac |
| 11649 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11651 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11653 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11654 | eval "$as_ac_Header=\$ac_header_preproc" |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11655 | fi |
| 11656 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11657 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11658 | |
| 11659 | fi |
| 11660 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11661 | cat >>confdefs.h <<_ACEOF |
| 11662 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11663 | _ACEOF |
| 11664 | echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5 |
| 11665 | echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6 |
| 11666 | if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then |
| 11667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11668 | else |
| 11669 | ac_check_lib_save_LIBS=$LIBS |
| 11670 | LIBS="-laudioio $LIBS" |
| 11671 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11672 | /* confdefs.h. */ |
| 11673 | _ACEOF |
| 11674 | cat confdefs.h >>conftest.$ac_ext |
| 11675 | cat >>conftest.$ac_ext <<_ACEOF |
| 11676 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11677 | |
| 11678 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11679 | #ifdef __cplusplus |
| 11680 | extern "C" |
| 11681 | #endif |
| 11682 | /* We use char because int might match the return type of a gcc2 |
| 11683 | builtin and then its argument prototype would still apply. */ |
| 11684 | char AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11685 | int |
| 11686 | main () |
| 11687 | { |
| 11688 | AudioIOGetVersion (); |
| 11689 | ; |
| 11690 | return 0; |
| 11691 | } |
| 11692 | _ACEOF |
| 11693 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11695 | (eval $ac_link) 2>conftest.er1 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11696 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11698 | rm -f conftest.er1 |
| 11699 | cat conftest.err >&5 |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11701 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11702 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11704 | (eval $ac_try) 2>&5 |
| 11705 | ac_status=$? |
| 11706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11707 | (exit $ac_status); }; } && |
| 11708 | { ac_try='test -s conftest$ac_exeext' |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11710 | (eval $ac_try) 2>&5 |
| 11711 | ac_status=$? |
| 11712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11713 | (exit $ac_status); }; }; then |
| 11714 | ac_cv_lib_audioio_AudioIOGetVersion=yes |
| 11715 | else |
| 11716 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11717 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11718 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11719 | ac_cv_lib_audioio_AudioIOGetVersion=no |
| 11720 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11721 | rm -f conftest.err conftest.$ac_objext \ |
| 11722 | conftest$ac_exeext conftest.$ac_ext |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 11723 | LIBS=$ac_check_lib_save_LIBS |
| 11724 | fi |
| 11725 | echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5 |
| 11726 | echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6 |
| 11727 | if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then |
| 11728 | AUDIOIOLIBS="-laudioio" |
| 11729 | |
| 11730 | cat >>confdefs.h <<\_ACEOF |
| 11731 | #define HAVE_LIBAUDIOIO 1 |
| 11732 | _ACEOF |
| 11733 | |
| 11734 | fi |
| 11735 | |
| 11736 | fi |
| 11737 | |
| 11738 | done |
| 11739 | |
| 11740 | |
| 11741 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11742 | |
| 11743 | for ac_header in capi20.h |
| 11744 | do |
| 11745 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11746 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11747 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11748 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11749 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11751 | fi |
| 11752 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11753 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11754 | else |
| 11755 | # Is the header compilable? |
| 11756 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11757 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11758 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11759 | /* confdefs.h. */ |
| 11760 | _ACEOF |
| 11761 | cat confdefs.h >>conftest.$ac_ext |
| 11762 | cat >>conftest.$ac_ext <<_ACEOF |
| 11763 | /* end confdefs.h. */ |
| 11764 | $ac_includes_default |
| 11765 | #include <$ac_header> |
| 11766 | _ACEOF |
| 11767 | rm -f conftest.$ac_objext |
| 11768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11769 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11770 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11772 | rm -f conftest.er1 |
| 11773 | cat conftest.err >&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11775 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11776 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11778 | (eval $ac_try) 2>&5 |
| 11779 | ac_status=$? |
| 11780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11781 | (exit $ac_status); }; } && |
| 11782 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11784 | (eval $ac_try) 2>&5 |
| 11785 | ac_status=$? |
| 11786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11787 | (exit $ac_status); }; }; then |
| 11788 | ac_header_compiler=yes |
| 11789 | else |
| 11790 | echo "$as_me: failed program was:" >&5 |
| 11791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11792 | |
| 11793 | ac_header_compiler=no |
| 11794 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11796 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11797 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11798 | |
| 11799 | # Is the header present? |
| 11800 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11801 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11802 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11803 | /* confdefs.h. */ |
| 11804 | _ACEOF |
| 11805 | cat confdefs.h >>conftest.$ac_ext |
| 11806 | cat >>conftest.$ac_ext <<_ACEOF |
| 11807 | /* end confdefs.h. */ |
| 11808 | #include <$ac_header> |
| 11809 | _ACEOF |
| 11810 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11811 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11812 | ac_status=$? |
| 11813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11814 | rm -f conftest.er1 |
| 11815 | cat conftest.err >&5 |
| 11816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11817 | (exit $ac_status); } >/dev/null; then |
| 11818 | if test -s conftest.err; then |
| 11819 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11820 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11821 | else |
| 11822 | ac_cpp_err= |
| 11823 | fi |
| 11824 | else |
| 11825 | ac_cpp_err=yes |
| 11826 | fi |
| 11827 | if test -z "$ac_cpp_err"; then |
| 11828 | ac_header_preproc=yes |
| 11829 | else |
| 11830 | echo "$as_me: failed program was:" >&5 |
| 11831 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11832 | |
| 11833 | ac_header_preproc=no |
| 11834 | fi |
| 11835 | rm -f conftest.err conftest.$ac_ext |
| 11836 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11837 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11838 | |
| 11839 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11840 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11841 | yes:no: ) |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11842 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11843 | 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] | 11844 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11845 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11846 | ac_header_preproc=yes |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11847 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11848 | no:yes:* ) |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11849 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11850 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11851 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11852 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11853 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11854 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11855 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11856 | 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] | 11857 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11858 | 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] | 11859 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11860 | 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] | 11861 | ( |
| 11862 | cat <<\_ASBOX |
| 11863 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11864 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11865 | ## ------------------------------------ ## |
| 11866 | _ASBOX |
| 11867 | ) | |
| 11868 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11869 | ;; |
| 11870 | esac |
| 11871 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11872 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11873 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11875 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11876 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11877 | fi |
| 11878 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11879 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11880 | |
| 11881 | fi |
| 11882 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11883 | cat >>confdefs.h <<_ACEOF |
| 11884 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11885 | _ACEOF |
| 11886 | |
| 11887 | |
| 11888 | for ac_header in linux/capi.h |
| 11889 | do |
| 11890 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11891 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11892 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11893 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11894 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11896 | fi |
| 11897 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11898 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11899 | else |
| 11900 | # Is the header compilable? |
| 11901 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11902 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11903 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11904 | /* confdefs.h. */ |
| 11905 | _ACEOF |
| 11906 | cat confdefs.h >>conftest.$ac_ext |
| 11907 | cat >>conftest.$ac_ext <<_ACEOF |
| 11908 | /* end confdefs.h. */ |
| 11909 | $ac_includes_default |
| 11910 | #include <$ac_header> |
| 11911 | _ACEOF |
| 11912 | rm -f conftest.$ac_objext |
| 11913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11914 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11915 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11917 | rm -f conftest.er1 |
| 11918 | cat conftest.err >&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11920 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11923 | (eval $ac_try) 2>&5 |
| 11924 | ac_status=$? |
| 11925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11926 | (exit $ac_status); }; } && |
| 11927 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11929 | (eval $ac_try) 2>&5 |
| 11930 | ac_status=$? |
| 11931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11932 | (exit $ac_status); }; }; then |
| 11933 | ac_header_compiler=yes |
| 11934 | else |
| 11935 | echo "$as_me: failed program was:" >&5 |
| 11936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11937 | |
| 11938 | ac_header_compiler=no |
| 11939 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11941 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11942 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11943 | |
| 11944 | # Is the header present? |
| 11945 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11946 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11947 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11948 | /* confdefs.h. */ |
| 11949 | _ACEOF |
| 11950 | cat confdefs.h >>conftest.$ac_ext |
| 11951 | cat >>conftest.$ac_ext <<_ACEOF |
| 11952 | /* end confdefs.h. */ |
| 11953 | #include <$ac_header> |
| 11954 | _ACEOF |
| 11955 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11956 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11957 | ac_status=$? |
| 11958 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11959 | rm -f conftest.er1 |
| 11960 | cat conftest.err >&5 |
| 11961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11962 | (exit $ac_status); } >/dev/null; then |
| 11963 | if test -s conftest.err; then |
| 11964 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11965 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11966 | else |
| 11967 | ac_cpp_err= |
| 11968 | fi |
| 11969 | else |
| 11970 | ac_cpp_err=yes |
| 11971 | fi |
| 11972 | if test -z "$ac_cpp_err"; then |
| 11973 | ac_header_preproc=yes |
| 11974 | else |
| 11975 | echo "$as_me: failed program was:" >&5 |
| 11976 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11977 | |
| 11978 | ac_header_preproc=no |
| 11979 | fi |
| 11980 | rm -f conftest.err conftest.$ac_ext |
| 11981 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11982 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11983 | |
| 11984 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11985 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11986 | yes:no: ) |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11987 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11988 | 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] | 11989 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11990 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11991 | ac_header_preproc=yes |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11992 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11993 | no:yes:* ) |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 11994 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11995 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 11996 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11997 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11998 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11999 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12000 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12001 | 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] | 12002 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12003 | 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] | 12004 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12005 | 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] | 12006 | ( |
| 12007 | cat <<\_ASBOX |
| 12008 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12009 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12010 | ## ------------------------------------ ## |
| 12011 | _ASBOX |
| 12012 | ) | |
| 12013 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12014 | ;; |
| 12015 | esac |
| 12016 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 12018 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 12019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12020 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12021 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12022 | fi |
| 12023 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 12024 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 12025 | |
| 12026 | fi |
| 12027 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12028 | cat >>confdefs.h <<_ACEOF |
| 12029 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12030 | _ACEOF |
| 12031 | |
| 12032 | echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5 |
| 12033 | echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6 |
| 12034 | if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then |
| 12035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12036 | else |
| 12037 | ac_check_lib_save_LIBS=$LIBS |
| 12038 | LIBS="-lcapi20 $LIBS" |
| 12039 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12040 | /* confdefs.h. */ |
| 12041 | _ACEOF |
| 12042 | cat confdefs.h >>conftest.$ac_ext |
| 12043 | cat >>conftest.$ac_ext <<_ACEOF |
| 12044 | /* end confdefs.h. */ |
| 12045 | |
| 12046 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12047 | #ifdef __cplusplus |
| 12048 | extern "C" |
| 12049 | #endif |
| 12050 | /* We use char because int might match the return type of a gcc2 |
| 12051 | builtin and then its argument prototype would still apply. */ |
| 12052 | char capi20_register (); |
| 12053 | int |
| 12054 | main () |
| 12055 | { |
| 12056 | capi20_register (); |
| 12057 | ; |
| 12058 | return 0; |
| 12059 | } |
| 12060 | _ACEOF |
| 12061 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12063 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12064 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12065 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12066 | rm -f conftest.er1 |
| 12067 | cat conftest.err >&5 |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12069 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12072 | (eval $ac_try) 2>&5 |
| 12073 | ac_status=$? |
| 12074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12075 | (exit $ac_status); }; } && |
| 12076 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12078 | (eval $ac_try) 2>&5 |
| 12079 | ac_status=$? |
| 12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12081 | (exit $ac_status); }; }; then |
| 12082 | ac_cv_lib_capi20_capi20_register=yes |
| 12083 | else |
| 12084 | echo "$as_me: failed program was:" >&5 |
| 12085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12086 | |
| 12087 | ac_cv_lib_capi20_capi20_register=no |
| 12088 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12089 | rm -f conftest.err conftest.$ac_objext \ |
| 12090 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12091 | LIBS=$ac_check_lib_save_LIBS |
| 12092 | fi |
| 12093 | echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5 |
| 12094 | echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6 |
| 12095 | if test $ac_cv_lib_capi20_capi20_register = yes; then |
| 12096 | |
| 12097 | |
| 12098 | cat >>confdefs.h <<\_ACEOF |
| 12099 | #define HAVE_CAPI4LINUX 1 |
| 12100 | _ACEOF |
| 12101 | |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 12102 | |
| 12103 | fi |
| 12104 | |
| 12105 | |
| 12106 | fi |
| 12107 | |
| 12108 | done |
| 12109 | |
| 12110 | |
| 12111 | fi |
| 12112 | |
| 12113 | done |
| 12114 | |
| 12115 | |
| 12116 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12117 | echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12118 | echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6 |
| 12119 | if test "${ac_cv_mmap64_works+set}" = set; then |
| 12120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12121 | else |
| 12122 | if test "$cross_compiling" = yes; then |
| 12123 | ac_cv_mmap64_works="no" |
| 12124 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12125 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12126 | /* confdefs.h. */ |
| 12127 | _ACEOF |
| 12128 | cat confdefs.h >>conftest.$ac_ext |
| 12129 | cat >>conftest.$ac_ext <<_ACEOF |
| 12130 | /* end confdefs.h. */ |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12131 | |
| 12132 | #define _FILE_OFFSET_BITS 64 |
| 12133 | #include <stdio.h> |
| 12134 | #include <unistd.h> |
| 12135 | #include <fcntl.h> |
| 12136 | #include <sys/mman.h> |
| 12137 | #include <errno.h> |
| 12138 | |
| 12139 | int main(int argc,char **argv) { |
| 12140 | int fd = open("conftest.map",O_CREAT|O_RDWR,0600); |
| 12141 | if (fd == -1) exit(1); |
| 12142 | |
| 12143 | unlink("conftest.map"); |
| 12144 | |
| 12145 | write(fd,"test",4); |
| 12146 | |
| 12147 | if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) && |
| 12148 | (errno == EINVAL) |
| 12149 | ) { |
| 12150 | exit(1); |
| 12151 | } |
| 12152 | close(fd); |
| 12153 | fprintf(stderr,"success!\n"); |
| 12154 | exit(0); |
| 12155 | } |
| 12156 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12157 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12158 | _ACEOF |
| 12159 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12161 | (eval $ac_link) 2>&5 |
| 12162 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12164 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12166 | (eval $ac_try) 2>&5 |
| 12167 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12169 | (exit $ac_status); }; }; then |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12170 | ac_cv_mmap64_works="yes" |
| 12171 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12172 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12173 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12175 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12176 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12177 | ac_cv_mmap64_works="no" |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12178 | fi |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12179 | 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] | 12180 | fi |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12181 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12182 | echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12183 | echo "${ECHO_T}$ac_cv_mmap64_works" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12184 | |
| 12185 | if test "$ac_cv_mmap64_works" = "yes" |
| 12186 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12187 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12188 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12189 | #define _FILE_OFFSET_BITS 64 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12190 | _ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 12191 | |
| 12192 | fi |
| 12193 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12194 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12195 | EXTRACFLAGS="" |
| 12196 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12197 | if test "x${GCC}" = "xyes" |
| 12198 | then |
Hans Leidekker | d17b232 | 2004-01-06 21:37:44 +0000 | [diff] [blame] | 12199 | EXTRACFLAGS="-Wall -pipe" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12200 | |
| 12201 | echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12202 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6 |
| 12203 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
| 12204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12205 | else |
| 12206 | if test "$cross_compiling" = yes; then |
| 12207 | ac_cv_c_gcc_strength_bug="yes" |
| 12208 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12209 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12210 | /* confdefs.h. */ |
| 12211 | _ACEOF |
| 12212 | cat confdefs.h >>conftest.$ac_ext |
| 12213 | cat >>conftest.$ac_ext <<_ACEOF |
| 12214 | /* end confdefs.h. */ |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12215 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 12216 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12217 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 12218 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12219 | unsigned int B = 3; |
| 12220 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 12221 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 12222 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 12223 | L[i] = 4; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12224 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 12225 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12226 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12227 | _ACEOF |
| 12228 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12230 | (eval $ac_link) 2>&5 |
| 12231 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12233 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12235 | (eval $ac_try) 2>&5 |
| 12236 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12238 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12239 | ac_cv_c_gcc_strength_bug="no" |
| 12240 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12241 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12242 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12244 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12245 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12246 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12247 | fi |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 12248 | 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] | 12249 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12250 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12251 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12252 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12253 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 12254 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12255 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12256 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12257 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 12258 | echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5 |
| 12259 | echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6 |
| 12260 | if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then |
| 12261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12262 | else |
| 12263 | ac_wine_try_cflags_saved=$CFLAGS |
| 12264 | CFLAGS="$CFLAGS -fshort-wchar" |
| 12265 | cat >conftest.$ac_ext <<_ACEOF |
| 12266 | /* confdefs.h. */ |
| 12267 | _ACEOF |
| 12268 | cat confdefs.h >>conftest.$ac_ext |
| 12269 | cat >>conftest.$ac_ext <<_ACEOF |
| 12270 | /* end confdefs.h. */ |
| 12271 | |
| 12272 | int |
| 12273 | main () |
| 12274 | { |
| 12275 | |
| 12276 | ; |
| 12277 | return 0; |
| 12278 | } |
| 12279 | _ACEOF |
| 12280 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12282 | (eval $ac_link) 2>conftest.er1 |
| 12283 | ac_status=$? |
| 12284 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12285 | rm -f conftest.er1 |
| 12286 | cat conftest.err >&5 |
| 12287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12288 | (exit $ac_status); } && |
| 12289 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12291 | (eval $ac_try) 2>&5 |
| 12292 | ac_status=$? |
| 12293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12294 | (exit $ac_status); }; } && |
| 12295 | { ac_try='test -s conftest$ac_exeext' |
| 12296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12297 | (eval $ac_try) 2>&5 |
| 12298 | ac_status=$? |
| 12299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12300 | (exit $ac_status); }; }; then |
| 12301 | ac_cv_c_gcc_fshort_wchar="yes" |
| 12302 | else |
| 12303 | echo "$as_me: failed program was:" >&5 |
| 12304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12305 | |
| 12306 | ac_cv_c_gcc_fshort_wchar="no" |
| 12307 | fi |
| 12308 | rm -f conftest.err conftest.$ac_objext \ |
| 12309 | conftest$ac_exeext conftest.$ac_ext |
| 12310 | CFLAGS=$ac_wine_try_cflags_saved |
| 12311 | fi |
| 12312 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5 |
| 12313 | echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6 |
| 12314 | if test "$ac_cv_c_gcc_fshort_wchar" = "yes" |
| 12315 | then |
| 12316 | |
| 12317 | cat >>confdefs.h <<\_ACEOF |
| 12318 | #define CC_FLAG_SHORT_WCHAR "-fshort-wchar" |
| 12319 | _ACEOF |
| 12320 | |
| 12321 | fi |
| 12322 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12323 | 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] | 12324 | echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6 |
| 12325 | if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then |
| 12326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12327 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12328 | ac_wine_try_cflags_saved=$CFLAGS |
| 12329 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 12330 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12331 | /* confdefs.h. */ |
| 12332 | _ACEOF |
| 12333 | cat confdefs.h >>conftest.$ac_ext |
| 12334 | cat >>conftest.$ac_ext <<_ACEOF |
| 12335 | /* end confdefs.h. */ |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12336 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12337 | int |
| 12338 | main () |
| 12339 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12340 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12341 | ; |
| 12342 | return 0; |
| 12343 | } |
| 12344 | _ACEOF |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12345 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12347 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12348 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12350 | rm -f conftest.er1 |
| 12351 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12353 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12356 | (eval $ac_try) 2>&5 |
| 12357 | ac_status=$? |
| 12358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12359 | (exit $ac_status); }; } && |
| 12360 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12362 | (eval $ac_try) 2>&5 |
| 12363 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12365 | (exit $ac_status); }; }; then |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12366 | ac_cv_c_gcc_stack_boundary="yes" |
| 12367 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12368 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12370 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12371 | ac_cv_c_gcc_stack_boundary="no" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12372 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12373 | rm -f conftest.err conftest.$ac_objext \ |
| 12374 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12375 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12376 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12377 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12378 | echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12379 | if test "$ac_cv_c_gcc_stack_boundary" = "yes" |
| 12380 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12381 | EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 12382 | fi |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12383 | |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12384 | echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5 |
| 12385 | echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6 |
| 12386 | if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then |
| 12387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12388 | else |
| 12389 | ac_wine_try_cflags_saved=$CFLAGS |
| 12390 | CFLAGS="$CFLAGS -fno-strict-aliasing" |
| 12391 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12392 | /* confdefs.h. */ |
| 12393 | _ACEOF |
| 12394 | cat confdefs.h >>conftest.$ac_ext |
| 12395 | cat >>conftest.$ac_ext <<_ACEOF |
| 12396 | /* end confdefs.h. */ |
| 12397 | |
| 12398 | int |
| 12399 | main () |
| 12400 | { |
| 12401 | |
| 12402 | ; |
| 12403 | return 0; |
| 12404 | } |
| 12405 | _ACEOF |
| 12406 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12408 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12409 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12410 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12411 | rm -f conftest.er1 |
| 12412 | cat conftest.err >&5 |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12414 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12415 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12417 | (eval $ac_try) 2>&5 |
| 12418 | ac_status=$? |
| 12419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12420 | (exit $ac_status); }; } && |
| 12421 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12423 | (eval $ac_try) 2>&5 |
| 12424 | ac_status=$? |
| 12425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12426 | (exit $ac_status); }; }; then |
| 12427 | ac_cv_c_gcc_no_strict_aliasing="yes" |
| 12428 | else |
| 12429 | echo "$as_me: failed program was:" >&5 |
| 12430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12431 | |
| 12432 | ac_cv_c_gcc_no_strict_aliasing="no" |
| 12433 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12434 | rm -f conftest.err conftest.$ac_objext \ |
| 12435 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | efca0f6 | 2003-07-24 00:09:51 +0000 | [diff] [blame] | 12436 | CFLAGS=$ac_wine_try_cflags_saved |
| 12437 | fi |
| 12438 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5 |
| 12439 | echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6 |
| 12440 | if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes" |
| 12441 | then |
| 12442 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" |
| 12443 | fi |
| 12444 | |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12445 | echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5 |
| 12446 | echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6 |
| 12447 | if test "${ac_cv_c_gcc_gstabs+set}" = set; then |
| 12448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12449 | else |
| 12450 | ac_wine_try_cflags_saved=$CFLAGS |
| 12451 | CFLAGS="$CFLAGS -gstabs+" |
| 12452 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12453 | /* confdefs.h. */ |
| 12454 | _ACEOF |
| 12455 | cat confdefs.h >>conftest.$ac_ext |
| 12456 | cat >>conftest.$ac_ext <<_ACEOF |
| 12457 | /* end confdefs.h. */ |
| 12458 | |
| 12459 | int |
| 12460 | main () |
| 12461 | { |
| 12462 | |
| 12463 | ; |
| 12464 | return 0; |
| 12465 | } |
| 12466 | _ACEOF |
| 12467 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12469 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12470 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12472 | rm -f conftest.er1 |
| 12473 | cat conftest.err >&5 |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12475 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12476 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12478 | (eval $ac_try) 2>&5 |
| 12479 | ac_status=$? |
| 12480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12481 | (exit $ac_status); }; } && |
| 12482 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12484 | (eval $ac_try) 2>&5 |
| 12485 | ac_status=$? |
| 12486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12487 | (exit $ac_status); }; }; then |
| 12488 | ac_cv_c_gcc_gstabs="yes" |
| 12489 | else |
| 12490 | echo "$as_me: failed program was:" >&5 |
| 12491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12492 | |
| 12493 | ac_cv_c_gcc_gstabs="no" |
| 12494 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12495 | rm -f conftest.err conftest.$ac_objext \ |
| 12496 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12497 | CFLAGS=$ac_wine_try_cflags_saved |
| 12498 | fi |
| 12499 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5 |
| 12500 | echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6 |
| 12501 | if test "$ac_cv_c_gcc_gstabs" = "yes" |
| 12502 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12503 | EXTRACFLAGS="$EXTRACFLAGS -gstabs+" |
Alexandre Julliard | 14bd120 | 2003-01-09 00:42:26 +0000 | [diff] [blame] | 12504 | fi |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12505 | |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12506 | saved_CFLAGS="$CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12507 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
| 12508 | echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5 |
| 12509 | echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6 |
| 12510 | if test "${ac_cv_c_string_h_warnings+set}" = set; then |
| 12511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12512 | else |
| 12513 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12514 | /* confdefs.h. */ |
| 12515 | _ACEOF |
| 12516 | cat confdefs.h >>conftest.$ac_ext |
| 12517 | cat >>conftest.$ac_ext <<_ACEOF |
| 12518 | /* end confdefs.h. */ |
| 12519 | #include <string.h> |
| 12520 | int |
| 12521 | main () |
| 12522 | { |
| 12523 | |
| 12524 | ; |
| 12525 | return 0; |
| 12526 | } |
| 12527 | _ACEOF |
| 12528 | rm -f conftest.$ac_objext |
| 12529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12530 | (eval $ac_compile) 2>conftest.er1 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12531 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12533 | rm -f conftest.er1 |
| 12534 | cat conftest.err >&5 |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12536 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 12543 | { ac_try='test -s conftest.$ac_objext' |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12545 | (eval $ac_try) 2>&5 |
| 12546 | ac_status=$? |
| 12547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12548 | (exit $ac_status); }; }; then |
| 12549 | ac_cv_c_string_h_warnings=no |
| 12550 | else |
| 12551 | echo "$as_me: failed program was:" >&5 |
| 12552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12553 | |
| 12554 | ac_cv_c_string_h_warnings=yes |
| 12555 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12557 | fi |
| 12558 | echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5 |
| 12559 | echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6 |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 12560 | CFLAGS="$saved_CFLAGS" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12561 | if test "$ac_cv_c_string_h_warnings" = "no" |
| 12562 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 12563 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
Mike McCormack | c509bc4 | 2003-02-25 04:01:58 +0000 | [diff] [blame] | 12564 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 12565 | fi |
| 12566 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12567 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12568 | echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5 |
| 12569 | echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6 |
| 12570 | if test "${ac_cv_asm_func_def+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12572 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12573 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12574 | /* confdefs.h. */ |
| 12575 | _ACEOF |
| 12576 | cat confdefs.h >>conftest.$ac_ext |
| 12577 | cat >>conftest.$ac_ext <<_ACEOF |
| 12578 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 12579 | 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] | 12580 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12581 | int |
| 12582 | main () |
| 12583 | { |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12584 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12585 | ; |
| 12586 | return 0; |
| 12587 | } |
| 12588 | _ACEOF |
| 12589 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12591 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12592 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12594 | rm -f conftest.er1 |
| 12595 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12597 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12598 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 12604 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12606 | (eval $ac_try) 2>&5 |
| 12607 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12609 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12610 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 12611 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12612 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12614 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12615 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12616 | /* confdefs.h. */ |
| 12617 | _ACEOF |
| 12618 | cat confdefs.h >>conftest.$ac_ext |
| 12619 | cat >>conftest.$ac_ext <<_ACEOF |
| 12620 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 12621 | 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] | 12622 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12623 | int |
| 12624 | main () |
| 12625 | { |
| 12626 | |
| 12627 | ; |
| 12628 | return 0; |
| 12629 | } |
| 12630 | _ACEOF |
| 12631 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12633 | (eval $ac_link) 2>conftest.er1 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12634 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12635 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12636 | rm -f conftest.er1 |
| 12637 | cat conftest.err >&5 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12639 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12640 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12642 | (eval $ac_try) 2>&5 |
| 12643 | ac_status=$? |
| 12644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12645 | (exit $ac_status); }; } && |
| 12646 | { ac_try='test -s conftest$ac_exeext' |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12648 | (eval $ac_try) 2>&5 |
| 12649 | ac_status=$? |
| 12650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12651 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12652 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12653 | else |
| 12654 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12656 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12657 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12658 | /* confdefs.h. */ |
| 12659 | _ACEOF |
| 12660 | cat confdefs.h >>conftest.$ac_ext |
| 12661 | cat >>conftest.$ac_ext <<_ACEOF |
| 12662 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 12663 | 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] | 12664 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12665 | int |
| 12666 | main () |
| 12667 | { |
| 12668 | |
| 12669 | ; |
| 12670 | return 0; |
| 12671 | } |
| 12672 | _ACEOF |
| 12673 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12675 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12676 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12677 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12678 | rm -f conftest.er1 |
| 12679 | cat conftest.err >&5 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12681 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12684 | (eval $ac_try) 2>&5 |
| 12685 | ac_status=$? |
| 12686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12687 | (exit $ac_status); }; } && |
| 12688 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12690 | (eval $ac_try) 2>&5 |
| 12691 | ac_status=$? |
| 12692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12693 | (exit $ac_status); }; }; then |
| 12694 | ac_cv_asm_func_def=".type 2" |
| 12695 | else |
| 12696 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12698 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12699 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12700 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12701 | rm -f conftest.err conftest.$ac_objext \ |
| 12702 | conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12703 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12704 | rm -f conftest.err conftest.$ac_objext \ |
| 12705 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12706 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12707 | rm -f conftest.err conftest.$ac_objext \ |
| 12708 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12709 | fi |
| 12710 | echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5 |
| 12711 | echo "${ECHO_T}$ac_cv_asm_func_def" >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12712 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12713 | |
| 12714 | |
| 12715 | case "$ac_cv_asm_func_def" in |
| 12716 | ".def") |
| 12717 | cat >>confdefs.h <<\_ACEOF |
| 12718 | #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] | 12719 | _ACEOF |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12720 | ;; |
| 12721 | ".type @function") |
| 12722 | cat >>confdefs.h <<\_ACEOF |
| 12723 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function" |
| 12724 | _ACEOF |
| 12725 | ;; |
| 12726 | ".type 2") |
| 12727 | cat >>confdefs.h <<\_ACEOF |
| 12728 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2" |
| 12729 | _ACEOF |
| 12730 | ;; |
| 12731 | *) |
| 12732 | cat >>confdefs.h <<\_ACEOF |
| 12733 | #define __ASM_FUNC(name) "" |
| 12734 | _ACEOF |
| 12735 | ;; |
| 12736 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 12737 | |
| 12738 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12739 | 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] | 12740 | echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6 |
| 12741 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
| 12742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12743 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12744 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12745 | /* confdefs.h. */ |
| 12746 | _ACEOF |
| 12747 | cat confdefs.h >>conftest.$ac_ext |
| 12748 | cat >>conftest.$ac_ext <<_ACEOF |
| 12749 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 12750 | 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] | 12751 | extern int ac_test; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12752 | int |
| 12753 | main () |
| 12754 | { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12755 | if (ac_test) return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12756 | ; |
| 12757 | return 0; |
| 12758 | } |
| 12759 | _ACEOF |
| 12760 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12762 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12763 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12764 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12765 | rm -f conftest.er1 |
| 12766 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12768 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12771 | (eval $ac_try) 2>&5 |
| 12772 | ac_status=$? |
| 12773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12774 | (exit $ac_status); }; } && |
| 12775 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12777 | (eval $ac_try) 2>&5 |
| 12778 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12780 | (exit $ac_status); }; }; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12781 | ac_cv_c_extern_prefix="yes" |
| 12782 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12783 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12785 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12786 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12787 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12788 | rm -f conftest.err conftest.$ac_objext \ |
| 12789 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12790 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12791 | echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12792 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12793 | |
| 12794 | |
| 12795 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12796 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 12797 | then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12798 | cat >>confdefs.h <<\_ACEOF |
| 12799 | #define __ASM_NAME(name) "_" name |
| 12800 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12801 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12802 | else |
| 12803 | cat >>confdefs.h <<\_ACEOF |
| 12804 | #define __ASM_NAME(name) name |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12805 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 12806 | |
| 12807 | fi |
| 12808 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12809 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 12810 | echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5 |
| 12811 | 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] | 12812 | if test "${ac_cv_c_asm_string+set}" = set; then |
| 12813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 12814 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 12815 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12816 | /* confdefs.h. */ |
| 12817 | _ACEOF |
| 12818 | cat confdefs.h >>conftest.$ac_ext |
| 12819 | cat >>conftest.$ac_ext <<_ACEOF |
| 12820 | /* end confdefs.h. */ |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 12821 | 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] | 12822 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12823 | int |
| 12824 | main () |
| 12825 | { |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 12826 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12827 | ; |
| 12828 | return 0; |
| 12829 | } |
| 12830 | _ACEOF |
| 12831 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12833 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12834 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12836 | rm -f conftest.er1 |
| 12837 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12839 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12842 | (eval $ac_try) 2>&5 |
| 12843 | ac_status=$? |
| 12844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12845 | (exit $ac_status); }; } && |
| 12846 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12848 | (eval $ac_try) 2>&5 |
| 12849 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12851 | (exit $ac_status); }; }; then |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 12852 | ac_cv_c_asm_string=".string" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 12853 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12854 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12856 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 12857 | cat >conftest.$ac_ext <<_ACEOF |
| 12858 | /* confdefs.h. */ |
| 12859 | _ACEOF |
| 12860 | cat confdefs.h >>conftest.$ac_ext |
| 12861 | cat >>conftest.$ac_ext <<_ACEOF |
| 12862 | /* end confdefs.h. */ |
| 12863 | void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); } |
| 12864 | |
| 12865 | int |
| 12866 | main () |
| 12867 | { |
| 12868 | |
| 12869 | ; |
| 12870 | return 0; |
| 12871 | } |
| 12872 | _ACEOF |
| 12873 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12875 | (eval $ac_link) 2>conftest.er1 |
| 12876 | ac_status=$? |
| 12877 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12878 | rm -f conftest.er1 |
| 12879 | cat conftest.err >&5 |
| 12880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12881 | (exit $ac_status); } && |
| 12882 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12884 | (eval $ac_try) 2>&5 |
| 12885 | ac_status=$? |
| 12886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12887 | (exit $ac_status); }; } && |
| 12888 | { ac_try='test -s conftest$ac_exeext' |
| 12889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12890 | (eval $ac_try) 2>&5 |
| 12891 | ac_status=$? |
| 12892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12893 | (exit $ac_status); }; }; then |
| 12894 | ac_cv_c_asm_string=".asciz" |
| 12895 | else |
| 12896 | echo "$as_me: failed program was:" >&5 |
| 12897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12898 | |
| 12899 | cat >conftest.$ac_ext <<_ACEOF |
| 12900 | /* confdefs.h. */ |
| 12901 | _ACEOF |
| 12902 | cat confdefs.h >>conftest.$ac_ext |
| 12903 | cat >>conftest.$ac_ext <<_ACEOF |
| 12904 | /* end confdefs.h. */ |
| 12905 | void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); } |
| 12906 | |
| 12907 | int |
| 12908 | main () |
| 12909 | { |
| 12910 | |
| 12911 | ; |
| 12912 | return 0; |
| 12913 | } |
| 12914 | _ACEOF |
| 12915 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12917 | (eval $ac_link) 2>conftest.er1 |
| 12918 | ac_status=$? |
| 12919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12920 | rm -f conftest.er1 |
| 12921 | cat conftest.err >&5 |
| 12922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12923 | (exit $ac_status); } && |
| 12924 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12926 | (eval $ac_try) 2>&5 |
| 12927 | ac_status=$? |
| 12928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12929 | (exit $ac_status); }; } && |
| 12930 | { ac_try='test -s conftest$ac_exeext' |
| 12931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12932 | (eval $ac_try) 2>&5 |
| 12933 | ac_status=$? |
| 12934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12935 | (exit $ac_status); }; }; then |
| 12936 | ac_cv_c_asm_string=".ascii" |
| 12937 | else |
| 12938 | echo "$as_me: failed program was:" >&5 |
| 12939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12940 | |
| 12941 | { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5 |
| 12942 | echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;} |
| 12943 | { (exit 1); exit 1; }; } |
| 12944 | fi |
| 12945 | rm -f conftest.err conftest.$ac_objext \ |
| 12946 | conftest$ac_exeext conftest.$ac_ext |
| 12947 | fi |
| 12948 | rm -f conftest.err conftest.$ac_objext \ |
| 12949 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 12950 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12951 | rm -f conftest.err conftest.$ac_objext \ |
| 12952 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 12953 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12954 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12955 | echo "${ECHO_T}$ac_cv_c_asm_string" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12956 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 12957 | |
| 12958 | cat >>confdefs.h <<_ACEOF |
| 12959 | #define __ASM_STRING "$ac_cv_c_asm_string" |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 12960 | _ACEOF |
| 12961 | |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 12962 | |
| 12963 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 12964 | echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5 |
| 12965 | 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] | 12966 | if test "${ac_cv_c_asm_short+set}" = set; then |
| 12967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12968 | else |
| 12969 | cat >conftest.$ac_ext <<_ACEOF |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 12970 | /* confdefs.h. */ |
| 12971 | _ACEOF |
| 12972 | cat confdefs.h >>conftest.$ac_ext |
| 12973 | cat >>conftest.$ac_ext <<_ACEOF |
| 12974 | /* end confdefs.h. */ |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 12975 | 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] | 12976 | |
| 12977 | int |
| 12978 | main () |
| 12979 | { |
| 12980 | |
| 12981 | ; |
| 12982 | return 0; |
| 12983 | } |
| 12984 | _ACEOF |
| 12985 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12987 | (eval $ac_link) 2>conftest.er1 |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 12988 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12990 | rm -f conftest.er1 |
| 12991 | cat conftest.err >&5 |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 12992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12993 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 12994 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12996 | (eval $ac_try) 2>&5 |
| 12997 | ac_status=$? |
| 12998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12999 | (exit $ac_status); }; } && |
| 13000 | { ac_try='test -s conftest$ac_exeext' |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13002 | (eval $ac_try) 2>&5 |
| 13003 | ac_status=$? |
| 13004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13005 | (exit $ac_status); }; }; then |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13006 | ac_cv_c_asm_short=".short" |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13007 | else |
| 13008 | echo "$as_me: failed program was:" >&5 |
| 13009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13010 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13011 | cat >conftest.$ac_ext <<_ACEOF |
| 13012 | /* confdefs.h. */ |
| 13013 | _ACEOF |
| 13014 | cat confdefs.h >>conftest.$ac_ext |
| 13015 | cat >>conftest.$ac_ext <<_ACEOF |
| 13016 | /* end confdefs.h. */ |
| 13017 | void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); } |
| 13018 | |
| 13019 | int |
| 13020 | main () |
| 13021 | { |
| 13022 | |
| 13023 | ; |
| 13024 | return 0; |
| 13025 | } |
| 13026 | _ACEOF |
| 13027 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13029 | (eval $ac_link) 2>conftest.er1 |
| 13030 | ac_status=$? |
| 13031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13032 | rm -f conftest.er1 |
| 13033 | cat conftest.err >&5 |
| 13034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13035 | (exit $ac_status); } && |
| 13036 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13038 | (eval $ac_try) 2>&5 |
| 13039 | ac_status=$? |
| 13040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13041 | (exit $ac_status); }; } && |
| 13042 | { ac_try='test -s conftest$ac_exeext' |
| 13043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13044 | (eval $ac_try) 2>&5 |
| 13045 | ac_status=$? |
| 13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13047 | (exit $ac_status); }; }; then |
| 13048 | ac_cv_c_asm_short=".half" |
| 13049 | else |
| 13050 | echo "$as_me: failed program was:" >&5 |
| 13051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13052 | |
| 13053 | { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5 |
| 13054 | echo "$as_me: error: could not discover how to specify word values with assembler." >&2;} |
| 13055 | { (exit 1); exit 1; }; } |
| 13056 | fi |
| 13057 | rm -f conftest.err conftest.$ac_objext \ |
| 13058 | conftest$ac_exeext conftest.$ac_ext |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13059 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13060 | rm -f conftest.err conftest.$ac_objext \ |
| 13061 | conftest$ac_exeext conftest.$ac_ext |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13062 | fi |
| 13063 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5 |
| 13064 | echo "${ECHO_T}$ac_cv_c_asm_short" >&6 |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13065 | |
Wim Lewis | 8cbb94c | 2004-01-07 00:46:10 +0000 | [diff] [blame] | 13066 | |
| 13067 | cat >>confdefs.h <<_ACEOF |
| 13068 | #define __ASM_SHORT "$ac_cv_c_asm_short" |
Christian Costa | f814cf8 | 2003-03-23 00:18:26 +0000 | [diff] [blame] | 13069 | _ACEOF |
| 13070 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 13071 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13072 | |
Pierre d'Herbemont | 68467db | 2004-06-18 19:36:26 +0000 | [diff] [blame] | 13073 | echo "$as_me:$LINENO: checking for .size in assembler" >&5 |
| 13074 | echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6 |
| 13075 | if test "${ac_cv_c_asm_size+set}" = set; then |
| 13076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13077 | else |
| 13078 | cat >conftest.$ac_ext <<_ACEOF |
| 13079 | /* confdefs.h. */ |
| 13080 | _ACEOF |
| 13081 | cat confdefs.h >>conftest.$ac_ext |
| 13082 | cat >>conftest.$ac_ext <<_ACEOF |
| 13083 | /* end confdefs.h. */ |
| 13084 | void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); } |
| 13085 | |
| 13086 | int |
| 13087 | main () |
| 13088 | { |
| 13089 | |
| 13090 | ; |
| 13091 | return 0; |
| 13092 | } |
| 13093 | _ACEOF |
| 13094 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13096 | (eval $ac_link) 2>conftest.er1 |
| 13097 | ac_status=$? |
| 13098 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13099 | rm -f conftest.er1 |
| 13100 | cat conftest.err >&5 |
| 13101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13102 | (exit $ac_status); } && |
| 13103 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13105 | (eval $ac_try) 2>&5 |
| 13106 | ac_status=$? |
| 13107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13108 | (exit $ac_status); }; } && |
| 13109 | { ac_try='test -s conftest$ac_exeext' |
| 13110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13111 | (eval $ac_try) 2>&5 |
| 13112 | ac_status=$? |
| 13113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13114 | (exit $ac_status); }; }; then |
| 13115 | ac_cv_c_asm_size="yes" |
| 13116 | else |
| 13117 | echo "$as_me: failed program was:" >&5 |
| 13118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13119 | |
| 13120 | ac_cv_c_asm_size="no" |
| 13121 | fi |
| 13122 | rm -f conftest.err conftest.$ac_objext \ |
| 13123 | conftest$ac_exeext conftest.$ac_ext |
| 13124 | fi |
| 13125 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5 |
| 13126 | echo "${ECHO_T}$ac_cv_c_asm_size" >&6 |
| 13127 | |
| 13128 | if test "$ac_cv_c_asm_size" = "yes" |
| 13129 | then |
| 13130 | |
| 13131 | cat >>confdefs.h <<\_ACEOF |
| 13132 | #define HAVE_ASM_DOT_SIZE 1 |
| 13133 | _ACEOF |
| 13134 | |
| 13135 | fi |
| 13136 | |
| 13137 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13138 | DLLEXT="" |
| 13139 | |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 13140 | DLLFLAGS="-D_REENTRANT" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13141 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13142 | DLLIBS="" |
| 13143 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13144 | LDSHARED="" |
| 13145 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13146 | LDDLLFLAGS="" |
Alexandre Julliard | 6ac34ac | 2003-10-11 01:05:18 +0000 | [diff] [blame] | 13147 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 13148 | LIBEXT="so" |
| 13149 | |
| 13150 | IMPLIBEXT="def" |
| 13151 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13152 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13153 | case $host_os in |
| 13154 | cygwin*|mingw32*) |
| 13155 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 13156 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 13157 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 13158 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13160 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 13161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13162 | else |
| 13163 | if test -n "$DLLTOOL"; then |
| 13164 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 13165 | else |
| 13166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13167 | for as_dir in $PATH |
| 13168 | do |
| 13169 | IFS=$as_save_IFS |
| 13170 | test -z "$as_dir" && as_dir=. |
| 13171 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13172 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13173 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 13174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13175 | break 2 |
| 13176 | fi |
| 13177 | done |
| 13178 | done |
| 13179 | |
| 13180 | fi |
| 13181 | fi |
| 13182 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 13183 | if test -n "$DLLTOOL"; then |
| 13184 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 13185 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 13186 | else |
| 13187 | echo "$as_me:$LINENO: result: no" >&5 |
| 13188 | echo "${ECHO_T}no" >&6 |
| 13189 | fi |
| 13190 | |
| 13191 | fi |
| 13192 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 13193 | ac_ct_DLLTOOL=$DLLTOOL |
| 13194 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 13195 | set dummy dlltool; ac_word=$2 |
| 13196 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13197 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13198 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 13199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13200 | else |
| 13201 | if test -n "$ac_ct_DLLTOOL"; then |
| 13202 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 13203 | else |
| 13204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13205 | for as_dir in $PATH |
| 13206 | do |
| 13207 | IFS=$as_save_IFS |
| 13208 | test -z "$as_dir" && as_dir=. |
| 13209 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13210 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13211 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 13212 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13213 | break 2 |
| 13214 | fi |
| 13215 | done |
| 13216 | done |
| 13217 | |
| 13218 | test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" |
| 13219 | fi |
| 13220 | fi |
| 13221 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 13222 | if test -n "$ac_ct_DLLTOOL"; then |
| 13223 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 13224 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 |
| 13225 | else |
| 13226 | echo "$as_me:$LINENO: result: no" >&5 |
| 13227 | echo "${ECHO_T}no" >&6 |
| 13228 | fi |
| 13229 | |
| 13230 | DLLTOOL=$ac_ct_DLLTOOL |
| 13231 | else |
| 13232 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 13233 | fi |
| 13234 | |
| 13235 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13236 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 13237 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 13238 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13240 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
| 13241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13242 | else |
| 13243 | if test -n "$DLLWRAP"; then |
| 13244 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 13245 | else |
| 13246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13247 | for as_dir in $PATH |
| 13248 | do |
| 13249 | IFS=$as_save_IFS |
| 13250 | test -z "$as_dir" && as_dir=. |
| 13251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13252 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13253 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 13254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13255 | break 2 |
| 13256 | fi |
| 13257 | done |
| 13258 | done |
| 13259 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 13260 | fi |
| 13261 | fi |
| 13262 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 13263 | if test -n "$DLLWRAP"; then |
| 13264 | echo "$as_me:$LINENO: result: $DLLWRAP" >&5 |
| 13265 | echo "${ECHO_T}$DLLWRAP" >&6 |
| 13266 | else |
| 13267 | echo "$as_me:$LINENO: result: no" >&5 |
| 13268 | echo "${ECHO_T}no" >&6 |
| 13269 | fi |
| 13270 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13271 | fi |
| 13272 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 13273 | ac_ct_DLLWRAP=$DLLWRAP |
| 13274 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 13275 | set dummy dllwrap; ac_word=$2 |
| 13276 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 13277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 13278 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then |
| 13279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13280 | else |
| 13281 | if test -n "$ac_ct_DLLWRAP"; then |
| 13282 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 13283 | else |
| 13284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13285 | for as_dir in $PATH |
| 13286 | do |
| 13287 | IFS=$as_save_IFS |
| 13288 | test -z "$as_dir" && as_dir=. |
| 13289 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13290 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 13291 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
| 13292 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13293 | break 2 |
| 13294 | fi |
| 13295 | done |
| 13296 | done |
| 13297 | |
| 13298 | test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false" |
| 13299 | fi |
| 13300 | fi |
| 13301 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 13302 | if test -n "$ac_ct_DLLWRAP"; then |
| 13303 | echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 |
| 13304 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6 |
| 13305 | else |
| 13306 | echo "$as_me:$LINENO: result: no" >&5 |
| 13307 | echo "${ECHO_T}no" >&6 |
| 13308 | fi |
| 13309 | |
| 13310 | DLLWRAP=$ac_ct_DLLWRAP |
| 13311 | else |
| 13312 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 13313 | fi |
| 13314 | |
| 13315 | if test "$DLLWRAP" = "false"; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13316 | LIBEXT="a" |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 13317 | else |
| 13318 | LIBEXT="dll" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13319 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 13320 | IMPLIBEXT="a" |
Alexandre Julliard | 56a4a76 | 2004-08-12 03:27:50 +0000 | [diff] [blame] | 13321 | WIN16_FILES="" |
| 13322 | WIN16_INSTALL="" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13323 | ;; |
| 13324 | *) |
| 13325 | |
| 13326 | for ac_header in dlfcn.h |
| 13327 | do |
| 13328 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13329 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13330 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13331 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13332 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13334 | fi |
| 13335 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13336 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13337 | else |
| 13338 | # Is the header compilable? |
| 13339 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13340 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13341 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13342 | /* confdefs.h. */ |
| 13343 | _ACEOF |
| 13344 | cat confdefs.h >>conftest.$ac_ext |
| 13345 | cat >>conftest.$ac_ext <<_ACEOF |
| 13346 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13347 | $ac_includes_default |
| 13348 | #include <$ac_header> |
| 13349 | _ACEOF |
| 13350 | rm -f conftest.$ac_objext |
| 13351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13352 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13353 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13354 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13355 | rm -f conftest.er1 |
| 13356 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13358 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13359 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13361 | (eval $ac_try) 2>&5 |
| 13362 | ac_status=$? |
| 13363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13364 | (exit $ac_status); }; } && |
| 13365 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13367 | (eval $ac_try) 2>&5 |
| 13368 | ac_status=$? |
| 13369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13370 | (exit $ac_status); }; }; then |
| 13371 | ac_header_compiler=yes |
| 13372 | else |
| 13373 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13375 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13376 | ac_header_compiler=no |
| 13377 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13379 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13380 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13381 | |
| 13382 | # Is the header present? |
| 13383 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 13384 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 13385 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13386 | /* confdefs.h. */ |
| 13387 | _ACEOF |
| 13388 | cat confdefs.h >>conftest.$ac_ext |
| 13389 | cat >>conftest.$ac_ext <<_ACEOF |
| 13390 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13391 | #include <$ac_header> |
| 13392 | _ACEOF |
| 13393 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13394 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13395 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13396 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13397 | rm -f conftest.er1 |
| 13398 | cat conftest.err >&5 |
| 13399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13400 | (exit $ac_status); } >/dev/null; then |
| 13401 | if test -s conftest.err; then |
| 13402 | ac_cpp_err=$ac_c_preproc_warn_flag |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13403 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13404 | else |
| 13405 | ac_cpp_err= |
| 13406 | fi |
| 13407 | else |
| 13408 | ac_cpp_err=yes |
| 13409 | fi |
| 13410 | if test -z "$ac_cpp_err"; then |
| 13411 | ac_header_preproc=yes |
| 13412 | else |
| 13413 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13415 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13416 | ac_header_preproc=no |
| 13417 | fi |
| 13418 | rm -f conftest.err conftest.$ac_ext |
| 13419 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13420 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13421 | |
| 13422 | # So? What about this header? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13423 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13424 | yes:no: ) |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13425 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13426 | 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] | 13427 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 13428 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 13429 | ac_header_preproc=yes |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13430 | ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13431 | no:yes:* ) |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13432 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13433 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13434 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13435 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13436 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 13437 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 13438 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 13439 | 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] | 13440 | { 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] | 13441 | 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] | 13442 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 13443 | 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] | 13444 | ( |
| 13445 | cat <<\_ASBOX |
| 13446 | ## ------------------------------------ ## |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13447 | ## Report this to wine-devel@winehq.org ## |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13448 | ## ------------------------------------ ## |
| 13449 | _ASBOX |
| 13450 | ) | |
| 13451 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13452 | ;; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13453 | esac |
| 13454 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13455 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13456 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13458 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13459 | eval "$as_ac_Header=\$ac_header_preproc" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13460 | fi |
| 13461 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13462 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13463 | |
| 13464 | fi |
| 13465 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13466 | cat >>confdefs.h <<_ACEOF |
| 13467 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13468 | _ACEOF |
| 13469 | |
| 13470 | for ac_func in dlopen |
| 13471 | do |
| 13472 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13473 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13474 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13475 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13477 | else |
| 13478 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13479 | /* confdefs.h. */ |
| 13480 | _ACEOF |
| 13481 | cat confdefs.h >>conftest.$ac_ext |
| 13482 | cat >>conftest.$ac_ext <<_ACEOF |
| 13483 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13484 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13485 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13486 | #define $ac_func innocuous_$ac_func |
| 13487 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13488 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13489 | which can conflict with char $ac_func (); below. |
| 13490 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13491 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13492 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13493 | #ifdef __STDC__ |
| 13494 | # include <limits.h> |
| 13495 | #else |
| 13496 | # include <assert.h> |
| 13497 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13498 | |
| 13499 | #undef $ac_func |
| 13500 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13501 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13502 | #ifdef __cplusplus |
| 13503 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13504 | { |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13505 | #endif |
| 13506 | /* We use char because int might match the return type of a gcc2 |
| 13507 | builtin and then its argument prototype would still apply. */ |
| 13508 | char $ac_func (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13509 | /* The GNU C library defines this for functions which it implements |
| 13510 | to always fail with ENOSYS. Some functions are actually named |
| 13511 | something starting with __ and the normal name is an alias. */ |
| 13512 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13513 | choke me |
| 13514 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13515 | char (*f) () = $ac_func; |
| 13516 | #endif |
| 13517 | #ifdef __cplusplus |
| 13518 | } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13519 | #endif |
| 13520 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13521 | int |
| 13522 | main () |
| 13523 | { |
| 13524 | return f != $ac_func; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13525 | ; |
| 13526 | return 0; |
| 13527 | } |
| 13528 | _ACEOF |
| 13529 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13531 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13532 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13534 | rm -f conftest.er1 |
| 13535 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13537 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13538 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13540 | (eval $ac_try) 2>&5 |
| 13541 | ac_status=$? |
| 13542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13543 | (exit $ac_status); }; } && |
| 13544 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13546 | (eval $ac_try) 2>&5 |
| 13547 | ac_status=$? |
| 13548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13549 | (exit $ac_status); }; }; then |
| 13550 | eval "$as_ac_var=yes" |
| 13551 | else |
| 13552 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13553 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13554 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13555 | eval "$as_ac_var=no" |
| 13556 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13557 | rm -f conftest.err conftest.$ac_objext \ |
| 13558 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13559 | fi |
| 13560 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13561 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13562 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13563 | cat >>confdefs.h <<_ACEOF |
| 13564 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13565 | _ACEOF |
| 13566 | |
| 13567 | else |
| 13568 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13569 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 13570 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 13571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13572 | else |
| 13573 | ac_check_lib_save_LIBS=$LIBS |
| 13574 | LIBS="-ldl $LIBS" |
| 13575 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13576 | /* confdefs.h. */ |
| 13577 | _ACEOF |
| 13578 | cat confdefs.h >>conftest.$ac_ext |
| 13579 | cat >>conftest.$ac_ext <<_ACEOF |
| 13580 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13581 | |
| 13582 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13583 | #ifdef __cplusplus |
| 13584 | extern "C" |
| 13585 | #endif |
| 13586 | /* We use char because int might match the return type of a gcc2 |
| 13587 | builtin and then its argument prototype would still apply. */ |
| 13588 | char dlopen (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13589 | int |
| 13590 | main () |
| 13591 | { |
| 13592 | dlopen (); |
| 13593 | ; |
| 13594 | return 0; |
| 13595 | } |
| 13596 | _ACEOF |
| 13597 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13599 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13600 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13602 | rm -f conftest.er1 |
| 13603 | cat conftest.err >&5 |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13605 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13606 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13608 | (eval $ac_try) 2>&5 |
| 13609 | ac_status=$? |
| 13610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13611 | (exit $ac_status); }; } && |
| 13612 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13614 | (eval $ac_try) 2>&5 |
| 13615 | ac_status=$? |
| 13616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13617 | (exit $ac_status); }; }; then |
| 13618 | ac_cv_lib_dl_dlopen=yes |
| 13619 | else |
| 13620 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13622 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13623 | ac_cv_lib_dl_dlopen=no |
| 13624 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13625 | rm -f conftest.err conftest.$ac_objext \ |
| 13626 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 13627 | LIBS=$ac_check_lib_save_LIBS |
| 13628 | fi |
| 13629 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13630 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 13631 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 13632 | |
| 13633 | cat >>confdefs.h <<\_ACEOF |
| 13634 | #define HAVE_DLOPEN 1 |
| 13635 | _ACEOF |
| 13636 | |
| 13637 | DLLIBS="-ldl" |
| 13638 | else |
| 13639 | LIBEXT="a" |
| 13640 | fi |
| 13641 | |
| 13642 | fi |
| 13643 | done |
| 13644 | |
| 13645 | else |
| 13646 | LIBEXT="a" |
| 13647 | fi |
| 13648 | |
| 13649 | done |
| 13650 | |
| 13651 | |
| 13652 | if test "$LIBEXT" = "so" |
| 13653 | then |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 13654 | DLLFLAGS="$DLLFLAGS -fPIC" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 13655 | DLLEXT=".so" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 13656 | 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] | 13657 | echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6 |
| 13658 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then |
| 13659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 13660 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 13661 | ac_wine_try_cflags_saved=$CFLAGS |
| 13662 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic" |
| 13663 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 13664 | void myfunc() {} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13665 | _ACEOF |
| 13666 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13668 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13669 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13670 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13671 | rm -f conftest.er1 |
| 13672 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13674 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13675 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13677 | (eval $ac_try) 2>&5 |
| 13678 | ac_status=$? |
| 13679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13680 | (exit $ac_status); }; } && |
| 13681 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13683 | (eval $ac_try) 2>&5 |
| 13684 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13686 | (exit $ac_status); }; }; then |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 13687 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 13688 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13689 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13691 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13692 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 13693 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13694 | rm -f conftest.err conftest.$ac_objext \ |
| 13695 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 13696 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13697 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13698 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13699 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 13700 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 13701 | then |
| 13702 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13703 | LDDLLFLAGS="-shared -Wl,-Bsymbolic" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13704 | echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5 |
| 13705 | echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6 |
| 13706 | if test "${ac_cv_c_dll_zdefs+set}" = set; then |
| 13707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13708 | else |
| 13709 | ac_wine_try_cflags_saved=$CFLAGS |
| 13710 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
| 13711 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13712 | /* confdefs.h. */ |
| 13713 | _ACEOF |
| 13714 | cat confdefs.h >>conftest.$ac_ext |
| 13715 | cat >>conftest.$ac_ext <<_ACEOF |
| 13716 | /* end confdefs.h. */ |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13717 | |
| 13718 | int |
| 13719 | main () |
| 13720 | { |
| 13721 | |
| 13722 | ; |
| 13723 | return 0; |
| 13724 | } |
| 13725 | _ACEOF |
| 13726 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13728 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13729 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13731 | rm -f conftest.er1 |
| 13732 | cat conftest.err >&5 |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13734 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13735 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13737 | (eval $ac_try) 2>&5 |
| 13738 | ac_status=$? |
| 13739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13740 | (exit $ac_status); }; } && |
| 13741 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13743 | (eval $ac_try) 2>&5 |
| 13744 | ac_status=$? |
| 13745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13746 | (exit $ac_status); }; }; then |
| 13747 | ac_cv_c_dll_zdefs="yes" |
| 13748 | else |
| 13749 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13750 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13751 | |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13752 | ac_cv_c_dll_zdefs="no" |
| 13753 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13754 | rm -f conftest.err conftest.$ac_objext \ |
| 13755 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13756 | CFLAGS=$ac_wine_try_cflags_saved |
| 13757 | fi |
| 13758 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5 |
| 13759 | echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6 |
| 13760 | if test "$ac_cv_c_dll_zdefs" = "yes" |
| 13761 | then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13762 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 13763 | fi |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 13764 | |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 13765 | echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5 |
| 13766 | echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6 |
| 13767 | if test "${ac_cv_c_dll_init_fini+set}" = set; then |
| 13768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13769 | else |
| 13770 | ac_wine_try_cflags_saved=$CFLAGS |
| 13771 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" |
| 13772 | cat >conftest.$ac_ext <<_ACEOF |
| 13773 | /* confdefs.h. */ |
| 13774 | _ACEOF |
| 13775 | cat confdefs.h >>conftest.$ac_ext |
| 13776 | cat >>conftest.$ac_ext <<_ACEOF |
| 13777 | /* end confdefs.h. */ |
| 13778 | |
| 13779 | int |
| 13780 | main () |
| 13781 | { |
| 13782 | |
| 13783 | ; |
| 13784 | return 0; |
| 13785 | } |
| 13786 | _ACEOF |
| 13787 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13789 | (eval $ac_link) 2>conftest.er1 |
| 13790 | ac_status=$? |
| 13791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13792 | rm -f conftest.er1 |
| 13793 | cat conftest.err >&5 |
| 13794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13795 | (exit $ac_status); } && |
| 13796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13798 | (eval $ac_try) 2>&5 |
| 13799 | ac_status=$? |
| 13800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13801 | (exit $ac_status); }; } && |
| 13802 | { ac_try='test -s conftest$ac_exeext' |
| 13803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13804 | (eval $ac_try) 2>&5 |
| 13805 | ac_status=$? |
| 13806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13807 | (exit $ac_status); }; }; then |
| 13808 | ac_cv_c_dll_init_fini="yes" |
| 13809 | else |
| 13810 | echo "$as_me: failed program was:" >&5 |
| 13811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13812 | |
| 13813 | ac_cv_c_dll_init_fini="no" |
| 13814 | fi |
| 13815 | rm -f conftest.err conftest.$ac_objext \ |
| 13816 | conftest$ac_exeext conftest.$ac_ext |
| 13817 | CFLAGS=$ac_wine_try_cflags_saved |
| 13818 | fi |
| 13819 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5 |
| 13820 | echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6 |
| 13821 | if test "$ac_cv_c_dll_init_fini" = "yes" |
| 13822 | then |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 13823 | LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini" |
Alexandre Julliard | 3604824 | 2004-01-08 03:36:53 +0000 | [diff] [blame] | 13824 | fi |
| 13825 | |
Alexandre Julliard | 440ff6d | 2004-02-12 22:54:00 +0000 | [diff] [blame] | 13826 | echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5 |
| 13827 | echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6 |
| 13828 | if test "${ac_cv_c_ld_version_scripts+set}" = set; then |
| 13829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13830 | else |
| 13831 | echo '{ global: *; };' >conftest.map |
| 13832 | ac_wine_try_cflags_saved=$CFLAGS |
| 13833 | CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map" |
| 13834 | cat >conftest.$ac_ext <<_ACEOF |
| 13835 | /* confdefs.h. */ |
| 13836 | _ACEOF |
| 13837 | cat confdefs.h >>conftest.$ac_ext |
| 13838 | cat >>conftest.$ac_ext <<_ACEOF |
| 13839 | /* end confdefs.h. */ |
| 13840 | |
| 13841 | int |
| 13842 | main () |
| 13843 | { |
| 13844 | |
| 13845 | ; |
| 13846 | return 0; |
| 13847 | } |
| 13848 | _ACEOF |
| 13849 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13851 | (eval $ac_link) 2>conftest.er1 |
| 13852 | ac_status=$? |
| 13853 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13854 | rm -f conftest.er1 |
| 13855 | cat conftest.err >&5 |
| 13856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13857 | (exit $ac_status); } && |
| 13858 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13860 | (eval $ac_try) 2>&5 |
| 13861 | ac_status=$? |
| 13862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13863 | (exit $ac_status); }; } && |
| 13864 | { ac_try='test -s conftest$ac_exeext' |
| 13865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13866 | (eval $ac_try) 2>&5 |
| 13867 | ac_status=$? |
| 13868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13869 | (exit $ac_status); }; }; then |
| 13870 | ac_cv_c_ld_version_scripts="yes" |
| 13871 | else |
| 13872 | echo "$as_me: failed program was:" >&5 |
| 13873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13874 | |
| 13875 | ac_cv_c_ld_version_scripts="no" |
| 13876 | fi |
| 13877 | rm -f conftest.err conftest.$ac_objext \ |
| 13878 | conftest$ac_exeext conftest.$ac_ext |
| 13879 | CFLAGS=$ac_wine_try_cflags_saved |
| 13880 | rm -f conftest.map |
| 13881 | fi |
| 13882 | echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5 |
| 13883 | echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6 |
| 13884 | if test "$ac_cv_c_ld_version_scripts" = "yes" |
| 13885 | then |
| 13886 | LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)" |
| 13887 | fi |
| 13888 | |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 13889 | echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5 |
| 13890 | echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6 |
| 13891 | if test "${ac_cv_c_export_dynamic+set}" = set; then |
| 13892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13893 | else |
| 13894 | ac_wine_try_cflags_saved=$CFLAGS |
| 13895 | CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic" |
| 13896 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 13897 | /* confdefs.h. */ |
| 13898 | _ACEOF |
| 13899 | cat confdefs.h >>conftest.$ac_ext |
| 13900 | cat >>conftest.$ac_ext <<_ACEOF |
| 13901 | /* end confdefs.h. */ |
| 13902 | |
| 13903 | int |
| 13904 | main () |
| 13905 | { |
| 13906 | |
| 13907 | ; |
| 13908 | return 0; |
| 13909 | } |
| 13910 | _ACEOF |
| 13911 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13912 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13913 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 13914 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13915 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13916 | rm -f conftest.er1 |
| 13917 | cat conftest.err >&5 |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 13918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13919 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13920 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13922 | (eval $ac_try) 2>&5 |
| 13923 | ac_status=$? |
| 13924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13925 | (exit $ac_status); }; } && |
| 13926 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 13927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13928 | (eval $ac_try) 2>&5 |
| 13929 | ac_status=$? |
| 13930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13931 | (exit $ac_status); }; }; then |
| 13932 | ac_cv_c_export_dynamic="yes" |
| 13933 | else |
| 13934 | echo "$as_me: failed program was:" >&5 |
| 13935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13936 | |
| 13937 | ac_cv_c_export_dynamic="no" |
| 13938 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 13939 | rm -f conftest.err conftest.$ac_objext \ |
| 13940 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 13941 | CFLAGS=$ac_wine_try_cflags_saved |
| 13942 | fi |
| 13943 | echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5 |
| 13944 | echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6 |
| 13945 | if test "$ac_cv_c_export_dynamic" = "yes" |
| 13946 | then |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 13947 | LDEXECFLAGS="-Wl,--export-dynamic" |
| 13948 | |
Alexandre Julliard | ef2d04d | 2003-11-17 20:07:55 +0000 | [diff] [blame] | 13949 | fi |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 13950 | |
| 13951 | case $host_cpu in |
| 13952 | *i[3456789]86*) |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 13953 | echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5 |
| 13954 | 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] | 13955 | if test "${ac_cv_ld_reloc_exec+set}" = set; then |
| 13956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13957 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 13958 | ac_wine_try_cflags_saved=$CFLAGS |
| 13959 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400" |
| 13960 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 13961 | /* confdefs.h. */ |
| 13962 | _ACEOF |
| 13963 | cat confdefs.h >>conftest.$ac_ext |
| 13964 | cat >>conftest.$ac_ext <<_ACEOF |
| 13965 | /* end confdefs.h. */ |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 13966 | |
| 13967 | int |
| 13968 | main () |
| 13969 | { |
| 13970 | |
| 13971 | ; |
| 13972 | return 0; |
| 13973 | } |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 13974 | _ACEOF |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 13975 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 13976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 13977 | (eval $ac_link) 2>conftest.er1 |
| 13978 | ac_status=$? |
| 13979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13980 | rm -f conftest.er1 |
| 13981 | cat conftest.err >&5 |
| 13982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13983 | (exit $ac_status); } && |
| 13984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13986 | (eval $ac_try) 2>&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 13987 | ac_status=$? |
| 13988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 13989 | (exit $ac_status); }; } && |
| 13990 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 13991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13992 | (eval $ac_try) 2>&5 |
| 13993 | ac_status=$? |
| 13994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13995 | (exit $ac_status); }; }; then |
| 13996 | ac_cv_ld_reloc_exec="yes" |
| 13997 | else |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 13998 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 13999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14000 | |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14001 | ac_cv_ld_reloc_exec="no" |
| 14002 | fi |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14003 | rm -f conftest.err conftest.$ac_objext \ |
| 14004 | conftest$ac_exeext conftest.$ac_ext |
| 14005 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14006 | fi |
| 14007 | echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5 |
| 14008 | echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6 |
| 14009 | if test "$ac_cv_ld_reloc_exec" = "yes" |
| 14010 | then |
Alexandre Julliard | b1abca8 | 2004-05-28 20:59:22 +0000 | [diff] [blame] | 14011 | LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400" |
Alexandre Julliard | c6d44be | 2003-11-22 00:08:26 +0000 | [diff] [blame] | 14012 | fi |
| 14013 | ;; |
| 14014 | esac |
| 14015 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14016 | else |
| 14017 | 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] | 14018 | echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6 |
| 14019 | if test "${ac_cv_c_dll_unixware+set}" = set; then |
| 14020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 14021 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14022 | ac_wine_try_cflags_saved=$CFLAGS |
| 14023 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
| 14024 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 14025 | void myfunc() {} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14026 | _ACEOF |
| 14027 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 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 | f5818d2 | 2002-02-14 19:47:29 +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 | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 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 | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14044 | (eval $ac_try) 2>&5 |
| 14045 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14047 | (exit $ac_status); }; }; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 14048 | ac_cv_c_dll_unixware="yes" |
| 14049 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14050 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14051 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14052 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14053 | ac_cv_c_dll_unixware="no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 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 | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14057 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14058 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14059 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14060 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14061 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 14062 | then |
| 14063 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 14064 | LDDLLFLAGS="-Wl,-G,-B,symbolic" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14065 | |
| 14066 | else |
| 14067 | echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5 |
| 14068 | echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6 |
| 14069 | if test "${ac_cv_c_dll_macho+set}" = set; then |
| 14070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14071 | else |
| 14072 | ac_wine_try_cflags_saved=$CFLAGS |
| 14073 | CFLAGS="$CFLAGS -bundle" |
| 14074 | cat >conftest.$ac_ext <<_ACEOF |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 14075 | void myfunc() {} |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14076 | _ACEOF |
| 14077 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14079 | (eval $ac_link) 2>conftest.er1 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14080 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14082 | rm -f conftest.er1 |
| 14083 | cat conftest.err >&5 |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14085 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14088 | (eval $ac_try) 2>&5 |
| 14089 | ac_status=$? |
| 14090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14091 | (exit $ac_status); }; } && |
| 14092 | { ac_try='test -s conftest$ac_exeext' |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14094 | (eval $ac_try) 2>&5 |
| 14095 | ac_status=$? |
| 14096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14097 | (exit $ac_status); }; }; then |
| 14098 | ac_cv_c_dll_macho="yes" |
| 14099 | else |
| 14100 | echo "$as_me: failed program was:" >&5 |
| 14101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14102 | |
| 14103 | ac_cv_c_dll_macho="no" |
| 14104 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14105 | rm -f conftest.err conftest.$ac_objext \ |
| 14106 | conftest$ac_exeext conftest.$ac_ext |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14107 | CFLAGS=$ac_wine_try_cflags_saved |
| 14108 | fi |
| 14109 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5 |
| 14110 | echo "${ECHO_T}$ac_cv_c_dll_macho" >&6 |
| 14111 | if test "$ac_cv_c_dll_macho" = "yes" |
| 14112 | then |
| 14113 | LIBEXT="dylib" |
Emmanuel Maillard | 4fe448d | 2005-03-01 10:46:27 +0000 | [diff] [blame] | 14114 | LDDLLFLAGS="-bundle -flat_namespace -undefined suppress -read_only_relocs warning" |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14115 | LDSHARED="\$(CC) -dynamiclib" |
| 14116 | CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp" |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14117 | STRIP="$STRIP -u -r" |
Emmanuel Maillard | 46718f8 | 2004-07-22 19:48:41 +0000 | [diff] [blame] | 14118 | LDEXECFLAGS="-seg1addr 0x120000" |
| 14119 | |
| 14120 | LDLIBWINEFLAGS="-seg1addr 0x140000" |
| 14121 | |
Emmanuel Maillard | 2300ce6 | 2004-08-19 01:20:45 +0000 | [diff] [blame] | 14122 | COREFOUNDATIONLIB="-framework CoreFoundation" |
| 14123 | |
| 14124 | IOKITLIB="-framework IOKit" |
| 14125 | |
Pierre d'Herbemont | f94121e | 2005-02-26 17:43:50 +0000 | [diff] [blame] | 14126 | IOKITLIB="$IOKITLIB $COREFOUNDATIONLIB" |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 14127 | else |
| 14128 | echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5 |
| 14129 | echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6 |
| 14130 | if test "${ac_cv_c_dll_hpux+set}" = set; then |
| 14131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14132 | else |
| 14133 | ac_wine_try_cflags_saved=$CFLAGS |
| 14134 | CFLAGS="$CFLAGS -shared" |
| 14135 | cat >conftest.$ac_ext <<_ACEOF |
| 14136 | void myfunc() {} |
| 14137 | _ACEOF |
| 14138 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14140 | (eval $ac_link) 2>conftest.er1 |
| 14141 | ac_status=$? |
| 14142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14143 | rm -f conftest.er1 |
| 14144 | cat conftest.err >&5 |
| 14145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14146 | (exit $ac_status); } && |
| 14147 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14149 | (eval $ac_try) 2>&5 |
| 14150 | ac_status=$? |
| 14151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14152 | (exit $ac_status); }; } && |
| 14153 | { ac_try='test -s conftest$ac_exeext' |
| 14154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14155 | (eval $ac_try) 2>&5 |
| 14156 | ac_status=$? |
| 14157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14158 | (exit $ac_status); }; }; then |
| 14159 | ac_cv_c_dll_hpux="yes" |
| 14160 | else |
| 14161 | echo "$as_me: failed program was:" >&5 |
| 14162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14163 | |
| 14164 | ac_cv_c_dll_hpux="no" |
| 14165 | fi |
| 14166 | rm -f conftest.err conftest.$ac_objext \ |
| 14167 | conftest$ac_exeext conftest.$ac_ext |
| 14168 | CFLAGS=$ac_wine_try_cflags_saved |
| 14169 | fi |
| 14170 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5 |
| 14171 | echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6 |
| 14172 | if test "$ac_cv_c_dll_hpux" = "yes" |
| 14173 | then |
| 14174 | LIBEXT="sl" |
Warren Baird | 1023fe3 | 2004-10-19 21:37:09 +0000 | [diff] [blame] | 14175 | DLLEXT=".sl" |
| 14176 | LDDLLFLAGS="-shared -fPIC" |
Warren Baird | 421e8b9 | 2004-09-22 19:17:55 +0000 | [diff] [blame] | 14177 | LDSHARED="\$(CC) -shared" |
| 14178 | fi |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14179 | fi |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 14180 | fi |
| 14181 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14182 | fi |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 14183 | |
| 14184 | CROSSTEST="" |
| 14185 | |
| 14186 | if test "$cross_compiling" = "no" |
| 14187 | then |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 14188 | 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] | 14189 | do |
| 14190 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14191 | set dummy $ac_prog; ac_word=$2 |
| 14192 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14193 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14194 | if test "${ac_cv_prog_CROSSCC+set}" = set; then |
| 14195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14196 | else |
| 14197 | if test -n "$CROSSCC"; then |
| 14198 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 14199 | else |
| 14200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14201 | for as_dir in $PATH |
| 14202 | do |
| 14203 | IFS=$as_save_IFS |
| 14204 | test -z "$as_dir" && as_dir=. |
| 14205 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14206 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14207 | ac_cv_prog_CROSSCC="$ac_prog" |
| 14208 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14209 | break 2 |
| 14210 | fi |
| 14211 | done |
| 14212 | done |
| 14213 | |
| 14214 | fi |
| 14215 | fi |
| 14216 | CROSSCC=$ac_cv_prog_CROSSCC |
| 14217 | if test -n "$CROSSCC"; then |
| 14218 | echo "$as_me:$LINENO: result: $CROSSCC" >&5 |
| 14219 | echo "${ECHO_T}$CROSSCC" >&6 |
| 14220 | else |
| 14221 | echo "$as_me:$LINENO: result: no" >&5 |
| 14222 | echo "${ECHO_T}no" >&6 |
| 14223 | fi |
| 14224 | |
| 14225 | test -n "$CROSSCC" && break |
| 14226 | done |
| 14227 | test -n "$CROSSCC" || CROSSCC="false" |
| 14228 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 14229 | 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] | 14230 | do |
| 14231 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14232 | set dummy $ac_prog; ac_word=$2 |
| 14233 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14235 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 14236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14237 | else |
| 14238 | if test -n "$DLLTOOL"; then |
| 14239 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 14240 | else |
| 14241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14242 | for as_dir in $PATH |
| 14243 | do |
| 14244 | IFS=$as_save_IFS |
| 14245 | test -z "$as_dir" && as_dir=. |
| 14246 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14247 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14248 | ac_cv_prog_DLLTOOL="$ac_prog" |
| 14249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14250 | break 2 |
| 14251 | fi |
| 14252 | done |
| 14253 | done |
| 14254 | |
| 14255 | fi |
| 14256 | fi |
| 14257 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 14258 | if test -n "$DLLTOOL"; then |
| 14259 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 14260 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 14261 | else |
| 14262 | echo "$as_me:$LINENO: result: no" >&5 |
| 14263 | echo "${ECHO_T}no" >&6 |
| 14264 | fi |
| 14265 | |
| 14266 | test -n "$DLLTOOL" && break |
| 14267 | done |
| 14268 | test -n "$DLLTOOL" || DLLTOOL="false" |
| 14269 | |
Kevin Koltzau | d344456 | 2004-04-15 00:01:05 +0000 | [diff] [blame] | 14270 | 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] | 14271 | do |
| 14272 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14273 | set dummy $ac_prog; ac_word=$2 |
| 14274 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14276 | if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then |
| 14277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14278 | else |
| 14279 | if test -n "$CROSSWINDRES"; then |
| 14280 | ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test. |
| 14281 | else |
| 14282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14283 | for as_dir in $PATH |
| 14284 | do |
| 14285 | IFS=$as_save_IFS |
| 14286 | test -z "$as_dir" && as_dir=. |
| 14287 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14289 | ac_cv_prog_CROSSWINDRES="$ac_prog" |
| 14290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14291 | break 2 |
| 14292 | fi |
| 14293 | done |
| 14294 | done |
| 14295 | |
| 14296 | fi |
| 14297 | fi |
| 14298 | CROSSWINDRES=$ac_cv_prog_CROSSWINDRES |
| 14299 | if test -n "$CROSSWINDRES"; then |
| 14300 | echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5 |
| 14301 | echo "${ECHO_T}$CROSSWINDRES" >&6 |
| 14302 | else |
| 14303 | echo "$as_me:$LINENO: result: no" >&5 |
| 14304 | echo "${ECHO_T}no" >&6 |
| 14305 | fi |
| 14306 | |
| 14307 | test -n "$CROSSWINDRES" && break |
| 14308 | done |
| 14309 | test -n "$CROSSWINDRES" || CROSSWINDRES="false" |
| 14310 | |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 14311 | if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi |
| 14312 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 14313 | ;; |
| 14314 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 14315 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 14316 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14317 | { { 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] | 14318 | It is currently not possible to build Wine without shared library |
| 14319 | (.so) support to allow transparent switch between .so and .dll files. |
| 14320 | If you are using Linux, you will need a newer binutils. |
| 14321 | " >&5 |
| 14322 | echo "$as_me: error: could not find a way to build shared libraries. |
| 14323 | It is currently not possible to build Wine without shared library |
| 14324 | (.so) support to allow transparent switch between .so and .dll files. |
| 14325 | If you are using Linux, you will need a newer binutils. |
| 14326 | " >&2;} |
| 14327 | { (exit 1); exit 1; }; } |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 14328 | fi |
| 14329 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14330 | case $build_os in |
| 14331 | cygwin*|mingw32*) |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 14332 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14333 | ;; |
Pierre d'Herbemont | 794bf0f | 2003-11-25 03:31:26 +0000 | [diff] [blame] | 14334 | darwin*|macosx*) |
| 14335 | LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\"" |
| 14336 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14337 | *) |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 14338 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\"" |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14339 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 14340 | esac |
| 14341 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14342 | case $host_os in |
| 14343 | mingw32*) |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14344 | CRTLIBS="-lmsvcrt" |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 14345 | |
| 14346 | SOCKETLIBS="-lws2_32" |
| 14347 | |
| 14348 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14349 | esac |
| 14350 | |
| 14351 | case $host_os in |
| 14352 | linux*) |
Vincent Béron | 4bf9d98 | 2004-10-14 00:30:59 +0000 | [diff] [blame] | 14353 | case $host_cpu in |
| 14354 | *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader" |
| 14355 | ;; |
| 14356 | *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread" |
| 14357 | ;; |
| 14358 | esac |
Alexandre Julliard | a628c13 | 2003-11-12 03:28:21 +0000 | [diff] [blame] | 14359 | MAIN_BINARY="wine-glibc" |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14360 | |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14361 | ;; |
Emmanuel Maillard | 3bc8d2e | 2004-07-19 20:11:10 +0000 | [diff] [blame] | 14362 | darwin*) |
| 14363 | WINE_BINARIES="wine-pthread" |
| 14364 | |
| 14365 | MAIN_BINARY="wine-pthread" |
| 14366 | |
| 14367 | ;; |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 14368 | *) |
| 14369 | WINE_BINARIES="wine-kthread" |
| 14370 | |
| 14371 | MAIN_BINARY="wine-kthread" |
| 14372 | |
| 14373 | ;; |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 14374 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14375 | |
| 14376 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14377 | if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14378 | then |
| 14379 | # Extract the first word of "ldd", so it can be a program name with args. |
| 14380 | set dummy ldd; ac_word=$2 |
| 14381 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14383 | if test "${ac_cv_path_LDD+set}" = set; then |
| 14384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14385 | else |
| 14386 | case $LDD in |
| 14387 | [\\/]* | ?:[\\/]*) |
| 14388 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 14389 | ;; |
| 14390 | *) |
| 14391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14392 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 14393 | for as_dir in $as_dummy |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14394 | do |
| 14395 | IFS=$as_save_IFS |
| 14396 | test -z "$as_dir" && as_dir=. |
| 14397 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14398 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14399 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
| 14400 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14401 | break 2 |
| 14402 | fi |
| 14403 | done |
| 14404 | done |
| 14405 | |
| 14406 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 14407 | ;; |
| 14408 | esac |
| 14409 | fi |
| 14410 | LDD=$ac_cv_path_LDD |
| 14411 | |
| 14412 | if test -n "$LDD"; then |
| 14413 | echo "$as_me:$LINENO: result: $LDD" >&5 |
| 14414 | echo "${ECHO_T}$LDD" >&6 |
| 14415 | else |
| 14416 | echo "$as_me:$LINENO: result: no" >&5 |
| 14417 | echo "${ECHO_T}no" >&6 |
| 14418 | fi |
| 14419 | |
| 14420 | |
| 14421 | echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
| 14422 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6 |
| 14423 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 14424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14425 | else |
| 14426 | ac_get_soname_save_LIBS=$LIBS |
| 14427 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 14428 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14429 | /* confdefs.h. */ |
| 14430 | _ACEOF |
| 14431 | cat confdefs.h >>conftest.$ac_ext |
| 14432 | cat >>conftest.$ac_ext <<_ACEOF |
| 14433 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14434 | |
| 14435 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14436 | #ifdef __cplusplus |
| 14437 | extern "C" |
| 14438 | #endif |
| 14439 | /* We use char because int might match the return type of a gcc2 |
| 14440 | builtin and then its argument prototype would still apply. */ |
| 14441 | char XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14442 | int |
| 14443 | main () |
| 14444 | { |
| 14445 | XCreateWindow (); |
| 14446 | ; |
| 14447 | return 0; |
| 14448 | } |
| 14449 | _ACEOF |
| 14450 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14452 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14453 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14455 | rm -f conftest.er1 |
| 14456 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14458 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14459 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14461 | (eval $ac_try) 2>&5 |
| 14462 | ac_status=$? |
| 14463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14464 | (exit $ac_status); }; } && |
| 14465 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14467 | (eval $ac_try) 2>&5 |
| 14468 | ac_status=$? |
| 14469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14470 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14471 | 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] | 14472 | if test "x$ac_cv_lib_soname_X11" = "x" |
| 14473 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14474 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14475 | fi |
| 14476 | else |
| 14477 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14479 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14480 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14481 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14482 | rm -f conftest.err conftest.$ac_objext \ |
| 14483 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14484 | LIBS=$ac_get_soname_save_LIBS |
| 14485 | fi |
| 14486 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 |
| 14487 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6 |
| 14488 | if test "x$ac_cv_lib_soname_X11" != xNONE |
| 14489 | then |
| 14490 | cat >>confdefs.h <<_ACEOF |
| 14491 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 14492 | _ACEOF |
| 14493 | fi |
| 14494 | |
| 14495 | echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
| 14496 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6 |
| 14497 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 14498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14499 | else |
| 14500 | ac_get_soname_save_LIBS=$LIBS |
| 14501 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 14502 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14503 | /* confdefs.h. */ |
| 14504 | _ACEOF |
| 14505 | cat confdefs.h >>conftest.$ac_ext |
| 14506 | cat >>conftest.$ac_ext <<_ACEOF |
| 14507 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14508 | |
| 14509 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14510 | #ifdef __cplusplus |
| 14511 | extern "C" |
| 14512 | #endif |
| 14513 | /* We use char because int might match the return type of a gcc2 |
| 14514 | builtin and then its argument prototype would still apply. */ |
| 14515 | char XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14516 | int |
| 14517 | main () |
| 14518 | { |
| 14519 | XextCreateExtension (); |
| 14520 | ; |
| 14521 | return 0; |
| 14522 | } |
| 14523 | _ACEOF |
| 14524 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14526 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14527 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14529 | rm -f conftest.er1 |
| 14530 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14532 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14535 | (eval $ac_try) 2>&5 |
| 14536 | ac_status=$? |
| 14537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14538 | (exit $ac_status); }; } && |
| 14539 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14541 | (eval $ac_try) 2>&5 |
| 14542 | ac_status=$? |
| 14543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14544 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14545 | 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] | 14546 | if test "x$ac_cv_lib_soname_Xext" = "x" |
| 14547 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14548 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14549 | fi |
| 14550 | else |
| 14551 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14553 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14554 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14555 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14556 | rm -f conftest.err conftest.$ac_objext \ |
| 14557 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14558 | LIBS=$ac_get_soname_save_LIBS |
| 14559 | fi |
| 14560 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5 |
| 14561 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6 |
| 14562 | if test "x$ac_cv_lib_soname_Xext" != xNONE |
| 14563 | then |
| 14564 | cat >>confdefs.h <<_ACEOF |
| 14565 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 14566 | _ACEOF |
| 14567 | fi |
| 14568 | |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 14569 | echo "$as_me:$LINENO: checking for -lXi soname" >&5 |
| 14570 | echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6 |
| 14571 | if test "${ac_cv_lib_soname_Xi+set}" = set; then |
| 14572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14573 | else |
| 14574 | ac_get_soname_save_LIBS=$LIBS |
| 14575 | LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 14576 | cat >conftest.$ac_ext <<_ACEOF |
| 14577 | /* confdefs.h. */ |
| 14578 | _ACEOF |
| 14579 | cat confdefs.h >>conftest.$ac_ext |
| 14580 | cat >>conftest.$ac_ext <<_ACEOF |
| 14581 | /* end confdefs.h. */ |
| 14582 | |
| 14583 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14584 | #ifdef __cplusplus |
| 14585 | extern "C" |
| 14586 | #endif |
| 14587 | /* We use char because int might match the return type of a gcc2 |
| 14588 | builtin and then its argument prototype would still apply. */ |
| 14589 | char XOpenDevice (); |
| 14590 | int |
| 14591 | main () |
| 14592 | { |
| 14593 | XOpenDevice (); |
| 14594 | ; |
| 14595 | return 0; |
| 14596 | } |
| 14597 | _ACEOF |
| 14598 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14600 | (eval $ac_link) 2>conftest.er1 |
| 14601 | ac_status=$? |
| 14602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14603 | rm -f conftest.er1 |
| 14604 | cat conftest.err >&5 |
| 14605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14606 | (exit $ac_status); } && |
| 14607 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14609 | (eval $ac_try) 2>&5 |
| 14610 | ac_status=$? |
| 14611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14612 | (exit $ac_status); }; } && |
| 14613 | { ac_try='test -s conftest$ac_exeext' |
| 14614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14615 | (eval $ac_try) 2>&5 |
| 14616 | ac_status=$? |
| 14617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14618 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14619 | 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] | 14620 | if test "x$ac_cv_lib_soname_Xi" = "x" |
| 14621 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14622 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 14623 | fi |
| 14624 | else |
| 14625 | echo "$as_me: failed program was:" >&5 |
| 14626 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14627 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14628 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
Aric Stewart | 2eebf3c | 2004-01-09 00:03:00 +0000 | [diff] [blame] | 14629 | fi |
| 14630 | rm -f conftest.err conftest.$ac_objext \ |
| 14631 | conftest$ac_exeext conftest.$ac_ext |
| 14632 | LIBS=$ac_get_soname_save_LIBS |
| 14633 | fi |
| 14634 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5 |
| 14635 | echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6 |
| 14636 | if test "x$ac_cv_lib_soname_Xi" != xNONE |
| 14637 | then |
| 14638 | cat >>confdefs.h <<_ACEOF |
| 14639 | #define SONAME_LIBXI "$ac_cv_lib_soname_Xi" |
| 14640 | _ACEOF |
| 14641 | fi |
| 14642 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14643 | echo "$as_me:$LINENO: checking for -lXrender soname" >&5 |
| 14644 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6 |
| 14645 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 14646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14647 | else |
| 14648 | ac_get_soname_save_LIBS=$LIBS |
| 14649 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 14650 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14651 | /* confdefs.h. */ |
| 14652 | _ACEOF |
| 14653 | cat confdefs.h >>conftest.$ac_ext |
| 14654 | cat >>conftest.$ac_ext <<_ACEOF |
| 14655 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14656 | |
| 14657 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14658 | #ifdef __cplusplus |
| 14659 | extern "C" |
| 14660 | #endif |
| 14661 | /* We use char because int might match the return type of a gcc2 |
| 14662 | builtin and then its argument prototype would still apply. */ |
| 14663 | char XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14664 | int |
| 14665 | main () |
| 14666 | { |
| 14667 | XRenderQueryExtension (); |
| 14668 | ; |
| 14669 | return 0; |
| 14670 | } |
| 14671 | _ACEOF |
| 14672 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14674 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14675 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14677 | rm -f conftest.er1 |
| 14678 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14680 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14681 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14683 | (eval $ac_try) 2>&5 |
| 14684 | ac_status=$? |
| 14685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14686 | (exit $ac_status); }; } && |
| 14687 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14689 | (eval $ac_try) 2>&5 |
| 14690 | ac_status=$? |
| 14691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14692 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14693 | 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] | 14694 | if test "x$ac_cv_lib_soname_Xrender" = "x" |
| 14695 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14696 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14697 | fi |
| 14698 | else |
| 14699 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14701 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14702 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14703 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14704 | rm -f conftest.err conftest.$ac_objext \ |
| 14705 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14706 | LIBS=$ac_get_soname_save_LIBS |
| 14707 | fi |
| 14708 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 |
| 14709 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6 |
| 14710 | if test "x$ac_cv_lib_soname_Xrender" != xNONE |
| 14711 | then |
| 14712 | cat >>confdefs.h <<_ACEOF |
| 14713 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 14714 | _ACEOF |
| 14715 | fi |
| 14716 | |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 14717 | echo "$as_me:$LINENO: checking for -lXrandr soname" >&5 |
| 14718 | echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6 |
| 14719 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then |
| 14720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14721 | else |
| 14722 | ac_get_soname_save_LIBS=$LIBS |
| 14723 | LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 14724 | cat >conftest.$ac_ext <<_ACEOF |
| 14725 | /* confdefs.h. */ |
| 14726 | _ACEOF |
| 14727 | cat confdefs.h >>conftest.$ac_ext |
| 14728 | cat >>conftest.$ac_ext <<_ACEOF |
| 14729 | /* end confdefs.h. */ |
| 14730 | |
| 14731 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14732 | #ifdef __cplusplus |
| 14733 | extern "C" |
| 14734 | #endif |
| 14735 | /* We use char because int might match the return type of a gcc2 |
| 14736 | builtin and then its argument prototype would still apply. */ |
| 14737 | char XRRQueryExtension (); |
| 14738 | int |
| 14739 | main () |
| 14740 | { |
| 14741 | XRRQueryExtension (); |
| 14742 | ; |
| 14743 | return 0; |
| 14744 | } |
| 14745 | _ACEOF |
| 14746 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14748 | (eval $ac_link) 2>conftest.er1 |
| 14749 | ac_status=$? |
| 14750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14751 | rm -f conftest.er1 |
| 14752 | cat conftest.err >&5 |
| 14753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14754 | (exit $ac_status); } && |
| 14755 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14757 | (eval $ac_try) 2>&5 |
| 14758 | ac_status=$? |
| 14759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14760 | (exit $ac_status); }; } && |
| 14761 | { ac_try='test -s conftest$ac_exeext' |
| 14762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14763 | (eval $ac_try) 2>&5 |
| 14764 | ac_status=$? |
| 14765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14766 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14767 | 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] | 14768 | if test "x$ac_cv_lib_soname_Xrandr" = "x" |
| 14769 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14770 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 14771 | fi |
| 14772 | else |
| 14773 | echo "$as_me: failed program was:" >&5 |
| 14774 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14775 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14776 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" |
Mike McCormack | c7c9f93 | 2004-04-07 03:57:35 +0000 | [diff] [blame] | 14777 | fi |
| 14778 | rm -f conftest.err conftest.$ac_objext \ |
| 14779 | conftest$ac_exeext conftest.$ac_ext |
| 14780 | LIBS=$ac_get_soname_save_LIBS |
| 14781 | fi |
| 14782 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5 |
| 14783 | echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6 |
| 14784 | if test "x$ac_cv_lib_soname_Xrandr" != xNONE |
| 14785 | then |
| 14786 | cat >>confdefs.h <<_ACEOF |
| 14787 | #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr" |
| 14788 | _ACEOF |
| 14789 | fi |
| 14790 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14791 | echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 |
| 14792 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6 |
| 14793 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 14794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14795 | else |
| 14796 | ac_get_soname_save_LIBS=$LIBS |
| 14797 | LIBS="-lfreetype $X_LIBS $LIBS" |
| 14798 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14799 | /* confdefs.h. */ |
| 14800 | _ACEOF |
| 14801 | cat confdefs.h >>conftest.$ac_ext |
| 14802 | cat >>conftest.$ac_ext <<_ACEOF |
| 14803 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14804 | |
| 14805 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14806 | #ifdef __cplusplus |
| 14807 | extern "C" |
| 14808 | #endif |
| 14809 | /* We use char because int might match the return type of a gcc2 |
| 14810 | builtin and then its argument prototype would still apply. */ |
| 14811 | char FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14812 | int |
| 14813 | main () |
| 14814 | { |
| 14815 | FT_Init_FreeType (); |
| 14816 | ; |
| 14817 | return 0; |
| 14818 | } |
| 14819 | _ACEOF |
| 14820 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14822 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14823 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14825 | rm -f conftest.er1 |
| 14826 | cat conftest.err >&5 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14828 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14831 | (eval $ac_try) 2>&5 |
| 14832 | ac_status=$? |
| 14833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14834 | (exit $ac_status); }; } && |
| 14835 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14837 | (eval $ac_try) 2>&5 |
| 14838 | ac_status=$? |
| 14839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14840 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14841 | 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] | 14842 | if test "x$ac_cv_lib_soname_freetype" = "x" |
| 14843 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14844 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14845 | fi |
| 14846 | else |
| 14847 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14849 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14850 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14851 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14852 | rm -f conftest.err conftest.$ac_objext \ |
| 14853 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 14854 | LIBS=$ac_get_soname_save_LIBS |
| 14855 | fi |
| 14856 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 |
| 14857 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6 |
| 14858 | if test "x$ac_cv_lib_soname_freetype" != xNONE |
| 14859 | then |
| 14860 | cat >>confdefs.h <<_ACEOF |
| 14861 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 14862 | _ACEOF |
| 14863 | fi |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 14864 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 14865 | echo "$as_me:$LINENO: checking for -lGL soname" >&5 |
| 14866 | echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6 |
| 14867 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 14868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14869 | else |
| 14870 | ac_get_soname_save_LIBS=$LIBS |
| 14871 | LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 14872 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14873 | /* confdefs.h. */ |
| 14874 | _ACEOF |
| 14875 | cat confdefs.h >>conftest.$ac_ext |
| 14876 | cat >>conftest.$ac_ext <<_ACEOF |
| 14877 | /* end confdefs.h. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 14878 | |
| 14879 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14880 | #ifdef __cplusplus |
| 14881 | extern "C" |
| 14882 | #endif |
| 14883 | /* We use char because int might match the return type of a gcc2 |
| 14884 | builtin and then its argument prototype would still apply. */ |
| 14885 | char glXQueryExtension (); |
| 14886 | int |
| 14887 | main () |
| 14888 | { |
| 14889 | glXQueryExtension (); |
| 14890 | ; |
| 14891 | return 0; |
| 14892 | } |
| 14893 | _ACEOF |
| 14894 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14896 | (eval $ac_link) 2>conftest.er1 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 14897 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14899 | rm -f conftest.er1 |
| 14900 | cat conftest.err >&5 |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 14901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14902 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14903 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14905 | (eval $ac_try) 2>&5 |
| 14906 | ac_status=$? |
| 14907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14908 | (exit $ac_status); }; } && |
| 14909 | { ac_try='test -s conftest$ac_exeext' |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 14910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14911 | (eval $ac_try) 2>&5 |
| 14912 | ac_status=$? |
| 14913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14914 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14915 | 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] | 14916 | if test "x$ac_cv_lib_soname_GL" = "x" |
| 14917 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14918 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 14919 | fi |
| 14920 | else |
| 14921 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14923 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 14924 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 14925 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 14926 | rm -f conftest.err conftest.$ac_objext \ |
| 14927 | conftest$ac_exeext conftest.$ac_ext |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 14928 | LIBS=$ac_get_soname_save_LIBS |
| 14929 | fi |
| 14930 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5 |
| 14931 | echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6 |
| 14932 | if test "x$ac_cv_lib_soname_GL" != xNONE |
| 14933 | then |
| 14934 | cat >>confdefs.h <<_ACEOF |
| 14935 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 14936 | _ACEOF |
| 14937 | fi |
| 14938 | |
Christian Costa | eac96b5 | 2004-07-30 18:54:32 +0000 | [diff] [blame] | 14939 | echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5 |
| 14940 | echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6 |
| 14941 | if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then |
| 14942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14943 | else |
| 14944 | ac_get_soname_save_LIBS=$LIBS |
| 14945 | LIBS="-ltxc_dxtn $LIBS" |
| 14946 | cat >conftest.$ac_ext <<_ACEOF |
| 14947 | /* confdefs.h. */ |
| 14948 | _ACEOF |
| 14949 | cat confdefs.h >>conftest.$ac_ext |
| 14950 | cat >>conftest.$ac_ext <<_ACEOF |
| 14951 | /* end confdefs.h. */ |
| 14952 | |
| 14953 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14954 | #ifdef __cplusplus |
| 14955 | extern "C" |
| 14956 | #endif |
| 14957 | /* We use char because int might match the return type of a gcc2 |
| 14958 | builtin and then its argument prototype would still apply. */ |
| 14959 | char fetch_2d_texel_rgba_dxt1 (); |
| 14960 | int |
| 14961 | main () |
| 14962 | { |
| 14963 | fetch_2d_texel_rgba_dxt1 (); |
| 14964 | ; |
| 14965 | return 0; |
| 14966 | } |
| 14967 | _ACEOF |
| 14968 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14970 | (eval $ac_link) 2>conftest.er1 |
| 14971 | ac_status=$? |
| 14972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14973 | rm -f conftest.er1 |
| 14974 | cat conftest.err >&5 |
| 14975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14976 | (exit $ac_status); } && |
| 14977 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 14978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14979 | (eval $ac_try) 2>&5 |
| 14980 | ac_status=$? |
| 14981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14982 | (exit $ac_status); }; } && |
| 14983 | { ac_try='test -s conftest$ac_exeext' |
| 14984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14985 | (eval $ac_try) 2>&5 |
| 14986 | ac_status=$? |
| 14987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14988 | (exit $ac_status); }; }; then |
| 14989 | ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"` |
| 14990 | if test "x$ac_cv_lib_soname_txc_dxtn" = "x" |
| 14991 | then |
| 14992 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
| 14993 | fi |
| 14994 | else |
| 14995 | echo "$as_me: failed program was:" >&5 |
| 14996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14997 | |
| 14998 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
| 14999 | fi |
| 15000 | rm -f conftest.err conftest.$ac_objext \ |
| 15001 | conftest$ac_exeext conftest.$ac_ext |
| 15002 | LIBS=$ac_get_soname_save_LIBS |
| 15003 | fi |
| 15004 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5 |
| 15005 | echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6 |
| 15006 | if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE |
| 15007 | then |
| 15008 | cat >>confdefs.h <<_ACEOF |
| 15009 | #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn" |
| 15010 | _ACEOF |
| 15011 | fi |
| 15012 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15013 | echo "$as_me:$LINENO: checking for -lcups soname" >&5 |
| 15014 | echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6 |
| 15015 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 15016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15017 | else |
| 15018 | ac_get_soname_save_LIBS=$LIBS |
| 15019 | LIBS="-lcups $LIBS" |
| 15020 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15021 | /* confdefs.h. */ |
| 15022 | _ACEOF |
| 15023 | cat confdefs.h >>conftest.$ac_ext |
| 15024 | cat >>conftest.$ac_ext <<_ACEOF |
| 15025 | /* end confdefs.h. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15026 | |
| 15027 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15028 | #ifdef __cplusplus |
| 15029 | extern "C" |
| 15030 | #endif |
| 15031 | /* We use char because int might match the return type of a gcc2 |
| 15032 | builtin and then its argument prototype would still apply. */ |
| 15033 | char cupsGetDefault (); |
| 15034 | int |
| 15035 | main () |
| 15036 | { |
| 15037 | cupsGetDefault (); |
| 15038 | ; |
| 15039 | return 0; |
| 15040 | } |
| 15041 | _ACEOF |
| 15042 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15044 | (eval $ac_link) 2>conftest.er1 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15045 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15047 | rm -f conftest.er1 |
| 15048 | cat conftest.err >&5 |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15050 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15053 | (eval $ac_try) 2>&5 |
| 15054 | ac_status=$? |
| 15055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15056 | (exit $ac_status); }; } && |
| 15057 | { ac_try='test -s conftest$ac_exeext' |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15059 | (eval $ac_try) 2>&5 |
| 15060 | ac_status=$? |
| 15061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15062 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15063 | 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] | 15064 | if test "x$ac_cv_lib_soname_cups" = "x" |
| 15065 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15066 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15067 | fi |
| 15068 | else |
| 15069 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15071 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15072 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15073 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15074 | rm -f conftest.err conftest.$ac_objext \ |
| 15075 | conftest$ac_exeext conftest.$ac_ext |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 15076 | LIBS=$ac_get_soname_save_LIBS |
| 15077 | fi |
| 15078 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5 |
| 15079 | echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6 |
| 15080 | if test "x$ac_cv_lib_soname_cups" != xNONE |
| 15081 | then |
| 15082 | cat >>confdefs.h <<_ACEOF |
| 15083 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 15084 | _ACEOF |
| 15085 | fi |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15086 | |
| 15087 | echo "$as_me:$LINENO: checking for -ljack soname" >&5 |
| 15088 | echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6 |
| 15089 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 15090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15091 | else |
| 15092 | ac_get_soname_save_LIBS=$LIBS |
| 15093 | LIBS="-ljack $LIBS" |
| 15094 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15095 | /* confdefs.h. */ |
| 15096 | _ACEOF |
| 15097 | cat confdefs.h >>conftest.$ac_ext |
| 15098 | cat >>conftest.$ac_ext <<_ACEOF |
| 15099 | /* end confdefs.h. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15100 | |
| 15101 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15102 | #ifdef __cplusplus |
| 15103 | extern "C" |
| 15104 | #endif |
| 15105 | /* We use char because int might match the return type of a gcc2 |
| 15106 | builtin and then its argument prototype would still apply. */ |
| 15107 | char jack_client_new (); |
| 15108 | int |
| 15109 | main () |
| 15110 | { |
| 15111 | jack_client_new (); |
| 15112 | ; |
| 15113 | return 0; |
| 15114 | } |
| 15115 | _ACEOF |
| 15116 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15118 | (eval $ac_link) 2>conftest.er1 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15119 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15121 | rm -f conftest.er1 |
| 15122 | cat conftest.err >&5 |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15124 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15125 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15127 | (eval $ac_try) 2>&5 |
| 15128 | ac_status=$? |
| 15129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15130 | (exit $ac_status); }; } && |
| 15131 | { ac_try='test -s conftest$ac_exeext' |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15133 | (eval $ac_try) 2>&5 |
| 15134 | ac_status=$? |
| 15135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15136 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15137 | 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] | 15138 | if test "x$ac_cv_lib_soname_jack" = "x" |
| 15139 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15140 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15141 | fi |
| 15142 | else |
| 15143 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15145 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15146 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15147 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15148 | rm -f conftest.err conftest.$ac_objext \ |
| 15149 | conftest$ac_exeext conftest.$ac_ext |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15150 | LIBS=$ac_get_soname_save_LIBS |
| 15151 | fi |
| 15152 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5 |
| 15153 | echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6 |
| 15154 | if test "x$ac_cv_lib_soname_jack" != xNONE |
| 15155 | then |
| 15156 | cat >>confdefs.h <<_ACEOF |
| 15157 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
| 15158 | _ACEOF |
| 15159 | fi |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15160 | |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15161 | echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5 |
| 15162 | echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6 |
| 15163 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then |
| 15164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15165 | else |
| 15166 | ac_get_soname_save_LIBS=$LIBS |
| 15167 | LIBS="-lfontconfig $LIBS" |
| 15168 | cat >conftest.$ac_ext <<_ACEOF |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15169 | /* confdefs.h. */ |
| 15170 | _ACEOF |
| 15171 | cat confdefs.h >>conftest.$ac_ext |
| 15172 | cat >>conftest.$ac_ext <<_ACEOF |
| 15173 | /* end confdefs.h. */ |
| 15174 | |
| 15175 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15176 | #ifdef __cplusplus |
| 15177 | extern "C" |
| 15178 | #endif |
| 15179 | /* We use char because int might match the return type of a gcc2 |
| 15180 | builtin and then its argument prototype would still apply. */ |
| 15181 | char FcInit (); |
| 15182 | int |
| 15183 | main () |
| 15184 | { |
| 15185 | FcInit (); |
| 15186 | ; |
| 15187 | return 0; |
| 15188 | } |
| 15189 | _ACEOF |
| 15190 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15192 | (eval $ac_link) 2>conftest.er1 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15193 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15195 | rm -f conftest.er1 |
| 15196 | cat conftest.err >&5 |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15198 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15199 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15201 | (eval $ac_try) 2>&5 |
| 15202 | ac_status=$? |
| 15203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15204 | (exit $ac_status); }; } && |
| 15205 | { ac_try='test -s conftest$ac_exeext' |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15207 | (eval $ac_try) 2>&5 |
| 15208 | ac_status=$? |
| 15209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15210 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15211 | 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] | 15212 | if test "x$ac_cv_lib_soname_fontconfig" = "x" |
| 15213 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15214 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15215 | fi |
| 15216 | else |
| 15217 | echo "$as_me: failed program was:" >&5 |
| 15218 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15219 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15220 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15221 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15222 | rm -f conftest.err conftest.$ac_objext \ |
| 15223 | conftest$ac_exeext conftest.$ac_ext |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15224 | LIBS=$ac_get_soname_save_LIBS |
| 15225 | fi |
| 15226 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5 |
| 15227 | echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6 |
| 15228 | if test "x$ac_cv_lib_soname_fontconfig" != xNONE |
| 15229 | then |
| 15230 | cat >>confdefs.h <<_ACEOF |
| 15231 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
| 15232 | _ACEOF |
Alexandre Julliard | 7999469 | 2003-11-13 20:58:55 +0000 | [diff] [blame] | 15233 | fi |
Huw Davies | 6e12807 | 2003-11-09 00:30:13 +0000 | [diff] [blame] | 15234 | |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15235 | echo "$as_me:$LINENO: checking for -lssl soname" >&5 |
| 15236 | echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6 |
| 15237 | if test "${ac_cv_lib_soname_ssl+set}" = set; then |
| 15238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15239 | else |
| 15240 | ac_get_soname_save_LIBS=$LIBS |
| 15241 | LIBS="-lssl $LIBS" |
| 15242 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15243 | /* confdefs.h. */ |
| 15244 | _ACEOF |
| 15245 | cat confdefs.h >>conftest.$ac_ext |
| 15246 | cat >>conftest.$ac_ext <<_ACEOF |
| 15247 | /* end confdefs.h. */ |
| 15248 | |
| 15249 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15250 | #ifdef __cplusplus |
| 15251 | extern "C" |
| 15252 | #endif |
| 15253 | /* We use char because int might match the return type of a gcc2 |
| 15254 | builtin and then its argument prototype would still apply. */ |
| 15255 | char SSL_library_init (); |
| 15256 | int |
| 15257 | main () |
| 15258 | { |
| 15259 | SSL_library_init (); |
| 15260 | ; |
| 15261 | return 0; |
| 15262 | } |
| 15263 | _ACEOF |
| 15264 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15266 | (eval $ac_link) 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15267 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15269 | rm -f conftest.er1 |
| 15270 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15272 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15275 | (eval $ac_try) 2>&5 |
| 15276 | ac_status=$? |
| 15277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15278 | (exit $ac_status); }; } && |
| 15279 | { ac_try='test -s conftest$ac_exeext' |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15281 | (eval $ac_try) 2>&5 |
| 15282 | ac_status=$? |
| 15283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15284 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15285 | 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] | 15286 | if test "x$ac_cv_lib_soname_ssl" = "x" |
| 15287 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15288 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15289 | fi |
| 15290 | else |
| 15291 | echo "$as_me: failed program was:" >&5 |
| 15292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15293 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15294 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15295 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15296 | rm -f conftest.err conftest.$ac_objext \ |
| 15297 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15298 | LIBS=$ac_get_soname_save_LIBS |
| 15299 | fi |
| 15300 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5 |
| 15301 | echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6 |
| 15302 | if test "x$ac_cv_lib_soname_ssl" != xNONE |
| 15303 | then |
| 15304 | cat >>confdefs.h <<_ACEOF |
| 15305 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
| 15306 | _ACEOF |
| 15307 | fi |
| 15308 | |
| 15309 | echo "$as_me:$LINENO: checking for -lcrypto soname" >&5 |
| 15310 | echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6 |
| 15311 | if test "${ac_cv_lib_soname_crypto+set}" = set; then |
| 15312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15313 | else |
| 15314 | ac_get_soname_save_LIBS=$LIBS |
| 15315 | LIBS="-lcrypto $LIBS" |
| 15316 | cat >conftest.$ac_ext <<_ACEOF |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15317 | /* confdefs.h. */ |
| 15318 | _ACEOF |
| 15319 | cat confdefs.h >>conftest.$ac_ext |
| 15320 | cat >>conftest.$ac_ext <<_ACEOF |
| 15321 | /* end confdefs.h. */ |
| 15322 | |
| 15323 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15324 | #ifdef __cplusplus |
| 15325 | extern "C" |
| 15326 | #endif |
| 15327 | /* We use char because int might match the return type of a gcc2 |
| 15328 | builtin and then its argument prototype would still apply. */ |
| 15329 | char BIO_new_socket (); |
| 15330 | int |
| 15331 | main () |
| 15332 | { |
| 15333 | BIO_new_socket (); |
| 15334 | ; |
| 15335 | return 0; |
| 15336 | } |
| 15337 | _ACEOF |
| 15338 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15340 | (eval $ac_link) 2>conftest.er1 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15341 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15343 | rm -f conftest.er1 |
| 15344 | cat conftest.err >&5 |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15346 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15347 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15349 | (eval $ac_try) 2>&5 |
| 15350 | ac_status=$? |
| 15351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15352 | (exit $ac_status); }; } && |
| 15353 | { ac_try='test -s conftest$ac_exeext' |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15355 | (eval $ac_try) 2>&5 |
| 15356 | ac_status=$? |
| 15357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15358 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15359 | 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] | 15360 | if test "x$ac_cv_lib_soname_crypto" = "x" |
| 15361 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15362 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15363 | fi |
| 15364 | else |
| 15365 | echo "$as_me: failed program was:" >&5 |
| 15366 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15367 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15368 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15369 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15370 | rm -f conftest.err conftest.$ac_objext \ |
| 15371 | conftest$ac_exeext conftest.$ac_ext |
David Hammerton | 852c7ae | 2003-06-20 23:26:56 +0000 | [diff] [blame] | 15372 | LIBS=$ac_get_soname_save_LIBS |
| 15373 | fi |
| 15374 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5 |
| 15375 | echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6 |
| 15376 | if test "x$ac_cv_lib_soname_crypto" != xNONE |
| 15377 | then |
| 15378 | cat >>confdefs.h <<_ACEOF |
| 15379 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
| 15380 | _ACEOF |
| 15381 | fi |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15382 | |
| 15383 | echo "$as_me:$LINENO: checking for -lncurses soname" >&5 |
| 15384 | echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6 |
| 15385 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then |
| 15386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15387 | else |
| 15388 | ac_get_soname_save_LIBS=$LIBS |
| 15389 | LIBS="-lncurses $LIBS" |
| 15390 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15391 | /* confdefs.h. */ |
| 15392 | _ACEOF |
| 15393 | cat confdefs.h >>conftest.$ac_ext |
| 15394 | cat >>conftest.$ac_ext <<_ACEOF |
| 15395 | /* end confdefs.h. */ |
| 15396 | |
| 15397 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15398 | #ifdef __cplusplus |
| 15399 | extern "C" |
| 15400 | #endif |
| 15401 | /* We use char because int might match the return type of a gcc2 |
| 15402 | builtin and then its argument prototype would still apply. */ |
| 15403 | char waddch (); |
| 15404 | int |
| 15405 | main () |
| 15406 | { |
| 15407 | waddch (); |
| 15408 | ; |
| 15409 | return 0; |
| 15410 | } |
| 15411 | _ACEOF |
| 15412 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15414 | (eval $ac_link) 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15415 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15416 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15417 | rm -f conftest.er1 |
| 15418 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15420 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15423 | (eval $ac_try) 2>&5 |
| 15424 | ac_status=$? |
| 15425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15426 | (exit $ac_status); }; } && |
| 15427 | { ac_try='test -s conftest$ac_exeext' |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15429 | (eval $ac_try) 2>&5 |
| 15430 | ac_status=$? |
| 15431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15432 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15433 | 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] | 15434 | if test "x$ac_cv_lib_soname_ncurses" = "x" |
| 15435 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15436 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15437 | fi |
| 15438 | else |
| 15439 | echo "$as_me: failed program was:" >&5 |
| 15440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15441 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15442 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15443 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15444 | rm -f conftest.err conftest.$ac_objext \ |
| 15445 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15446 | LIBS=$ac_get_soname_save_LIBS |
| 15447 | fi |
| 15448 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5 |
| 15449 | echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6 |
| 15450 | if test "x$ac_cv_lib_soname_ncurses" != xNONE |
| 15451 | then |
| 15452 | cat >>confdefs.h <<_ACEOF |
| 15453 | #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" |
| 15454 | _ACEOF |
| 15455 | fi |
| 15456 | |
| 15457 | echo "$as_me:$LINENO: checking for -lcurses soname" >&5 |
| 15458 | echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6 |
| 15459 | if test "${ac_cv_lib_soname_curses+set}" = set; then |
| 15460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15461 | else |
| 15462 | ac_get_soname_save_LIBS=$LIBS |
| 15463 | LIBS="-lcurses $LIBS" |
| 15464 | cat >conftest.$ac_ext <<_ACEOF |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15465 | /* confdefs.h. */ |
| 15466 | _ACEOF |
| 15467 | cat confdefs.h >>conftest.$ac_ext |
| 15468 | cat >>conftest.$ac_ext <<_ACEOF |
| 15469 | /* end confdefs.h. */ |
| 15470 | |
| 15471 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15472 | #ifdef __cplusplus |
| 15473 | extern "C" |
| 15474 | #endif |
| 15475 | /* We use char because int might match the return type of a gcc2 |
| 15476 | builtin and then its argument prototype would still apply. */ |
| 15477 | char waddch (); |
| 15478 | int |
| 15479 | main () |
| 15480 | { |
| 15481 | waddch (); |
| 15482 | ; |
| 15483 | return 0; |
| 15484 | } |
| 15485 | _ACEOF |
| 15486 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15488 | (eval $ac_link) 2>conftest.er1 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15489 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15491 | rm -f conftest.er1 |
| 15492 | cat conftest.err >&5 |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15494 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15495 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15497 | (eval $ac_try) 2>&5 |
| 15498 | ac_status=$? |
| 15499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15500 | (exit $ac_status); }; } && |
| 15501 | { ac_try='test -s conftest$ac_exeext' |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15503 | (eval $ac_try) 2>&5 |
| 15504 | ac_status=$? |
| 15505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15506 | (exit $ac_status); }; }; then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15507 | 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] | 15508 | if test "x$ac_cv_lib_soname_curses" = "x" |
| 15509 | then |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15510 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15511 | fi |
| 15512 | else |
| 15513 | echo "$as_me: failed program was:" >&5 |
| 15514 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15515 | |
Pierre d'Herbemont | 197b5e3 | 2004-06-14 19:34:42 +0000 | [diff] [blame] | 15516 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15517 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15518 | rm -f conftest.err conftest.$ac_objext \ |
| 15519 | conftest$ac_exeext conftest.$ac_ext |
Mike McCormack | 9557d1b | 2003-08-20 04:19:01 +0000 | [diff] [blame] | 15520 | LIBS=$ac_get_soname_save_LIBS |
| 15521 | fi |
| 15522 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5 |
| 15523 | echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6 |
| 15524 | if test "x$ac_cv_lib_soname_curses" != xNONE |
| 15525 | then |
| 15526 | cat >>confdefs.h <<_ACEOF |
| 15527 | #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" |
| 15528 | _ACEOF |
| 15529 | fi |
Huw Davies | e82dfab | 2004-08-04 19:10:26 +0000 | [diff] [blame] | 15530 | |
| 15531 | echo "$as_me:$LINENO: checking for -ljpeg soname" >&5 |
| 15532 | echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6 |
| 15533 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then |
| 15534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15535 | else |
| 15536 | ac_get_soname_save_LIBS=$LIBS |
| 15537 | LIBS="-ljpeg $LIBS" |
| 15538 | cat >conftest.$ac_ext <<_ACEOF |
| 15539 | /* confdefs.h. */ |
| 15540 | _ACEOF |
| 15541 | cat confdefs.h >>conftest.$ac_ext |
| 15542 | cat >>conftest.$ac_ext <<_ACEOF |
| 15543 | /* end confdefs.h. */ |
| 15544 | |
| 15545 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15546 | #ifdef __cplusplus |
| 15547 | extern "C" |
| 15548 | #endif |
| 15549 | /* We use char because int might match the return type of a gcc2 |
| 15550 | builtin and then its argument prototype would still apply. */ |
| 15551 | char jpeg_start_decompress (); |
| 15552 | int |
| 15553 | main () |
| 15554 | { |
| 15555 | jpeg_start_decompress (); |
| 15556 | ; |
| 15557 | return 0; |
| 15558 | } |
| 15559 | _ACEOF |
| 15560 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15562 | (eval $ac_link) 2>conftest.er1 |
| 15563 | ac_status=$? |
| 15564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15565 | rm -f conftest.er1 |
| 15566 | cat conftest.err >&5 |
| 15567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15568 | (exit $ac_status); } && |
| 15569 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15571 | (eval $ac_try) 2>&5 |
| 15572 | ac_status=$? |
| 15573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15574 | (exit $ac_status); }; } && |
| 15575 | { ac_try='test -s conftest$ac_exeext' |
| 15576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15577 | (eval $ac_try) 2>&5 |
| 15578 | ac_status=$? |
| 15579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15580 | (exit $ac_status); }; }; then |
| 15581 | ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"` |
| 15582 | if test "x$ac_cv_lib_soname_jpeg" = "x" |
| 15583 | then |
| 15584 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
| 15585 | fi |
| 15586 | else |
| 15587 | echo "$as_me: failed program was:" >&5 |
| 15588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15589 | |
| 15590 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
| 15591 | fi |
| 15592 | rm -f conftest.err conftest.$ac_objext \ |
| 15593 | conftest$ac_exeext conftest.$ac_ext |
| 15594 | LIBS=$ac_get_soname_save_LIBS |
| 15595 | fi |
| 15596 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5 |
| 15597 | echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6 |
| 15598 | if test "x$ac_cv_lib_soname_jpeg" != xNONE |
| 15599 | then |
| 15600 | cat >>confdefs.h <<_ACEOF |
| 15601 | #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg" |
| 15602 | _ACEOF |
| 15603 | fi |
| 15604 | |
| 15605 | echo "$as_me:$LINENO: checking for -lungif soname" >&5 |
| 15606 | echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6 |
| 15607 | if test "${ac_cv_lib_soname_ungif+set}" = set; then |
| 15608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15609 | else |
| 15610 | ac_get_soname_save_LIBS=$LIBS |
| 15611 | LIBS="-lungif $LIBS" |
| 15612 | cat >conftest.$ac_ext <<_ACEOF |
| 15613 | /* confdefs.h. */ |
| 15614 | _ACEOF |
| 15615 | cat confdefs.h >>conftest.$ac_ext |
| 15616 | cat >>conftest.$ac_ext <<_ACEOF |
| 15617 | /* end confdefs.h. */ |
| 15618 | |
| 15619 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15620 | #ifdef __cplusplus |
| 15621 | extern "C" |
| 15622 | #endif |
| 15623 | /* We use char because int might match the return type of a gcc2 |
| 15624 | builtin and then its argument prototype would still apply. */ |
| 15625 | char DGifOpen (); |
| 15626 | int |
| 15627 | main () |
| 15628 | { |
| 15629 | DGifOpen (); |
| 15630 | ; |
| 15631 | return 0; |
| 15632 | } |
| 15633 | _ACEOF |
| 15634 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15636 | (eval $ac_link) 2>conftest.er1 |
| 15637 | ac_status=$? |
| 15638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15639 | rm -f conftest.er1 |
| 15640 | cat conftest.err >&5 |
| 15641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15642 | (exit $ac_status); } && |
| 15643 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15645 | (eval $ac_try) 2>&5 |
| 15646 | ac_status=$? |
| 15647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15648 | (exit $ac_status); }; } && |
| 15649 | { ac_try='test -s conftest$ac_exeext' |
| 15650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15651 | (eval $ac_try) 2>&5 |
| 15652 | ac_status=$? |
| 15653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15654 | (exit $ac_status); }; }; then |
| 15655 | ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"` |
| 15656 | if test "x$ac_cv_lib_soname_ungif" = "x" |
| 15657 | then |
| 15658 | ac_cv_lib_soname_ungif="libungif.$LIBEXT" |
| 15659 | fi |
| 15660 | else |
| 15661 | echo "$as_me: failed program was:" >&5 |
| 15662 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15663 | |
| 15664 | ac_cv_lib_soname_ungif="libungif.$LIBEXT" |
| 15665 | fi |
| 15666 | rm -f conftest.err conftest.$ac_objext \ |
| 15667 | conftest$ac_exeext conftest.$ac_ext |
| 15668 | LIBS=$ac_get_soname_save_LIBS |
| 15669 | fi |
| 15670 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5 |
| 15671 | echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6 |
| 15672 | if test "x$ac_cv_lib_soname_ungif" != xNONE |
| 15673 | then |
| 15674 | cat >>confdefs.h <<_ACEOF |
| 15675 | #define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif" |
| 15676 | _ACEOF |
| 15677 | fi |
Marcus Meissner | 00cf13a | 2004-09-14 19:27:58 +0000 | [diff] [blame] | 15678 | |
| 15679 | echo "$as_me:$LINENO: checking for -lgif soname" >&5 |
| 15680 | echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6 |
| 15681 | if test "${ac_cv_lib_soname_gif+set}" = set; then |
| 15682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15683 | else |
| 15684 | ac_get_soname_save_LIBS=$LIBS |
| 15685 | LIBS="-lgif $LIBS" |
| 15686 | cat >conftest.$ac_ext <<_ACEOF |
| 15687 | /* confdefs.h. */ |
| 15688 | _ACEOF |
| 15689 | cat confdefs.h >>conftest.$ac_ext |
| 15690 | cat >>conftest.$ac_ext <<_ACEOF |
| 15691 | /* end confdefs.h. */ |
| 15692 | |
| 15693 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15694 | #ifdef __cplusplus |
| 15695 | extern "C" |
| 15696 | #endif |
| 15697 | /* We use char because int might match the return type of a gcc2 |
| 15698 | builtin and then its argument prototype would still apply. */ |
| 15699 | char DGifOpen (); |
| 15700 | int |
| 15701 | main () |
| 15702 | { |
| 15703 | DGifOpen (); |
| 15704 | ; |
| 15705 | return 0; |
| 15706 | } |
| 15707 | _ACEOF |
| 15708 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15710 | (eval $ac_link) 2>conftest.er1 |
| 15711 | ac_status=$? |
| 15712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15713 | rm -f conftest.er1 |
| 15714 | cat conftest.err >&5 |
| 15715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15716 | (exit $ac_status); } && |
| 15717 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15719 | (eval $ac_try) 2>&5 |
| 15720 | ac_status=$? |
| 15721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15722 | (exit $ac_status); }; } && |
| 15723 | { ac_try='test -s conftest$ac_exeext' |
| 15724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15725 | (eval $ac_try) 2>&5 |
| 15726 | ac_status=$? |
| 15727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15728 | (exit $ac_status); }; }; then |
| 15729 | ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"` |
| 15730 | if test "x$ac_cv_lib_soname_gif" = "x" |
| 15731 | then |
| 15732 | ac_cv_lib_soname_gif="libgif.$LIBEXT" |
| 15733 | fi |
| 15734 | else |
| 15735 | echo "$as_me: failed program was:" >&5 |
| 15736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15737 | |
| 15738 | ac_cv_lib_soname_gif="libgif.$LIBEXT" |
| 15739 | fi |
| 15740 | rm -f conftest.err conftest.$ac_objext \ |
| 15741 | conftest$ac_exeext conftest.$ac_ext |
| 15742 | LIBS=$ac_get_soname_save_LIBS |
| 15743 | fi |
| 15744 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5 |
| 15745 | echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6 |
| 15746 | if test "x$ac_cv_lib_soname_gif" != xNONE |
| 15747 | then |
| 15748 | cat >>confdefs.h <<_ACEOF |
| 15749 | #define SONAME_LIBGIF "$ac_cv_lib_soname_gif" |
| 15750 | _ACEOF |
| 15751 | fi |
Hans Leidekker | 081b250 | 2004-10-07 19:12:41 +0000 | [diff] [blame] | 15752 | |
| 15753 | echo "$as_me:$LINENO: checking for -llcms soname" >&5 |
| 15754 | echo $ECHO_N "checking for -llcms soname... $ECHO_C" >&6 |
| 15755 | if test "${ac_cv_lib_soname_lcms+set}" = set; then |
| 15756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15757 | else |
| 15758 | ac_get_soname_save_LIBS=$LIBS |
| 15759 | LIBS="-llcms $LIBS" |
| 15760 | cat >conftest.$ac_ext <<_ACEOF |
| 15761 | /* confdefs.h. */ |
| 15762 | _ACEOF |
| 15763 | cat confdefs.h >>conftest.$ac_ext |
| 15764 | cat >>conftest.$ac_ext <<_ACEOF |
| 15765 | /* end confdefs.h. */ |
| 15766 | |
| 15767 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15768 | #ifdef __cplusplus |
| 15769 | extern "C" |
| 15770 | #endif |
| 15771 | /* We use char because int might match the return type of a gcc2 |
| 15772 | builtin and then its argument prototype would still apply. */ |
| 15773 | char cmsOpenProfileFromFile (); |
| 15774 | int |
| 15775 | main () |
| 15776 | { |
| 15777 | cmsOpenProfileFromFile (); |
| 15778 | ; |
| 15779 | return 0; |
| 15780 | } |
| 15781 | _ACEOF |
| 15782 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15784 | (eval $ac_link) 2>conftest.er1 |
| 15785 | ac_status=$? |
| 15786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15787 | rm -f conftest.er1 |
| 15788 | cat conftest.err >&5 |
| 15789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15790 | (exit $ac_status); } && |
| 15791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15793 | (eval $ac_try) 2>&5 |
| 15794 | ac_status=$? |
| 15795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15796 | (exit $ac_status); }; } && |
| 15797 | { ac_try='test -s conftest$ac_exeext' |
| 15798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15799 | (eval $ac_try) 2>&5 |
| 15800 | ac_status=$? |
| 15801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15802 | (exit $ac_status); }; }; then |
| 15803 | ac_cv_lib_soname_lcms=`$ac_cv_path_LDD conftest$ac_exeext | grep liblcms\\.$LIBEXT | sed "s/^.*\(liblcms\.$LIBEXT[^ ]*\).*$/\1/"` |
| 15804 | if test "x$ac_cv_lib_soname_lcms" = "x" |
| 15805 | then |
| 15806 | ac_cv_lib_soname_lcms="liblcms.$LIBEXT" |
| 15807 | fi |
| 15808 | else |
| 15809 | echo "$as_me: failed program was:" >&5 |
| 15810 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15811 | |
| 15812 | ac_cv_lib_soname_lcms="liblcms.$LIBEXT" |
| 15813 | fi |
| 15814 | rm -f conftest.err conftest.$ac_objext \ |
| 15815 | conftest$ac_exeext conftest.$ac_ext |
| 15816 | LIBS=$ac_get_soname_save_LIBS |
| 15817 | fi |
| 15818 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_lcms" >&5 |
| 15819 | echo "${ECHO_T}$ac_cv_lib_soname_lcms" >&6 |
| 15820 | if test "x$ac_cv_lib_soname_lcms" != xNONE |
| 15821 | then |
| 15822 | cat >>confdefs.h <<_ACEOF |
| 15823 | #define SONAME_LIBLCMS "$ac_cv_lib_soname_lcms" |
| 15824 | _ACEOF |
| 15825 | fi |
Marcus Meissner | 67d3afb | 2005-01-07 15:33:02 +0000 | [diff] [blame] | 15826 | |
| 15827 | echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5 |
| 15828 | echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6 |
| 15829 | if test "${ac_cv_lib_soname_capi20+set}" = set; then |
| 15830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15831 | else |
| 15832 | ac_get_soname_save_LIBS=$LIBS |
| 15833 | LIBS="-lcapi20 $LIBS" |
| 15834 | cat >conftest.$ac_ext <<_ACEOF |
| 15835 | /* confdefs.h. */ |
| 15836 | _ACEOF |
| 15837 | cat confdefs.h >>conftest.$ac_ext |
| 15838 | cat >>conftest.$ac_ext <<_ACEOF |
| 15839 | /* end confdefs.h. */ |
| 15840 | |
| 15841 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15842 | #ifdef __cplusplus |
| 15843 | extern "C" |
| 15844 | #endif |
| 15845 | /* We use char because int might match the return type of a gcc2 |
| 15846 | builtin and then its argument prototype would still apply. */ |
| 15847 | char capi20_isinstalled (); |
| 15848 | int |
| 15849 | main () |
| 15850 | { |
| 15851 | capi20_isinstalled (); |
| 15852 | ; |
| 15853 | return 0; |
| 15854 | } |
| 15855 | _ACEOF |
| 15856 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15858 | (eval $ac_link) 2>conftest.er1 |
| 15859 | ac_status=$? |
| 15860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15861 | rm -f conftest.er1 |
| 15862 | cat conftest.err >&5 |
| 15863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15864 | (exit $ac_status); } && |
| 15865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15867 | (eval $ac_try) 2>&5 |
| 15868 | ac_status=$? |
| 15869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15870 | (exit $ac_status); }; } && |
| 15871 | { ac_try='test -s conftest$ac_exeext' |
| 15872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15873 | (eval $ac_try) 2>&5 |
| 15874 | ac_status=$? |
| 15875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15876 | (exit $ac_status); }; }; then |
| 15877 | ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"` |
| 15878 | if test "x$ac_cv_lib_soname_capi20" = "x" |
| 15879 | then |
| 15880 | ac_cv_lib_soname_capi20="libcapi20.$LIBEXT" |
| 15881 | fi |
| 15882 | else |
| 15883 | echo "$as_me: failed program was:" >&5 |
| 15884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15885 | |
| 15886 | ac_cv_lib_soname_capi20="libcapi20.$LIBEXT" |
| 15887 | fi |
| 15888 | rm -f conftest.err conftest.$ac_objext \ |
| 15889 | conftest$ac_exeext conftest.$ac_ext |
| 15890 | LIBS=$ac_get_soname_save_LIBS |
| 15891 | fi |
| 15892 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5 |
| 15893 | echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6 |
| 15894 | if test "x$ac_cv_lib_soname_capi20" != xNONE |
| 15895 | then |
| 15896 | cat >>confdefs.h <<_ACEOF |
| 15897 | #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20" |
| 15898 | _ACEOF |
| 15899 | fi |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 15900 | fi |
| 15901 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15902 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 15903 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15904 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 15905 | # for constant arguments. Useless! |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15906 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15907 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 15908 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 15909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15910 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15911 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15912 | /* confdefs.h. */ |
| 15913 | _ACEOF |
| 15914 | cat confdefs.h >>conftest.$ac_ext |
| 15915 | cat >>conftest.$ac_ext <<_ACEOF |
| 15916 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15917 | #include <alloca.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15918 | int |
| 15919 | main () |
| 15920 | { |
| 15921 | char *p = (char *) alloca (2 * sizeof (int)); |
| 15922 | ; |
| 15923 | return 0; |
| 15924 | } |
| 15925 | _ACEOF |
| 15926 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15928 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15929 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15931 | rm -f conftest.er1 |
| 15932 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15934 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15935 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 15936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15937 | (eval $ac_try) 2>&5 |
| 15938 | ac_status=$? |
| 15939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15940 | (exit $ac_status); }; } && |
| 15941 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15943 | (eval $ac_try) 2>&5 |
| 15944 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15946 | (exit $ac_status); }; }; then |
| 15947 | ac_cv_working_alloca_h=yes |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15948 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15949 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15951 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15952 | ac_cv_working_alloca_h=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15953 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 15954 | rm -f conftest.err conftest.$ac_objext \ |
| 15955 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15956 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15957 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15958 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 15959 | if test $ac_cv_working_alloca_h = yes; then |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 15960 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15961 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15962 | #define HAVE_ALLOCA_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15963 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15964 | |
| 15965 | fi |
| 15966 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15967 | echo "$as_me:$LINENO: checking for alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15968 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 15969 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 15970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15971 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15972 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15973 | /* confdefs.h. */ |
| 15974 | _ACEOF |
| 15975 | cat confdefs.h >>conftest.$ac_ext |
| 15976 | cat >>conftest.$ac_ext <<_ACEOF |
| 15977 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15978 | #ifdef __GNUC__ |
| 15979 | # define alloca __builtin_alloca |
| 15980 | #else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 15981 | # ifdef _MSC_VER |
| 15982 | # include <malloc.h> |
| 15983 | # define alloca _alloca |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15984 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 15985 | # if HAVE_ALLOCA_H |
| 15986 | # include <alloca.h> |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15987 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 15988 | # ifdef _AIX |
| 15989 | #pragma alloca |
| 15990 | # else |
| 15991 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15992 | char *alloca (); |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 15993 | # endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 15994 | # endif |
| 15995 | # endif |
| 15996 | # endif |
| 15997 | #endif |
| 15998 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15999 | int |
| 16000 | main () |
| 16001 | { |
| 16002 | char *p = (char *) alloca (1); |
| 16003 | ; |
| 16004 | return 0; |
| 16005 | } |
| 16006 | _ACEOF |
| 16007 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16009 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16010 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16012 | rm -f conftest.er1 |
| 16013 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16015 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16016 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16018 | (eval $ac_try) 2>&5 |
| 16019 | ac_status=$? |
| 16020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16021 | (exit $ac_status); }; } && |
| 16022 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16024 | (eval $ac_try) 2>&5 |
| 16025 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16027 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16028 | ac_cv_func_alloca_works=yes |
| 16029 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16030 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16031 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16032 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16033 | ac_cv_func_alloca_works=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16034 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16035 | rm -f conftest.err conftest.$ac_objext \ |
| 16036 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16037 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16038 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16039 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16040 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16041 | if test $ac_cv_func_alloca_works = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16042 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16043 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16044 | #define HAVE_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16045 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16046 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16047 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16048 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16049 | # that cause trouble. Some versions do not even contain alloca or |
| 16050 | # contain a buggy version. If you still want to use their alloca, |
| 16051 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 16052 | |
| 16053 | ALLOCA=alloca.$ac_objext |
| 16054 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16055 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16056 | #define C_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16057 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16058 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16059 | |
| 16060 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16061 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 16062 | if test "${ac_cv_os_cray+set}" = set; then |
| 16063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16064 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16065 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16066 | /* confdefs.h. */ |
| 16067 | _ACEOF |
| 16068 | cat confdefs.h >>conftest.$ac_ext |
| 16069 | cat >>conftest.$ac_ext <<_ACEOF |
| 16070 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16071 | #if defined(CRAY) && ! defined(CRAY2) |
| 16072 | webecray |
| 16073 | #else |
| 16074 | wenotbecray |
| 16075 | #endif |
| 16076 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16077 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16078 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16079 | $EGREP "webecray" >/dev/null 2>&1; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16080 | ac_cv_os_cray=yes |
| 16081 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16082 | ac_cv_os_cray=no |
| 16083 | fi |
| 16084 | rm -f conftest* |
| 16085 | |
| 16086 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16087 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16088 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16089 | if test $ac_cv_os_cray = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16090 | for ac_func in _getb67 GETB67 getb67; do |
| 16091 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16092 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16093 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16094 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16096 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16097 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16098 | /* confdefs.h. */ |
| 16099 | _ACEOF |
| 16100 | cat confdefs.h >>conftest.$ac_ext |
| 16101 | cat >>conftest.$ac_ext <<_ACEOF |
| 16102 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16103 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16104 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16105 | #define $ac_func innocuous_$ac_func |
| 16106 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16107 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16108 | which can conflict with char $ac_func (); below. |
| 16109 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16110 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16111 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16112 | #ifdef __STDC__ |
| 16113 | # include <limits.h> |
| 16114 | #else |
| 16115 | # include <assert.h> |
| 16116 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16117 | |
| 16118 | #undef $ac_func |
| 16119 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16120 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16121 | #ifdef __cplusplus |
| 16122 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16123 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16124 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 16125 | /* 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] | 16126 | builtin and then its argument prototype would still apply. */ |
| 16127 | char $ac_func (); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16128 | /* The GNU C library defines this for functions which it implements |
| 16129 | to always fail with ENOSYS. Some functions are actually named |
| 16130 | something starting with __ and the normal name is an alias. */ |
| 16131 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16132 | choke me |
| 16133 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16134 | char (*f) () = $ac_func; |
| 16135 | #endif |
| 16136 | #ifdef __cplusplus |
| 16137 | } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16138 | #endif |
| 16139 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16140 | int |
| 16141 | main () |
| 16142 | { |
| 16143 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16144 | ; |
| 16145 | return 0; |
| 16146 | } |
| 16147 | _ACEOF |
| 16148 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16150 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16151 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16152 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16153 | rm -f conftest.er1 |
| 16154 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16156 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16157 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16159 | (eval $ac_try) 2>&5 |
| 16160 | ac_status=$? |
| 16161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16162 | (exit $ac_status); }; } && |
| 16163 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16165 | (eval $ac_try) 2>&5 |
| 16166 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16168 | (exit $ac_status); }; }; then |
| 16169 | eval "$as_ac_var=yes" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16170 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16171 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16173 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16174 | eval "$as_ac_var=no" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16175 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16176 | rm -f conftest.err conftest.$ac_objext \ |
| 16177 | conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16178 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16179 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16180 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16181 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16182 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16183 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16184 | #define CRAY_STACKSEG_END $ac_func |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16185 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16186 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16187 | break |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16188 | fi |
| 16189 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16190 | done |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16191 | fi |
| 16192 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16193 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16194 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 16195 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 16196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16197 | else |
| 16198 | if test "$cross_compiling" = yes; then |
| 16199 | ac_cv_c_stack_direction=0 |
| 16200 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16201 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16202 | /* confdefs.h. */ |
| 16203 | _ACEOF |
| 16204 | cat confdefs.h >>conftest.$ac_ext |
| 16205 | cat >>conftest.$ac_ext <<_ACEOF |
| 16206 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16207 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16208 | find_stack_direction () |
| 16209 | { |
| 16210 | static char *addr = 0; |
| 16211 | auto char dummy; |
| 16212 | if (addr == 0) |
| 16213 | { |
| 16214 | addr = &dummy; |
| 16215 | return find_stack_direction (); |
| 16216 | } |
| 16217 | else |
| 16218 | return (&dummy > addr) ? 1 : -1; |
| 16219 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16220 | |
| 16221 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16222 | main () |
| 16223 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16224 | exit (find_stack_direction () < 0); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16225 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16226 | _ACEOF |
| 16227 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16229 | (eval $ac_link) 2>&5 |
| 16230 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16232 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16234 | (eval $ac_try) 2>&5 |
| 16235 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16237 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16238 | ac_cv_c_stack_direction=1 |
| 16239 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16240 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16241 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16243 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16244 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16245 | ac_cv_c_stack_direction=-1 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16246 | fi |
Alexandre Julliard | 80e34db | 2003-09-03 00:26:08 +0000 | [diff] [blame] | 16247 | 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] | 16248 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16249 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16250 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16251 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16252 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16253 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16254 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16255 | _ACEOF |
| 16256 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16257 | |
| 16258 | fi |
| 16259 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16260 | |
| 16261 | |
| 16262 | |
| 16263 | |
| 16264 | |
| 16265 | |
| 16266 | |
| 16267 | |
| 16268 | |
| 16269 | |
| 16270 | |
| 16271 | |
| 16272 | |
| 16273 | |
| 16274 | |
| 16275 | |
| 16276 | |
| 16277 | |
| 16278 | |
| 16279 | |
| 16280 | |
| 16281 | |
| 16282 | |
| 16283 | |
| 16284 | |
| 16285 | |
| 16286 | |
| 16287 | |
| 16288 | |
| 16289 | |
| 16290 | |
| 16291 | |
| 16292 | |
| 16293 | |
| 16294 | |
| 16295 | |
| 16296 | |
| 16297 | |
| 16298 | |
| 16299 | |
| 16300 | |
| 16301 | |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 16302 | |
| 16303 | |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 16304 | |
| 16305 | |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 16306 | |
Patrik Stridvall | 6caeb72 | 2002-11-25 21:12:26 +0000 | [diff] [blame] | 16307 | |
| 16308 | |
| 16309 | |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 16310 | |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 16311 | |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 16312 | |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 16313 | |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 16314 | |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 16315 | |
| 16316 | |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 16317 | |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 16318 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16319 | for ac_func in \ |
| 16320 | _lwp_create \ |
Alexandre Julliard | 6f7a204 | 2003-04-01 04:39:35 +0000 | [diff] [blame] | 16321 | _lwp_self \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16322 | _pclose \ |
| 16323 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 16324 | _snprintf \ |
Alexandre Julliard | c45bbad | 2003-04-01 00:12:02 +0000 | [diff] [blame] | 16325 | _spawnvp \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16326 | _stricmp \ |
| 16327 | _strnicmp \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 16328 | _vsnprintf \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 16329 | chsize \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16330 | clone \ |
Alexandre Julliard | 969f57c | 2004-09-23 04:48:24 +0000 | [diff] [blame] | 16331 | epoll_create \ |
Hans Leidekker | c3de6ef | 2004-10-19 23:53:26 +0000 | [diff] [blame] | 16332 | ffs \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 16333 | finite \ |
Hans Leidekker | bed3842 | 2004-10-14 03:08:57 +0000 | [diff] [blame] | 16334 | fork \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 16335 | fpclass \ |
Alexandre Julliard | e77c9be | 2004-04-06 03:33:25 +0000 | [diff] [blame] | 16336 | fstatfs \ |
| 16337 | fstatvfs \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 16338 | ftruncate \ |
Alexandre Julliard | a1fe8b4 | 2004-03-27 01:48:52 +0000 | [diff] [blame] | 16339 | futimes \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16340 | getnetbyname \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 16341 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16342 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16343 | getprotobyname \ |
| 16344 | getprotobynumber \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 16345 | getpwuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16346 | getservbyport \ |
Alexandre Julliard | b2d937d | 2003-11-12 03:16:00 +0000 | [diff] [blame] | 16347 | gettid \ |
Alexandre Julliard | 8d7b8e5 | 2003-03-23 20:11:45 +0000 | [diff] [blame] | 16348 | gettimeofday \ |
Steven Edwards | e7c3ab1 | 2004-10-04 20:45:49 +0000 | [diff] [blame] | 16349 | getuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16350 | inet_network \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 16351 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16352 | memmove \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 16353 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16354 | pclose \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 16355 | popen \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 16356 | pread \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 16357 | pwrite \ |
Alexandre Julliard | e293074 | 2004-01-08 05:07:05 +0000 | [diff] [blame] | 16358 | readlink \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16359 | rfork \ |
Jeremy White | 08c0f69 | 2004-10-09 02:26:29 +0000 | [diff] [blame] | 16360 | sched_yield \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16361 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16362 | sendmsg \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16363 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16364 | sigaltstack \ |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 16365 | sigprocmask \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 16366 | snprintf \ |
Pavel Roskin | 7add08a | 2003-09-24 18:54:40 +0000 | [diff] [blame] | 16367 | spawnvp \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 16368 | statfs \ |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 16369 | statvfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 16370 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16371 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 16372 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16373 | tcgetattr \ |
| 16374 | timegm \ |
| 16375 | usleep \ |
Steven Edwards | be514b9 | 2003-01-14 19:35:03 +0000 | [diff] [blame] | 16376 | vsnprintf \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16377 | wait4 \ |
| 16378 | waitpid \ |
| 16379 | |
| 16380 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16381 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16382 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16383 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16384 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16386 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16387 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16388 | /* confdefs.h. */ |
| 16389 | _ACEOF |
| 16390 | cat confdefs.h >>conftest.$ac_ext |
| 16391 | cat >>conftest.$ac_ext <<_ACEOF |
| 16392 | /* end confdefs.h. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16393 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16394 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16395 | #define $ac_func innocuous_$ac_func |
| 16396 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16397 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16398 | which can conflict with char $ac_func (); below. |
| 16399 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16400 | <limits.h> exists even on freestanding compilers. */ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16401 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16402 | #ifdef __STDC__ |
| 16403 | # include <limits.h> |
| 16404 | #else |
| 16405 | # include <assert.h> |
| 16406 | #endif |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16407 | |
| 16408 | #undef $ac_func |
| 16409 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16410 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16411 | #ifdef __cplusplus |
| 16412 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16413 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16414 | #endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16415 | /* 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] | 16416 | builtin and then its argument prototype would still apply. */ |
| 16417 | char $ac_func (); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16418 | /* The GNU C library defines this for functions which it implements |
| 16419 | to always fail with ENOSYS. Some functions are actually named |
| 16420 | something starting with __ and the normal name is an alias. */ |
| 16421 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16422 | choke me |
| 16423 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16424 | char (*f) () = $ac_func; |
| 16425 | #endif |
| 16426 | #ifdef __cplusplus |
| 16427 | } |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 16428 | #endif |
| 16429 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16430 | int |
| 16431 | main () |
| 16432 | { |
| 16433 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16434 | ; |
| 16435 | return 0; |
| 16436 | } |
| 16437 | _ACEOF |
| 16438 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16440 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16441 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16442 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16443 | rm -f conftest.er1 |
| 16444 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16446 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16447 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16449 | (eval $ac_try) 2>&5 |
| 16450 | ac_status=$? |
| 16451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16452 | (exit $ac_status); }; } && |
| 16453 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16455 | (eval $ac_try) 2>&5 |
| 16456 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16458 | (exit $ac_status); }; }; then |
| 16459 | eval "$as_ac_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16460 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16461 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16463 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16464 | eval "$as_ac_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16465 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16466 | rm -f conftest.err conftest.$ac_objext \ |
| 16467 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16468 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16469 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16470 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16471 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16472 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16473 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16474 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 16475 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16476 | fi |
| 16477 | done |
| 16478 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16479 | |
| 16480 | |
| 16481 | |
| 16482 | |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16483 | for ac_header in sys/mount.h sys/user.h |
| 16484 | do |
| 16485 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16486 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16487 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16488 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16490 | else |
| 16491 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16492 | /* confdefs.h. */ |
| 16493 | _ACEOF |
| 16494 | cat confdefs.h >>conftest.$ac_ext |
| 16495 | cat >>conftest.$ac_ext <<_ACEOF |
| 16496 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 16497 | #include <sys/types.h> |
| 16498 | #if HAVE_SYS_PARAM_H |
| 16499 | # include <sys/param.h> |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16500 | #endif |
| 16501 | |
| 16502 | #include <$ac_header> |
| 16503 | _ACEOF |
| 16504 | rm -f conftest.$ac_objext |
| 16505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16506 | (eval $ac_compile) 2>conftest.er1 |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16507 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16509 | rm -f conftest.er1 |
| 16510 | cat conftest.err >&5 |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16512 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16515 | (eval $ac_try) 2>&5 |
| 16516 | ac_status=$? |
| 16517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16518 | (exit $ac_status); }; } && |
| 16519 | { ac_try='test -s conftest.$ac_objext' |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16521 | (eval $ac_try) 2>&5 |
| 16522 | ac_status=$? |
| 16523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16524 | (exit $ac_status); }; }; then |
| 16525 | eval "$as_ac_Header=yes" |
| 16526 | else |
| 16527 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16529 | |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16530 | eval "$as_ac_Header=no" |
| 16531 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 16533 | fi |
| 16534 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16535 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16536 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16537 | cat >>confdefs.h <<_ACEOF |
| 16538 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16539 | _ACEOF |
| 16540 | |
| 16541 | fi |
| 16542 | |
| 16543 | done |
| 16544 | |
| 16545 | |
| 16546 | |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 16547 | |
| 16548 | |
| 16549 | |
| 16550 | |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16551 | 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] | 16552 | do |
| 16553 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16554 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16555 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16556 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16558 | else |
| 16559 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16560 | /* confdefs.h. */ |
| 16561 | _ACEOF |
| 16562 | cat confdefs.h >>conftest.$ac_ext |
| 16563 | cat >>conftest.$ac_ext <<_ACEOF |
| 16564 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 16565 | #include <sys/types.h> |
Gerald Pfeifer | 87c369d | 2002-07-23 02:02:02 +0000 | [diff] [blame] | 16566 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16567 | # include <sys/socket.h> |
| 16568 | #endif |
| 16569 | |
| 16570 | #include <$ac_header> |
| 16571 | _ACEOF |
| 16572 | rm -f conftest.$ac_objext |
| 16573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16574 | (eval $ac_compile) 2>conftest.er1 |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16575 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16577 | rm -f conftest.er1 |
| 16578 | cat conftest.err >&5 |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16580 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16583 | (eval $ac_try) 2>&5 |
| 16584 | ac_status=$? |
| 16585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16586 | (exit $ac_status); }; } && |
| 16587 | { ac_try='test -s conftest.$ac_objext' |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16589 | (eval $ac_try) 2>&5 |
| 16590 | ac_status=$? |
| 16591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16592 | (exit $ac_status); }; }; then |
| 16593 | eval "$as_ac_Header=yes" |
| 16594 | else |
| 16595 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16597 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16598 | eval "$as_ac_Header=no" |
| 16599 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 16601 | fi |
| 16602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16603 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16604 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16605 | cat >>confdefs.h <<_ACEOF |
| 16606 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16607 | _ACEOF |
| 16608 | |
| 16609 | fi |
| 16610 | |
| 16611 | done |
| 16612 | |
| 16613 | |
| 16614 | |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16615 | for ac_header in resolv.h |
| 16616 | do |
| 16617 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16618 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16619 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16620 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16622 | else |
| 16623 | cat >conftest.$ac_ext <<_ACEOF |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16624 | /* confdefs.h. */ |
| 16625 | _ACEOF |
| 16626 | cat confdefs.h >>conftest.$ac_ext |
| 16627 | cat >>conftest.$ac_ext <<_ACEOF |
| 16628 | /* end confdefs.h. */ |
| 16629 | #include <sys/types.h> |
| 16630 | #if HAVE_SYS_SOCKET_H |
| 16631 | # include <sys/socket.h> |
| 16632 | #endif |
| 16633 | #if HAVE_NETINET_IN_H |
| 16634 | # include <netinet/in.h> |
| 16635 | #endif |
Pierre d'Herbemont | ae8ca36 | 2003-10-27 21:55:00 +0000 | [diff] [blame] | 16636 | #if HAVE_ARPA_NAMESER_H |
| 16637 | # include <arpa/nameser.h> |
| 16638 | #endif |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16639 | |
| 16640 | #include <$ac_header> |
| 16641 | _ACEOF |
| 16642 | rm -f conftest.$ac_objext |
| 16643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16644 | (eval $ac_compile) 2>conftest.er1 |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16645 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16647 | rm -f conftest.er1 |
| 16648 | cat conftest.err >&5 |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16650 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16651 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16653 | (eval $ac_try) 2>&5 |
| 16654 | ac_status=$? |
| 16655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16656 | (exit $ac_status); }; } && |
| 16657 | { ac_try='test -s conftest.$ac_objext' |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16659 | (eval $ac_try) 2>&5 |
| 16660 | ac_status=$? |
| 16661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16662 | (exit $ac_status); }; }; then |
| 16663 | eval "$as_ac_Header=yes" |
| 16664 | else |
| 16665 | echo "$as_me: failed program was:" >&5 |
| 16666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16667 | |
| 16668 | eval "$as_ac_Header=no" |
| 16669 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | bcb6ecf | 2003-08-11 18:37:13 +0000 | [diff] [blame] | 16671 | fi |
| 16672 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16673 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16674 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16675 | cat >>confdefs.h <<_ACEOF |
| 16676 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16677 | _ACEOF |
| 16678 | |
| 16679 | fi |
| 16680 | |
| 16681 | done |
| 16682 | |
| 16683 | |
| 16684 | |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 16685 | for ac_header in ucontext.h |
| 16686 | do |
| 16687 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 16688 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 16689 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 16690 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 16691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16692 | else |
| 16693 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16694 | /* confdefs.h. */ |
| 16695 | _ACEOF |
| 16696 | cat confdefs.h >>conftest.$ac_ext |
| 16697 | cat >>conftest.$ac_ext <<_ACEOF |
| 16698 | /* end confdefs.h. */ |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 16699 | #include <signal.h> |
| 16700 | |
| 16701 | #include <$ac_header> |
| 16702 | _ACEOF |
| 16703 | rm -f conftest.$ac_objext |
| 16704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16705 | (eval $ac_compile) 2>conftest.er1 |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 16706 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16708 | rm -f conftest.er1 |
| 16709 | cat conftest.err >&5 |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 16710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16711 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16712 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16714 | (eval $ac_try) 2>&5 |
| 16715 | ac_status=$? |
| 16716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16717 | (exit $ac_status); }; } && |
| 16718 | { ac_try='test -s conftest.$ac_objext' |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 16719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16720 | (eval $ac_try) 2>&5 |
| 16721 | ac_status=$? |
| 16722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16723 | (exit $ac_status); }; }; then |
| 16724 | eval "$as_ac_Header=yes" |
| 16725 | else |
| 16726 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16728 | |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 16729 | eval "$as_ac_Header=no" |
| 16730 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 16732 | fi |
| 16733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 16734 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 16735 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 16736 | cat >>confdefs.h <<_ACEOF |
| 16737 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 16738 | _ACEOF |
| 16739 | |
| 16740 | fi |
| 16741 | |
| 16742 | done |
| 16743 | |
| 16744 | |
| 16745 | |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 16746 | echo "$as_me:$LINENO: checking for GNU style IPX support" >&5 |
| 16747 | echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6 |
| 16748 | if test "${ac_cv_c_ipx_gnu+set}" = set; then |
| 16749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16750 | else |
| 16751 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 16752 | /* confdefs.h. */ |
| 16753 | _ACEOF |
| 16754 | cat confdefs.h >>conftest.$ac_ext |
| 16755 | cat >>conftest.$ac_ext <<_ACEOF |
| 16756 | /* end confdefs.h. */ |
| 16757 | #include <sys/types.h> |
| 16758 | #ifdef HAVE_SYS_SOCKET_H |
| 16759 | # include <sys/socket.h> |
| 16760 | #endif |
| 16761 | #include <netipx/ipx.h> |
| 16762 | int |
| 16763 | main () |
| 16764 | { |
| 16765 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 16766 | ; |
| 16767 | return 0; |
| 16768 | } |
| 16769 | _ACEOF |
| 16770 | rm -f conftest.$ac_objext |
| 16771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16772 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 16773 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16775 | rm -f conftest.er1 |
| 16776 | cat conftest.err >&5 |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 16777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16778 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16779 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16781 | (eval $ac_try) 2>&5 |
| 16782 | ac_status=$? |
| 16783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16784 | (exit $ac_status); }; } && |
| 16785 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 16786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16787 | (eval $ac_try) 2>&5 |
| 16788 | ac_status=$? |
| 16789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16790 | (exit $ac_status); }; }; then |
| 16791 | ac_cv_c_ipx_gnu="yes" |
| 16792 | else |
| 16793 | echo "$as_me: failed program was:" >&5 |
| 16794 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16795 | |
| 16796 | ac_cv_c_ipx_gnu="no" |
| 16797 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 16799 | |
| 16800 | fi |
| 16801 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5 |
| 16802 | echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6 |
| 16803 | if test "$ac_cv_c_ipx_gnu" = "yes" |
| 16804 | then |
| 16805 | |
| 16806 | cat >>confdefs.h <<\_ACEOF |
| 16807 | #define HAVE_IPX_GNU 1 |
| 16808 | _ACEOF |
| 16809 | |
| 16810 | fi |
| 16811 | |
| 16812 | if test "$ac_cv_c_ipx_gnu" = "no" |
| 16813 | then |
| 16814 | echo "$as_me:$LINENO: checking for linux style IPX support" >&5 |
| 16815 | echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6 |
| 16816 | if test "${ac_cv_c_ipx_linux+set}" = set; then |
| 16817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16818 | else |
| 16819 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 16820 | /* confdefs.h. */ |
| 16821 | _ACEOF |
| 16822 | cat confdefs.h >>conftest.$ac_ext |
| 16823 | cat >>conftest.$ac_ext <<_ACEOF |
| 16824 | /* end confdefs.h. */ |
| 16825 | #include <sys/types.h> |
| 16826 | #ifdef HAVE_SYS_SOCKET_H |
| 16827 | # include <sys/socket.h> |
| 16828 | #endif |
| 16829 | #include <asm/types.h> |
| 16830 | #include <linux/ipx.h> |
| 16831 | int |
| 16832 | main () |
| 16833 | { |
| 16834 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
| 16835 | ; |
| 16836 | return 0; |
| 16837 | } |
| 16838 | _ACEOF |
| 16839 | rm -f conftest.$ac_objext |
| 16840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16841 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 16842 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16843 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16844 | rm -f conftest.er1 |
| 16845 | cat conftest.err >&5 |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 16846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16847 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16850 | (eval $ac_try) 2>&5 |
| 16851 | ac_status=$? |
| 16852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16853 | (exit $ac_status); }; } && |
| 16854 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 16855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16856 | (eval $ac_try) 2>&5 |
| 16857 | ac_status=$? |
| 16858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16859 | (exit $ac_status); }; }; then |
| 16860 | ac_cv_c_ipx_linux="yes" |
| 16861 | else |
| 16862 | echo "$as_me: failed program was:" >&5 |
| 16863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16864 | |
| 16865 | ac_cv_c_ipx_linux="no" |
| 16866 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | b38b4c2 | 2003-01-21 00:36:46 +0000 | [diff] [blame] | 16868 | |
| 16869 | fi |
| 16870 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5 |
| 16871 | echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6 |
| 16872 | if test "$ac_cv_c_ipx_linux" = "yes" |
| 16873 | then |
| 16874 | |
| 16875 | cat >>confdefs.h <<\_ACEOF |
| 16876 | #define HAVE_IPX_LINUX 1 |
| 16877 | _ACEOF |
| 16878 | |
| 16879 | fi |
| 16880 | fi |
| 16881 | |
| 16882 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16883 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16884 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 16885 | if test "${ac_cv_c_const+set}" = set; then |
| 16886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16887 | else |
| 16888 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16889 | /* confdefs.h. */ |
| 16890 | _ACEOF |
| 16891 | cat confdefs.h >>conftest.$ac_ext |
| 16892 | cat >>conftest.$ac_ext <<_ACEOF |
| 16893 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16894 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16895 | int |
| 16896 | main () |
| 16897 | { |
| 16898 | /* FIXME: Include the comments suggested by Paul. */ |
| 16899 | #ifndef __cplusplus |
| 16900 | /* Ultrix mips cc rejects this. */ |
| 16901 | typedef int charset[2]; |
| 16902 | const charset x; |
| 16903 | /* SunOS 4.1.1 cc rejects this. */ |
| 16904 | char const *const *ccp; |
| 16905 | char **p; |
| 16906 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16907 | struct point {int x, y;}; |
| 16908 | static struct point const zero = {0,0}; |
| 16909 | /* AIX XL C 1.02.0.0 rejects this. |
| 16910 | It does not let you subtract one const X* pointer from another in |
| 16911 | an arm of an if-expression whose if-part is not a constant |
| 16912 | expression */ |
| 16913 | const char *g = "string"; |
| 16914 | ccp = &g + (g ? g-g : 0); |
| 16915 | /* HPUX 7.0 cc rejects these. */ |
| 16916 | ++ccp; |
| 16917 | p = (char**) ccp; |
| 16918 | ccp = (char const *const *) p; |
| 16919 | { /* SCO 3.2v4 cc rejects this. */ |
| 16920 | char *t; |
| 16921 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16922 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16923 | *t++ = 0; |
| 16924 | } |
| 16925 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 16926 | int x[] = {25, 17}; |
| 16927 | const int *foo = &x[0]; |
| 16928 | ++foo; |
| 16929 | } |
| 16930 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 16931 | typedef const int *iptr; |
| 16932 | iptr p = 0; |
| 16933 | ++p; |
| 16934 | } |
| 16935 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 16936 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 16937 | struct s { int j; const int *ap[3]; }; |
| 16938 | struct s *b; b->j = 5; |
| 16939 | } |
| 16940 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 16941 | const int foo = 10; |
| 16942 | } |
| 16943 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16944 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16945 | ; |
| 16946 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16947 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16948 | _ACEOF |
| 16949 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16951 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16952 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16954 | rm -f conftest.er1 |
| 16955 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16957 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 16959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16960 | (eval $ac_try) 2>&5 |
| 16961 | ac_status=$? |
| 16962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16963 | (exit $ac_status); }; } && |
| 16964 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16966 | (eval $ac_try) 2>&5 |
| 16967 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16969 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16970 | ac_cv_c_const=yes |
| 16971 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16972 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16974 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16975 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16976 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 16977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16978 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16979 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16980 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16981 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16982 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16983 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16984 | #define const |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16985 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16986 | |
| 16987 | fi |
| 16988 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16989 | echo "$as_me:$LINENO: checking for inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16990 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 16991 | if test "${ac_cv_c_inline+set}" = set; then |
| 16992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 16993 | else |
| 16994 | ac_cv_c_inline=no |
| 16995 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16996 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16997 | /* confdefs.h. */ |
| 16998 | _ACEOF |
| 16999 | cat confdefs.h >>conftest.$ac_ext |
| 17000 | cat >>conftest.$ac_ext <<_ACEOF |
| 17001 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17002 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17003 | typedef int foo_t; |
| 17004 | static $ac_kw foo_t static_foo () {return 0; } |
| 17005 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17006 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17007 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17008 | _ACEOF |
| 17009 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17011 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17012 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17013 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17014 | rm -f conftest.er1 |
| 17015 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17017 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17020 | (eval $ac_try) 2>&5 |
| 17021 | ac_status=$? |
| 17022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17023 | (exit $ac_status); }; } && |
| 17024 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17026 | (eval $ac_try) 2>&5 |
| 17027 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17029 | (exit $ac_status); }; }; then |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17030 | ac_cv_c_inline=$ac_kw; break |
| 17031 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17032 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17034 | |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17035 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17037 | done |
| 17038 | |
| 17039 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17040 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17041 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17042 | |
| 17043 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17044 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17045 | inline | yes) ;; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17046 | *) |
| 17047 | case $ac_cv_c_inline in |
| 17048 | no) ac_val=;; |
| 17049 | *) ac_val=$ac_cv_c_inline;; |
| 17050 | esac |
| 17051 | cat >>confdefs.h <<_ACEOF |
| 17052 | #ifndef __cplusplus |
| 17053 | #define inline $ac_val |
| 17054 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17055 | _ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17056 | ;; |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 17057 | esac |
| 17058 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17059 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17060 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 17061 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 17062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17063 | else |
| 17064 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17065 | /* confdefs.h. */ |
| 17066 | _ACEOF |
| 17067 | cat confdefs.h >>conftest.$ac_ext |
| 17068 | cat >>conftest.$ac_ext <<_ACEOF |
| 17069 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17070 | $ac_includes_default |
| 17071 | int |
| 17072 | main () |
| 17073 | { |
| 17074 | if ((mode_t *) 0) |
| 17075 | return 0; |
| 17076 | if (sizeof (mode_t)) |
| 17077 | return 0; |
| 17078 | ; |
| 17079 | return 0; |
| 17080 | } |
| 17081 | _ACEOF |
| 17082 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17084 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17085 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17086 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17087 | rm -f conftest.er1 |
| 17088 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17090 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17091 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17093 | (eval $ac_try) 2>&5 |
| 17094 | ac_status=$? |
| 17095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17096 | (exit $ac_status); }; } && |
| 17097 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17099 | (eval $ac_try) 2>&5 |
| 17100 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17102 | (exit $ac_status); }; }; then |
| 17103 | ac_cv_type_mode_t=yes |
| 17104 | else |
| 17105 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17107 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17108 | ac_cv_type_mode_t=no |
| 17109 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17111 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17112 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17113 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 17114 | if test $ac_cv_type_mode_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17115 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17116 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17117 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17118 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17119 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17120 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17121 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17122 | echo "$as_me:$LINENO: checking for off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17123 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 17124 | if test "${ac_cv_type_off_t+set}" = set; then |
| 17125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17126 | else |
| 17127 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17128 | /* confdefs.h. */ |
| 17129 | _ACEOF |
| 17130 | cat confdefs.h >>conftest.$ac_ext |
| 17131 | cat >>conftest.$ac_ext <<_ACEOF |
| 17132 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17133 | $ac_includes_default |
| 17134 | int |
| 17135 | main () |
| 17136 | { |
| 17137 | if ((off_t *) 0) |
| 17138 | return 0; |
| 17139 | if (sizeof (off_t)) |
| 17140 | return 0; |
| 17141 | ; |
| 17142 | return 0; |
| 17143 | } |
| 17144 | _ACEOF |
| 17145 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17147 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17148 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17149 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17150 | rm -f conftest.er1 |
| 17151 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17153 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17154 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17156 | (eval $ac_try) 2>&5 |
| 17157 | ac_status=$? |
| 17158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17159 | (exit $ac_status); }; } && |
| 17160 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17162 | (eval $ac_try) 2>&5 |
| 17163 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17165 | (exit $ac_status); }; }; then |
| 17166 | ac_cv_type_off_t=yes |
| 17167 | else |
| 17168 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17170 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17171 | ac_cv_type_off_t=no |
| 17172 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17174 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17175 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17176 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 17177 | if test $ac_cv_type_off_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17178 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17179 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17180 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17181 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17182 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17183 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17184 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17185 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17186 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 17187 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 17188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17189 | else |
| 17190 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17191 | /* confdefs.h. */ |
| 17192 | _ACEOF |
| 17193 | cat confdefs.h >>conftest.$ac_ext |
| 17194 | cat >>conftest.$ac_ext <<_ACEOF |
| 17195 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17196 | $ac_includes_default |
| 17197 | int |
| 17198 | main () |
| 17199 | { |
| 17200 | if ((pid_t *) 0) |
| 17201 | return 0; |
| 17202 | if (sizeof (pid_t)) |
| 17203 | return 0; |
| 17204 | ; |
| 17205 | return 0; |
| 17206 | } |
| 17207 | _ACEOF |
| 17208 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17210 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17211 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17213 | rm -f conftest.er1 |
| 17214 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17216 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17219 | (eval $ac_try) 2>&5 |
| 17220 | ac_status=$? |
| 17221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17222 | (exit $ac_status); }; } && |
| 17223 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17225 | (eval $ac_try) 2>&5 |
| 17226 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17228 | (exit $ac_status); }; }; then |
| 17229 | ac_cv_type_pid_t=yes |
| 17230 | else |
| 17231 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17232 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17233 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17234 | ac_cv_type_pid_t=no |
| 17235 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17237 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17238 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17239 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 17240 | if test $ac_cv_type_pid_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17241 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17242 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17243 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17244 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17245 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17246 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17247 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17248 | echo "$as_me:$LINENO: checking for size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17249 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 17250 | if test "${ac_cv_type_size_t+set}" = set; then |
| 17251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17252 | else |
| 17253 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17254 | /* confdefs.h. */ |
| 17255 | _ACEOF |
| 17256 | cat confdefs.h >>conftest.$ac_ext |
| 17257 | cat >>conftest.$ac_ext <<_ACEOF |
| 17258 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17259 | $ac_includes_default |
| 17260 | int |
| 17261 | main () |
| 17262 | { |
| 17263 | if ((size_t *) 0) |
| 17264 | return 0; |
| 17265 | if (sizeof (size_t)) |
| 17266 | return 0; |
| 17267 | ; |
| 17268 | return 0; |
| 17269 | } |
| 17270 | _ACEOF |
| 17271 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17273 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17274 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17276 | rm -f conftest.er1 |
| 17277 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17279 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17280 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17282 | (eval $ac_try) 2>&5 |
| 17283 | ac_status=$? |
| 17284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17285 | (exit $ac_status); }; } && |
| 17286 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17288 | (eval $ac_try) 2>&5 |
| 17289 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17291 | (exit $ac_status); }; }; then |
| 17292 | ac_cv_type_size_t=yes |
| 17293 | else |
| 17294 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17296 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17297 | ac_cv_type_size_t=no |
| 17298 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17300 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17301 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17302 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 17303 | if test $ac_cv_type_size_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17304 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17305 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17306 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17307 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17308 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17309 | |
| 17310 | fi |
| 17311 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 17312 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
| 17313 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 17314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17315 | else |
| 17316 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17317 | /* confdefs.h. */ |
| 17318 | _ACEOF |
| 17319 | cat confdefs.h >>conftest.$ac_ext |
| 17320 | cat >>conftest.$ac_ext <<_ACEOF |
| 17321 | /* end confdefs.h. */ |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17322 | $ac_includes_default |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17323 | int |
| 17324 | main () |
| 17325 | { |
| 17326 | if ((ssize_t *) 0) |
| 17327 | return 0; |
| 17328 | if (sizeof (ssize_t)) |
| 17329 | return 0; |
| 17330 | ; |
| 17331 | return 0; |
| 17332 | } |
| 17333 | _ACEOF |
| 17334 | rm -f conftest.$ac_objext |
| 17335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17336 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17337 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17339 | rm -f conftest.er1 |
| 17340 | cat conftest.err >&5 |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17342 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17343 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17345 | (eval $ac_try) 2>&5 |
| 17346 | ac_status=$? |
| 17347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17348 | (exit $ac_status); }; } && |
| 17349 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17351 | (eval $ac_try) 2>&5 |
| 17352 | ac_status=$? |
| 17353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17354 | (exit $ac_status); }; }; then |
| 17355 | ac_cv_type_ssize_t=yes |
| 17356 | else |
| 17357 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17359 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17360 | ac_cv_type_ssize_t=no |
| 17361 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 17363 | fi |
| 17364 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 17365 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
| 17366 | if test $ac_cv_type_ssize_t = yes; then |
| 17367 | |
| 17368 | cat >>confdefs.h <<_ACEOF |
| 17369 | #define HAVE_SSIZE_T 1 |
| 17370 | _ACEOF |
| 17371 | |
| 17372 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 17373 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17374 | echo "$as_me:$LINENO: checking for long long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17375 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 17376 | if test "${ac_cv_type_long_long+set}" = set; then |
| 17377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17378 | else |
| 17379 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17380 | /* confdefs.h. */ |
| 17381 | _ACEOF |
| 17382 | cat confdefs.h >>conftest.$ac_ext |
| 17383 | cat >>conftest.$ac_ext <<_ACEOF |
| 17384 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17385 | $ac_includes_default |
| 17386 | int |
| 17387 | main () |
| 17388 | { |
| 17389 | if ((long long *) 0) |
| 17390 | return 0; |
| 17391 | if (sizeof (long long)) |
| 17392 | return 0; |
| 17393 | ; |
| 17394 | return 0; |
| 17395 | } |
| 17396 | _ACEOF |
| 17397 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17399 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17400 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17402 | rm -f conftest.er1 |
| 17403 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17405 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17406 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17408 | (eval $ac_try) 2>&5 |
| 17409 | ac_status=$? |
| 17410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17411 | (exit $ac_status); }; } && |
| 17412 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17414 | (eval $ac_try) 2>&5 |
| 17415 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17417 | (exit $ac_status); }; }; then |
| 17418 | ac_cv_type_long_long=yes |
| 17419 | else |
| 17420 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17421 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17422 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17423 | ac_cv_type_long_long=no |
| 17424 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17426 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17427 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17428 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17429 | if test $ac_cv_type_long_long = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17430 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17431 | cat >>confdefs.h <<_ACEOF |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17432 | #define HAVE_LONG_LONG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17433 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 17434 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17435 | |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17436 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 17437 | echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 |
| 17438 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6 |
| 17439 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then |
| 17440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17441 | else |
| 17442 | cat >conftest.$ac_ext <<_ACEOF |
| 17443 | /* confdefs.h. */ |
| 17444 | _ACEOF |
| 17445 | cat confdefs.h >>conftest.$ac_ext |
| 17446 | cat >>conftest.$ac_ext <<_ACEOF |
| 17447 | /* end confdefs.h. */ |
| 17448 | $ac_includes_default |
| 17449 | int |
| 17450 | main () |
| 17451 | { |
| 17452 | if ((fsblkcnt_t *) 0) |
| 17453 | return 0; |
| 17454 | if (sizeof (fsblkcnt_t)) |
| 17455 | return 0; |
| 17456 | ; |
| 17457 | return 0; |
| 17458 | } |
| 17459 | _ACEOF |
| 17460 | rm -f conftest.$ac_objext |
| 17461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17462 | (eval $ac_compile) 2>conftest.er1 |
| 17463 | ac_status=$? |
| 17464 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17465 | rm -f conftest.er1 |
| 17466 | cat conftest.err >&5 |
| 17467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17468 | (exit $ac_status); } && |
| 17469 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17471 | (eval $ac_try) 2>&5 |
| 17472 | ac_status=$? |
| 17473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17474 | (exit $ac_status); }; } && |
| 17475 | { ac_try='test -s conftest.$ac_objext' |
| 17476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17477 | (eval $ac_try) 2>&5 |
| 17478 | ac_status=$? |
| 17479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17480 | (exit $ac_status); }; }; then |
| 17481 | ac_cv_type_fsblkcnt_t=yes |
| 17482 | else |
| 17483 | echo "$as_me: failed program was:" >&5 |
| 17484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17485 | |
| 17486 | ac_cv_type_fsblkcnt_t=no |
| 17487 | fi |
| 17488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17489 | fi |
| 17490 | echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 |
| 17491 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6 |
| 17492 | if test $ac_cv_type_fsblkcnt_t = yes; then |
| 17493 | |
| 17494 | cat >>confdefs.h <<_ACEOF |
| 17495 | #define HAVE_FSBLKCNT_T 1 |
| 17496 | _ACEOF |
| 17497 | |
| 17498 | |
| 17499 | fi |
| 17500 | echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 |
| 17501 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6 |
| 17502 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then |
| 17503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17504 | else |
| 17505 | cat >conftest.$ac_ext <<_ACEOF |
| 17506 | /* confdefs.h. */ |
| 17507 | _ACEOF |
| 17508 | cat confdefs.h >>conftest.$ac_ext |
| 17509 | cat >>conftest.$ac_ext <<_ACEOF |
| 17510 | /* end confdefs.h. */ |
| 17511 | $ac_includes_default |
| 17512 | int |
| 17513 | main () |
| 17514 | { |
| 17515 | if ((fsfilcnt_t *) 0) |
| 17516 | return 0; |
| 17517 | if (sizeof (fsfilcnt_t)) |
| 17518 | return 0; |
| 17519 | ; |
| 17520 | return 0; |
| 17521 | } |
| 17522 | _ACEOF |
| 17523 | rm -f conftest.$ac_objext |
| 17524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17525 | (eval $ac_compile) 2>conftest.er1 |
| 17526 | ac_status=$? |
| 17527 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17528 | rm -f conftest.er1 |
| 17529 | cat conftest.err >&5 |
| 17530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17531 | (exit $ac_status); } && |
| 17532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17534 | (eval $ac_try) 2>&5 |
| 17535 | ac_status=$? |
| 17536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17537 | (exit $ac_status); }; } && |
| 17538 | { ac_try='test -s conftest.$ac_objext' |
| 17539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17540 | (eval $ac_try) 2>&5 |
| 17541 | ac_status=$? |
| 17542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17543 | (exit $ac_status); }; }; then |
| 17544 | ac_cv_type_fsfilcnt_t=yes |
| 17545 | else |
| 17546 | echo "$as_me: failed program was:" >&5 |
| 17547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17548 | |
| 17549 | ac_cv_type_fsfilcnt_t=no |
| 17550 | fi |
| 17551 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17552 | fi |
| 17553 | echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 |
| 17554 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6 |
| 17555 | if test $ac_cv_type_fsfilcnt_t = yes; then |
| 17556 | |
| 17557 | cat >>confdefs.h <<_ACEOF |
| 17558 | #define HAVE_FSFILCNT_T 1 |
| 17559 | _ACEOF |
| 17560 | |
| 17561 | |
| 17562 | fi |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 17563 | |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 17564 | echo "$as_me:$LINENO: checking for sigset_t" >&5 |
| 17565 | echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6 |
| 17566 | if test "${ac_cv_type_sigset_t+set}" = set; then |
| 17567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17568 | else |
| 17569 | cat >conftest.$ac_ext <<_ACEOF |
| 17570 | /* confdefs.h. */ |
| 17571 | _ACEOF |
| 17572 | cat confdefs.h >>conftest.$ac_ext |
| 17573 | cat >>conftest.$ac_ext <<_ACEOF |
| 17574 | /* end confdefs.h. */ |
| 17575 | #include <signal.h> |
| 17576 | |
| 17577 | int |
| 17578 | main () |
| 17579 | { |
| 17580 | if ((sigset_t *) 0) |
| 17581 | return 0; |
| 17582 | if (sizeof (sigset_t)) |
| 17583 | return 0; |
| 17584 | ; |
| 17585 | return 0; |
| 17586 | } |
| 17587 | _ACEOF |
| 17588 | rm -f conftest.$ac_objext |
| 17589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17590 | (eval $ac_compile) 2>conftest.er1 |
| 17591 | ac_status=$? |
| 17592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17593 | rm -f conftest.er1 |
| 17594 | cat conftest.err >&5 |
| 17595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17596 | (exit $ac_status); } && |
| 17597 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17599 | (eval $ac_try) 2>&5 |
| 17600 | ac_status=$? |
| 17601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17602 | (exit $ac_status); }; } && |
| 17603 | { ac_try='test -s conftest.$ac_objext' |
| 17604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17605 | (eval $ac_try) 2>&5 |
| 17606 | ac_status=$? |
| 17607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17608 | (exit $ac_status); }; }; then |
| 17609 | ac_cv_type_sigset_t=yes |
| 17610 | else |
| 17611 | echo "$as_me: failed program was:" >&5 |
| 17612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17613 | |
| 17614 | ac_cv_type_sigset_t=no |
| 17615 | fi |
| 17616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17617 | fi |
| 17618 | echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5 |
| 17619 | echo "${ECHO_T}$ac_cv_type_sigset_t" >&6 |
| 17620 | if test $ac_cv_type_sigset_t = yes; then |
| 17621 | |
| 17622 | cat >>confdefs.h <<_ACEOF |
| 17623 | #define HAVE_SIGSET_T 1 |
| 17624 | _ACEOF |
| 17625 | |
| 17626 | |
| 17627 | fi |
| 17628 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17629 | |
| 17630 | 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] | 17631 | echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6 |
| 17632 | if test "${wine_cv_linux_input_h+set}" = set; then |
| 17633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17634 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17635 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17636 | /* confdefs.h. */ |
| 17637 | _ACEOF |
| 17638 | cat confdefs.h >>conftest.$ac_ext |
| 17639 | cat >>conftest.$ac_ext <<_ACEOF |
| 17640 | /* end confdefs.h. */ |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17641 | |
| 17642 | #include <linux/input.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17643 | |
| 17644 | int |
| 17645 | main () |
| 17646 | { |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17647 | |
| 17648 | int foo = EVIOCGBIT(EV_ABS,42); |
| 17649 | int bar = BTN_PINKIE; |
| 17650 | int fortytwo = 42; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17651 | |
| 17652 | ; |
| 17653 | return 0; |
| 17654 | } |
| 17655 | _ACEOF |
| 17656 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17658 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17659 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17661 | rm -f conftest.er1 |
| 17662 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17664 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17665 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17667 | (eval $ac_try) 2>&5 |
| 17668 | ac_status=$? |
| 17669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17670 | (exit $ac_status); }; } && |
| 17671 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17673 | (eval $ac_try) 2>&5 |
| 17674 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17676 | (exit $ac_status); }; }; then |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17677 | wine_cv_linux_input_h=yes |
| 17678 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17679 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17680 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17681 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17682 | wine_cv_linux_input_h=no |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17683 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17685 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17686 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17687 | echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17688 | echo "${ECHO_T}$wine_cv_linux_input_h" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17689 | if test "$wine_cv_linux_input_h" = "yes" |
| 17690 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17691 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17692 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17693 | #define HAVE_CORRECT_LINUXINPUT_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17694 | _ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 17695 | |
| 17696 | fi |
| 17697 | |
Paul Millar | 10a6c56 | 2004-12-07 17:19:54 +0000 | [diff] [blame] | 17698 | echo "$as_me:$LINENO: checking for sigaddset" >&5 |
| 17699 | echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6 |
| 17700 | if test "${wine_cv_have_sigaddset+set}" = set; then |
| 17701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17702 | else |
| 17703 | cat >conftest.$ac_ext <<_ACEOF |
| 17704 | /* confdefs.h. */ |
| 17705 | _ACEOF |
| 17706 | cat confdefs.h >>conftest.$ac_ext |
| 17707 | cat >>conftest.$ac_ext <<_ACEOF |
| 17708 | /* end confdefs.h. */ |
| 17709 | #include <signal.h> |
| 17710 | int |
| 17711 | main () |
| 17712 | { |
| 17713 | sigset_t set; sigaddset(&set,SIGTERM); |
| 17714 | ; |
| 17715 | return 0; |
| 17716 | } |
| 17717 | _ACEOF |
| 17718 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17720 | (eval $ac_link) 2>conftest.er1 |
| 17721 | ac_status=$? |
| 17722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17723 | rm -f conftest.er1 |
| 17724 | cat conftest.err >&5 |
| 17725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17726 | (exit $ac_status); } && |
| 17727 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17729 | (eval $ac_try) 2>&5 |
| 17730 | ac_status=$? |
| 17731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17732 | (exit $ac_status); }; } && |
| 17733 | { ac_try='test -s conftest$ac_exeext' |
| 17734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17735 | (eval $ac_try) 2>&5 |
| 17736 | ac_status=$? |
| 17737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17738 | (exit $ac_status); }; }; then |
| 17739 | wine_cv_have_sigaddset=yes |
| 17740 | else |
| 17741 | echo "$as_me: failed program was:" >&5 |
| 17742 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17743 | |
| 17744 | wine_cv_have_sigaddset=no |
| 17745 | fi |
| 17746 | rm -f conftest.err conftest.$ac_objext \ |
| 17747 | conftest$ac_exeext conftest.$ac_ext |
| 17748 | fi |
| 17749 | echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5 |
| 17750 | echo "${ECHO_T}$wine_cv_have_sigaddset" >&6 |
| 17751 | if test "$wine_cv_have_sigaddset" = "yes" |
| 17752 | then |
| 17753 | |
| 17754 | cat >>confdefs.h <<\_ACEOF |
| 17755 | #define HAVE_SIGADDSET 1 |
| 17756 | _ACEOF |
| 17757 | |
| 17758 | fi |
| 17759 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17760 | |
| 17761 | 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] | 17762 | echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6 |
| 17763 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
| 17764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 17765 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17766 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17767 | /* confdefs.h. */ |
| 17768 | _ACEOF |
| 17769 | cat confdefs.h >>conftest.$ac_ext |
| 17770 | cat >>conftest.$ac_ext <<_ACEOF |
| 17771 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 17772 | |
| 17773 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17774 | |
| 17775 | int |
| 17776 | main () |
| 17777 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 17778 | |
| 17779 | char *name=NULL; |
| 17780 | struct hostent he; |
| 17781 | struct hostent *result; |
| 17782 | char *buf=NULL; |
| 17783 | int bufsize=0; |
| 17784 | int res,errnr; |
| 17785 | char *addr=NULL; |
| 17786 | int addrlen=0; |
| 17787 | int addrtype=0; |
| 17788 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 17789 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17790 | |
| 17791 | ; |
| 17792 | return 0; |
| 17793 | } |
| 17794 | _ACEOF |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 17795 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17797 | (eval $ac_link) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17798 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17799 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17800 | rm -f conftest.er1 |
| 17801 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17803 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17804 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17806 | (eval $ac_try) 2>&5 |
| 17807 | ac_status=$? |
| 17808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17809 | (exit $ac_status); }; } && |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 17810 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17812 | (eval $ac_try) 2>&5 |
| 17813 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17815 | (exit $ac_status); }; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 17816 | wine_cv_linux_gethostbyname_r_6=yes |
| 17817 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17818 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17820 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17821 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 17822 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17823 | fi |
Marcus Meissner | dfd315b | 2004-01-02 03:53:57 +0000 | [diff] [blame] | 17824 | rm -f conftest.err conftest.$ac_objext \ |
| 17825 | conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17826 | |
| 17827 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17828 | echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17829 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 17830 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 17831 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17832 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17833 | cat >>confdefs.h <<\_ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 17834 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17835 | _ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 17836 | |
| 17837 | fi |
| 17838 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 17839 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 17840 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17841 | 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] | 17842 | echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6 |
| 17843 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
| 17844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 17845 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17846 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17847 | /* confdefs.h. */ |
| 17848 | _ACEOF |
| 17849 | cat confdefs.h >>conftest.$ac_ext |
| 17850 | cat >>conftest.$ac_ext <<_ACEOF |
| 17851 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 17852 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 17853 | #include <sys/ioctl.h> |
| 17854 | #include <linux/joystick.h> |
| 17855 | |
| 17856 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 17857 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 17858 | #error "no 2.2 header" |
| 17859 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17860 | |
| 17861 | int |
| 17862 | main () |
| 17863 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 17864 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17865 | ; |
| 17866 | return 0; |
| 17867 | } |
| 17868 | _ACEOF |
| 17869 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17871 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17872 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17874 | rm -f conftest.er1 |
| 17875 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17877 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17878 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17880 | (eval $ac_try) 2>&5 |
| 17881 | ac_status=$? |
| 17882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17883 | (exit $ac_status); }; } && |
| 17884 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17886 | (eval $ac_try) 2>&5 |
| 17887 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17889 | (exit $ac_status); }; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 17890 | wine_cv_linux_joystick_22_api=yes |
| 17891 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17892 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17894 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17895 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 17896 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 17898 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17899 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17900 | echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17901 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6 |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 17902 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 17903 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17904 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17905 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 17906 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17907 | _ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 17908 | |
| 17909 | fi |
| 17910 | fi |
| 17911 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17912 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 17913 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
| 17914 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17915 | echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17916 | echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6 |
| 17917 | if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then |
| 17918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 17919 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17920 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17921 | /* confdefs.h. */ |
| 17922 | _ACEOF |
| 17923 | cat confdefs.h >>conftest.$ac_ext |
| 17924 | cat >>conftest.$ac_ext <<_ACEOF |
| 17925 | /* end confdefs.h. */ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 17926 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 17927 | #include <sys/types.h> |
| 17928 | #ifdef HAVE_SYS_PARAM_H |
| 17929 | # include <sys/param.h> |
| 17930 | #endif |
| 17931 | #include <sys/vfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17932 | |
| 17933 | int |
| 17934 | main () |
| 17935 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 17936 | |
| 17937 | struct statfs stfs; |
| 17938 | |
| 17939 | memset(&stfs,0,sizeof(stfs)); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17940 | |
| 17941 | ; |
| 17942 | return 0; |
| 17943 | } |
| 17944 | _ACEOF |
| 17945 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17947 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17948 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17950 | rm -f conftest.er1 |
| 17951 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17953 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17954 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 17955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17956 | (eval $ac_try) 2>&5 |
| 17957 | ac_status=$? |
| 17958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17959 | (exit $ac_status); }; } && |
| 17960 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17962 | (eval $ac_try) 2>&5 |
| 17963 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17965 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 17966 | wine_cv_sys_vfs_has_statfs=yes |
| 17967 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17968 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17969 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17970 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17971 | wine_cv_sys_vfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 17972 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17973 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 17974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17975 | |
| 17976 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17977 | echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17978 | echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 17979 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
| 17980 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17981 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17982 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 17983 | #define STATFS_DEFINED_BY_SYS_VFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17984 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 17985 | |
| 17986 | fi |
| 17987 | fi |
| 17988 | |
| 17989 | if test "$ac_cv_header_sys_statfs_h" = "yes" |
| 17990 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 17991 | echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17992 | echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6 |
| 17993 | if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then |
| 17994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 17995 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 17996 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 17997 | /* confdefs.h. */ |
| 17998 | _ACEOF |
| 17999 | cat confdefs.h >>conftest.$ac_ext |
| 18000 | cat >>conftest.$ac_ext <<_ACEOF |
| 18001 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18002 | |
| 18003 | #include <sys/types.h> |
| 18004 | #ifdef HAVE_SYS_PARAM_H |
| 18005 | # include <sys/param.h> |
| 18006 | #endif |
| 18007 | #include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18008 | |
| 18009 | int |
| 18010 | main () |
| 18011 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18012 | |
| 18013 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18014 | |
| 18015 | ; |
| 18016 | return 0; |
| 18017 | } |
| 18018 | _ACEOF |
| 18019 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18021 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18022 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18024 | rm -f conftest.er1 |
| 18025 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18027 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18028 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18030 | (eval $ac_try) 2>&5 |
| 18031 | ac_status=$? |
| 18032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18033 | (exit $ac_status); }; } && |
| 18034 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18036 | (eval $ac_try) 2>&5 |
| 18037 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18039 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18040 | wine_cv_sys_statfs_has_statfs=yes |
| 18041 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18042 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18044 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18045 | wine_cv_sys_statfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18046 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18047 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18049 | |
| 18050 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18051 | echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18052 | echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18053 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
| 18054 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18055 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18056 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18057 | #define STATFS_DEFINED_BY_SYS_STATFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18058 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18059 | |
| 18060 | fi |
| 18061 | fi |
| 18062 | |
| 18063 | if test "$ac_cv_header_sys_mount_h" = "yes" |
| 18064 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18065 | echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18066 | echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6 |
| 18067 | if test "${wine_cv_sys_mount_has_statfs+set}" = set; then |
| 18068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18069 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18070 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18071 | /* confdefs.h. */ |
| 18072 | _ACEOF |
| 18073 | cat confdefs.h >>conftest.$ac_ext |
| 18074 | cat >>conftest.$ac_ext <<_ACEOF |
| 18075 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18076 | |
| 18077 | #include <sys/types.h> |
| 18078 | #ifdef HAVE_SYS_PARAM_H |
| 18079 | # include <sys/param.h> |
| 18080 | #endif |
| 18081 | #include <sys/mount.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18082 | |
| 18083 | int |
| 18084 | main () |
| 18085 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18086 | |
| 18087 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18088 | |
| 18089 | ; |
| 18090 | return 0; |
| 18091 | } |
| 18092 | _ACEOF |
| 18093 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18095 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18096 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18098 | rm -f conftest.er1 |
| 18099 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18101 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18102 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18104 | (eval $ac_try) 2>&5 |
| 18105 | ac_status=$? |
| 18106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18107 | (exit $ac_status); }; } && |
| 18108 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18110 | (eval $ac_try) 2>&5 |
| 18111 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18113 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18114 | wine_cv_sys_mount_has_statfs=yes |
| 18115 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18116 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18118 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18119 | wine_cv_sys_mount_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18120 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18121 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18123 | |
| 18124 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18125 | echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18126 | echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18127 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
| 18128 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18129 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18130 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18131 | #define STATFS_DEFINED_BY_SYS_MOUNT 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18132 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18133 | |
| 18134 | fi |
| 18135 | fi |
| 18136 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18137 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18138 | echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5 |
| 18139 | echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6 |
| 18140 | if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18142 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18143 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18144 | /* confdefs.h. */ |
| 18145 | _ACEOF |
| 18146 | cat confdefs.h >>conftest.$ac_ext |
| 18147 | cat >>conftest.$ac_ext <<_ACEOF |
| 18148 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18149 | #include <sys/types.h> |
| 18150 | #ifdef HAVE_SYS_PARAM_H |
| 18151 | # include <sys/param.h> |
| 18152 | #endif |
| 18153 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18154 | # include <sys/mount.h> |
| 18155 | #else |
| 18156 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18157 | # include <sys/vfs.h> |
| 18158 | # else |
| 18159 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18160 | # include <sys/statfs.h> |
| 18161 | # endif |
| 18162 | # endif |
| 18163 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18164 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18165 | int |
| 18166 | main () |
| 18167 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18168 | static struct statfs ac_aggr; |
| 18169 | if (ac_aggr.f_bfree) |
| 18170 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18171 | ; |
| 18172 | return 0; |
| 18173 | } |
| 18174 | _ACEOF |
| 18175 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18177 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18178 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18179 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18180 | rm -f conftest.er1 |
| 18181 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18183 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18184 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18186 | (eval $ac_try) 2>&5 |
| 18187 | ac_status=$? |
| 18188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18189 | (exit $ac_status); }; } && |
| 18190 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18192 | (eval $ac_try) 2>&5 |
| 18193 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18195 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18196 | ac_cv_member_struct_statfs_f_bfree=yes |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18197 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18198 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18199 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18200 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18201 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18202 | /* confdefs.h. */ |
| 18203 | _ACEOF |
| 18204 | cat confdefs.h >>conftest.$ac_ext |
| 18205 | cat >>conftest.$ac_ext <<_ACEOF |
| 18206 | /* end confdefs.h. */ |
| 18207 | #include <sys/types.h> |
| 18208 | #ifdef HAVE_SYS_PARAM_H |
| 18209 | # include <sys/param.h> |
| 18210 | #endif |
| 18211 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18212 | # include <sys/mount.h> |
| 18213 | #else |
| 18214 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18215 | # include <sys/vfs.h> |
| 18216 | # else |
| 18217 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18218 | # include <sys/statfs.h> |
| 18219 | # endif |
| 18220 | # endif |
| 18221 | #endif |
| 18222 | |
| 18223 | int |
| 18224 | main () |
| 18225 | { |
| 18226 | static struct statfs ac_aggr; |
| 18227 | if (sizeof ac_aggr.f_bfree) |
| 18228 | return 0; |
| 18229 | ; |
| 18230 | return 0; |
| 18231 | } |
| 18232 | _ACEOF |
| 18233 | rm -f conftest.$ac_objext |
| 18234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18235 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18236 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18237 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18238 | rm -f conftest.er1 |
| 18239 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18241 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18242 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18244 | (eval $ac_try) 2>&5 |
| 18245 | ac_status=$? |
| 18246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18247 | (exit $ac_status); }; } && |
| 18248 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18250 | (eval $ac_try) 2>&5 |
| 18251 | ac_status=$? |
| 18252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18253 | (exit $ac_status); }; }; then |
| 18254 | ac_cv_member_struct_statfs_f_bfree=yes |
| 18255 | else |
| 18256 | echo "$as_me: failed program was:" >&5 |
| 18257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18258 | |
| 18259 | ac_cv_member_struct_statfs_f_bfree=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18260 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18262 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18264 | fi |
| 18265 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5 |
| 18266 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6 |
| 18267 | if test $ac_cv_member_struct_statfs_f_bfree = yes; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18268 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18269 | cat >>confdefs.h <<_ACEOF |
| 18270 | #define HAVE_STRUCT_STATFS_F_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18271 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18272 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18273 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 18274 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18275 | echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5 |
| 18276 | echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6 |
| 18277 | if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 18279 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18280 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18281 | /* confdefs.h. */ |
| 18282 | _ACEOF |
| 18283 | cat confdefs.h >>conftest.$ac_ext |
| 18284 | cat >>conftest.$ac_ext <<_ACEOF |
| 18285 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18286 | #include <sys/types.h> |
| 18287 | #ifdef HAVE_SYS_PARAM_H |
| 18288 | # include <sys/param.h> |
| 18289 | #endif |
| 18290 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18291 | # include <sys/mount.h> |
| 18292 | #else |
| 18293 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18294 | # include <sys/vfs.h> |
| 18295 | # else |
| 18296 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18297 | # include <sys/statfs.h> |
| 18298 | # endif |
| 18299 | # endif |
| 18300 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18301 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18302 | int |
| 18303 | main () |
| 18304 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18305 | static struct statfs ac_aggr; |
| 18306 | if (ac_aggr.f_bavail) |
| 18307 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18308 | ; |
| 18309 | return 0; |
| 18310 | } |
| 18311 | _ACEOF |
| 18312 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18314 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18315 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18317 | rm -f conftest.er1 |
| 18318 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18320 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18323 | (eval $ac_try) 2>&5 |
| 18324 | ac_status=$? |
| 18325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18326 | (exit $ac_status); }; } && |
| 18327 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18329 | (eval $ac_try) 2>&5 |
| 18330 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18332 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18333 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 18334 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18335 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18337 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18338 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18339 | /* confdefs.h. */ |
| 18340 | _ACEOF |
| 18341 | cat confdefs.h >>conftest.$ac_ext |
| 18342 | cat >>conftest.$ac_ext <<_ACEOF |
| 18343 | /* end confdefs.h. */ |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18344 | #include <sys/types.h> |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18345 | #ifdef HAVE_SYS_PARAM_H |
| 18346 | # include <sys/param.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 18347 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18348 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18349 | # include <sys/mount.h> |
| 18350 | #else |
| 18351 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18352 | # include <sys/vfs.h> |
| 18353 | # else |
| 18354 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18355 | # include <sys/statfs.h> |
| 18356 | # endif |
| 18357 | # endif |
| 18358 | #endif |
| 18359 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18360 | int |
| 18361 | main () |
| 18362 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18363 | static struct statfs ac_aggr; |
| 18364 | if (sizeof ac_aggr.f_bavail) |
| 18365 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18366 | ; |
| 18367 | return 0; |
| 18368 | } |
| 18369 | _ACEOF |
| 18370 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18372 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18373 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18375 | rm -f conftest.er1 |
| 18376 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18378 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18379 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18381 | (eval $ac_try) 2>&5 |
| 18382 | ac_status=$? |
| 18383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18384 | (exit $ac_status); }; } && |
| 18385 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18387 | (eval $ac_try) 2>&5 |
| 18388 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18390 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18391 | ac_cv_member_struct_statfs_f_bavail=yes |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18392 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 18393 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 18394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18395 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18396 | ac_cv_member_struct_statfs_f_bavail=no |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18397 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 18399 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 18400 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18401 | fi |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18402 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5 |
| 18403 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6 |
| 18404 | if test $ac_cv_member_struct_statfs_f_bavail = yes; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18405 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18406 | cat >>confdefs.h <<_ACEOF |
| 18407 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 18408 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18409 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 18410 | |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 18411 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18412 | echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5 |
| 18413 | echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6 |
| 18414 | if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then |
| 18415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18416 | else |
| 18417 | cat >conftest.$ac_ext <<_ACEOF |
| 18418 | /* confdefs.h. */ |
| 18419 | _ACEOF |
| 18420 | cat confdefs.h >>conftest.$ac_ext |
| 18421 | cat >>conftest.$ac_ext <<_ACEOF |
| 18422 | /* end confdefs.h. */ |
| 18423 | #include <sys/types.h> |
| 18424 | #ifdef HAVE_SYS_PARAM_H |
| 18425 | # include <sys/param.h> |
| 18426 | #endif |
| 18427 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18428 | # include <sys/mount.h> |
| 18429 | #else |
| 18430 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18431 | # include <sys/vfs.h> |
| 18432 | # else |
| 18433 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18434 | # include <sys/statfs.h> |
| 18435 | # endif |
| 18436 | # endif |
| 18437 | #endif |
| 18438 | |
| 18439 | int |
| 18440 | main () |
| 18441 | { |
| 18442 | static struct statfs ac_aggr; |
| 18443 | if (ac_aggr.f_frsize) |
| 18444 | return 0; |
| 18445 | ; |
| 18446 | return 0; |
| 18447 | } |
| 18448 | _ACEOF |
| 18449 | rm -f conftest.$ac_objext |
| 18450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18451 | (eval $ac_compile) 2>conftest.er1 |
| 18452 | ac_status=$? |
| 18453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18454 | rm -f conftest.er1 |
| 18455 | cat conftest.err >&5 |
| 18456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18457 | (exit $ac_status); } && |
| 18458 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18460 | (eval $ac_try) 2>&5 |
| 18461 | ac_status=$? |
| 18462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18463 | (exit $ac_status); }; } && |
| 18464 | { ac_try='test -s conftest.$ac_objext' |
| 18465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18466 | (eval $ac_try) 2>&5 |
| 18467 | ac_status=$? |
| 18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18469 | (exit $ac_status); }; }; then |
| 18470 | ac_cv_member_struct_statfs_f_frsize=yes |
| 18471 | else |
| 18472 | echo "$as_me: failed program was:" >&5 |
| 18473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18474 | |
| 18475 | cat >conftest.$ac_ext <<_ACEOF |
| 18476 | /* confdefs.h. */ |
| 18477 | _ACEOF |
| 18478 | cat confdefs.h >>conftest.$ac_ext |
| 18479 | cat >>conftest.$ac_ext <<_ACEOF |
| 18480 | /* end confdefs.h. */ |
| 18481 | #include <sys/types.h> |
| 18482 | #ifdef HAVE_SYS_PARAM_H |
| 18483 | # include <sys/param.h> |
| 18484 | #endif |
| 18485 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18486 | # include <sys/mount.h> |
| 18487 | #else |
| 18488 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18489 | # include <sys/vfs.h> |
| 18490 | # else |
| 18491 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18492 | # include <sys/statfs.h> |
| 18493 | # endif |
| 18494 | # endif |
| 18495 | #endif |
| 18496 | |
| 18497 | int |
| 18498 | main () |
| 18499 | { |
| 18500 | static struct statfs ac_aggr; |
| 18501 | if (sizeof ac_aggr.f_frsize) |
| 18502 | return 0; |
| 18503 | ; |
| 18504 | return 0; |
| 18505 | } |
| 18506 | _ACEOF |
| 18507 | rm -f conftest.$ac_objext |
| 18508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18509 | (eval $ac_compile) 2>conftest.er1 |
| 18510 | ac_status=$? |
| 18511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18512 | rm -f conftest.er1 |
| 18513 | cat conftest.err >&5 |
| 18514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18515 | (exit $ac_status); } && |
| 18516 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18518 | (eval $ac_try) 2>&5 |
| 18519 | ac_status=$? |
| 18520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18521 | (exit $ac_status); }; } && |
| 18522 | { ac_try='test -s conftest.$ac_objext' |
| 18523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18524 | (eval $ac_try) 2>&5 |
| 18525 | ac_status=$? |
| 18526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18527 | (exit $ac_status); }; }; then |
| 18528 | ac_cv_member_struct_statfs_f_frsize=yes |
| 18529 | else |
| 18530 | echo "$as_me: failed program was:" >&5 |
| 18531 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18532 | |
| 18533 | ac_cv_member_struct_statfs_f_frsize=no |
| 18534 | fi |
| 18535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18536 | fi |
| 18537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18538 | fi |
| 18539 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5 |
| 18540 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6 |
| 18541 | if test $ac_cv_member_struct_statfs_f_frsize = yes; then |
| 18542 | |
| 18543 | cat >>confdefs.h <<_ACEOF |
| 18544 | #define HAVE_STRUCT_STATFS_F_FRSIZE 1 |
| 18545 | _ACEOF |
| 18546 | |
| 18547 | |
| 18548 | fi |
| 18549 | echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5 |
| 18550 | echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6 |
| 18551 | if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then |
| 18552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18553 | else |
| 18554 | cat >conftest.$ac_ext <<_ACEOF |
| 18555 | /* confdefs.h. */ |
| 18556 | _ACEOF |
| 18557 | cat confdefs.h >>conftest.$ac_ext |
| 18558 | cat >>conftest.$ac_ext <<_ACEOF |
| 18559 | /* end confdefs.h. */ |
| 18560 | #include <sys/types.h> |
| 18561 | #ifdef HAVE_SYS_PARAM_H |
| 18562 | # include <sys/param.h> |
| 18563 | #endif |
| 18564 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18565 | # include <sys/mount.h> |
| 18566 | #else |
| 18567 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18568 | # include <sys/vfs.h> |
| 18569 | # else |
| 18570 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18571 | # include <sys/statfs.h> |
| 18572 | # endif |
| 18573 | # endif |
| 18574 | #endif |
| 18575 | |
| 18576 | int |
| 18577 | main () |
| 18578 | { |
| 18579 | static struct statfs ac_aggr; |
| 18580 | if (ac_aggr.f_ffree) |
| 18581 | return 0; |
| 18582 | ; |
| 18583 | return 0; |
| 18584 | } |
| 18585 | _ACEOF |
| 18586 | rm -f conftest.$ac_objext |
| 18587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18588 | (eval $ac_compile) 2>conftest.er1 |
| 18589 | ac_status=$? |
| 18590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18591 | rm -f conftest.er1 |
| 18592 | cat conftest.err >&5 |
| 18593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18594 | (exit $ac_status); } && |
| 18595 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18597 | (eval $ac_try) 2>&5 |
| 18598 | ac_status=$? |
| 18599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18600 | (exit $ac_status); }; } && |
| 18601 | { ac_try='test -s conftest.$ac_objext' |
| 18602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18603 | (eval $ac_try) 2>&5 |
| 18604 | ac_status=$? |
| 18605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18606 | (exit $ac_status); }; }; then |
| 18607 | ac_cv_member_struct_statfs_f_ffree=yes |
| 18608 | else |
| 18609 | echo "$as_me: failed program was:" >&5 |
| 18610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18611 | |
| 18612 | cat >conftest.$ac_ext <<_ACEOF |
| 18613 | /* confdefs.h. */ |
| 18614 | _ACEOF |
| 18615 | cat confdefs.h >>conftest.$ac_ext |
| 18616 | cat >>conftest.$ac_ext <<_ACEOF |
| 18617 | /* end confdefs.h. */ |
| 18618 | #include <sys/types.h> |
| 18619 | #ifdef HAVE_SYS_PARAM_H |
| 18620 | # include <sys/param.h> |
| 18621 | #endif |
| 18622 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18623 | # include <sys/mount.h> |
| 18624 | #else |
| 18625 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18626 | # include <sys/vfs.h> |
| 18627 | # else |
| 18628 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18629 | # include <sys/statfs.h> |
| 18630 | # endif |
| 18631 | # endif |
| 18632 | #endif |
| 18633 | |
| 18634 | int |
| 18635 | main () |
| 18636 | { |
| 18637 | static struct statfs ac_aggr; |
| 18638 | if (sizeof ac_aggr.f_ffree) |
| 18639 | return 0; |
| 18640 | ; |
| 18641 | return 0; |
| 18642 | } |
| 18643 | _ACEOF |
| 18644 | rm -f conftest.$ac_objext |
| 18645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18646 | (eval $ac_compile) 2>conftest.er1 |
| 18647 | ac_status=$? |
| 18648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18649 | rm -f conftest.er1 |
| 18650 | cat conftest.err >&5 |
| 18651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18652 | (exit $ac_status); } && |
| 18653 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18655 | (eval $ac_try) 2>&5 |
| 18656 | ac_status=$? |
| 18657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18658 | (exit $ac_status); }; } && |
| 18659 | { ac_try='test -s conftest.$ac_objext' |
| 18660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18661 | (eval $ac_try) 2>&5 |
| 18662 | ac_status=$? |
| 18663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18664 | (exit $ac_status); }; }; then |
| 18665 | ac_cv_member_struct_statfs_f_ffree=yes |
| 18666 | else |
| 18667 | echo "$as_me: failed program was:" >&5 |
| 18668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18669 | |
| 18670 | ac_cv_member_struct_statfs_f_ffree=no |
| 18671 | fi |
| 18672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18673 | fi |
| 18674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18675 | fi |
| 18676 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5 |
| 18677 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6 |
| 18678 | if test $ac_cv_member_struct_statfs_f_ffree = yes; then |
| 18679 | |
| 18680 | cat >>confdefs.h <<_ACEOF |
| 18681 | #define HAVE_STRUCT_STATFS_F_FFREE 1 |
| 18682 | _ACEOF |
| 18683 | |
| 18684 | |
| 18685 | fi |
| 18686 | echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5 |
| 18687 | echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6 |
| 18688 | if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then |
| 18689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18690 | else |
| 18691 | cat >conftest.$ac_ext <<_ACEOF |
| 18692 | /* confdefs.h. */ |
| 18693 | _ACEOF |
| 18694 | cat confdefs.h >>conftest.$ac_ext |
| 18695 | cat >>conftest.$ac_ext <<_ACEOF |
| 18696 | /* end confdefs.h. */ |
| 18697 | #include <sys/types.h> |
| 18698 | #ifdef HAVE_SYS_PARAM_H |
| 18699 | # include <sys/param.h> |
| 18700 | #endif |
| 18701 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18702 | # include <sys/mount.h> |
| 18703 | #else |
| 18704 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18705 | # include <sys/vfs.h> |
| 18706 | # else |
| 18707 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18708 | # include <sys/statfs.h> |
| 18709 | # endif |
| 18710 | # endif |
| 18711 | #endif |
| 18712 | |
| 18713 | int |
| 18714 | main () |
| 18715 | { |
| 18716 | static struct statfs ac_aggr; |
| 18717 | if (ac_aggr.f_favail) |
| 18718 | return 0; |
| 18719 | ; |
| 18720 | return 0; |
| 18721 | } |
| 18722 | _ACEOF |
| 18723 | rm -f conftest.$ac_objext |
| 18724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18725 | (eval $ac_compile) 2>conftest.er1 |
| 18726 | ac_status=$? |
| 18727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18728 | rm -f conftest.er1 |
| 18729 | cat conftest.err >&5 |
| 18730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18731 | (exit $ac_status); } && |
| 18732 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18734 | (eval $ac_try) 2>&5 |
| 18735 | ac_status=$? |
| 18736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18737 | (exit $ac_status); }; } && |
| 18738 | { ac_try='test -s conftest.$ac_objext' |
| 18739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18740 | (eval $ac_try) 2>&5 |
| 18741 | ac_status=$? |
| 18742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18743 | (exit $ac_status); }; }; then |
| 18744 | ac_cv_member_struct_statfs_f_favail=yes |
| 18745 | else |
| 18746 | echo "$as_me: failed program was:" >&5 |
| 18747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18748 | |
| 18749 | cat >conftest.$ac_ext <<_ACEOF |
| 18750 | /* confdefs.h. */ |
| 18751 | _ACEOF |
| 18752 | cat confdefs.h >>conftest.$ac_ext |
| 18753 | cat >>conftest.$ac_ext <<_ACEOF |
| 18754 | /* end confdefs.h. */ |
| 18755 | #include <sys/types.h> |
| 18756 | #ifdef HAVE_SYS_PARAM_H |
| 18757 | # include <sys/param.h> |
| 18758 | #endif |
| 18759 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18760 | # include <sys/mount.h> |
| 18761 | #else |
| 18762 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18763 | # include <sys/vfs.h> |
| 18764 | # else |
| 18765 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18766 | # include <sys/statfs.h> |
| 18767 | # endif |
| 18768 | # endif |
| 18769 | #endif |
| 18770 | |
| 18771 | int |
| 18772 | main () |
| 18773 | { |
| 18774 | static struct statfs ac_aggr; |
| 18775 | if (sizeof ac_aggr.f_favail) |
| 18776 | return 0; |
| 18777 | ; |
| 18778 | return 0; |
| 18779 | } |
| 18780 | _ACEOF |
| 18781 | rm -f conftest.$ac_objext |
| 18782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18783 | (eval $ac_compile) 2>conftest.er1 |
| 18784 | ac_status=$? |
| 18785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18786 | rm -f conftest.er1 |
| 18787 | cat conftest.err >&5 |
| 18788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18789 | (exit $ac_status); } && |
| 18790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18792 | (eval $ac_try) 2>&5 |
| 18793 | ac_status=$? |
| 18794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18795 | (exit $ac_status); }; } && |
| 18796 | { ac_try='test -s conftest.$ac_objext' |
| 18797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18798 | (eval $ac_try) 2>&5 |
| 18799 | ac_status=$? |
| 18800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18801 | (exit $ac_status); }; }; then |
| 18802 | ac_cv_member_struct_statfs_f_favail=yes |
| 18803 | else |
| 18804 | echo "$as_me: failed program was:" >&5 |
| 18805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18806 | |
| 18807 | ac_cv_member_struct_statfs_f_favail=no |
| 18808 | fi |
| 18809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18810 | fi |
| 18811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18812 | fi |
| 18813 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5 |
| 18814 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6 |
| 18815 | if test $ac_cv_member_struct_statfs_f_favail = yes; then |
| 18816 | |
| 18817 | cat >>confdefs.h <<_ACEOF |
| 18818 | #define HAVE_STRUCT_STATFS_F_FAVAIL 1 |
| 18819 | _ACEOF |
| 18820 | |
| 18821 | |
| 18822 | fi |
Alexandre Julliard | b859a68 | 2004-03-07 03:16:43 +0000 | [diff] [blame] | 18823 | echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5 |
| 18824 | echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6 |
| 18825 | if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then |
| 18826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18827 | else |
| 18828 | cat >conftest.$ac_ext <<_ACEOF |
| 18829 | /* confdefs.h. */ |
| 18830 | _ACEOF |
| 18831 | cat confdefs.h >>conftest.$ac_ext |
| 18832 | cat >>conftest.$ac_ext <<_ACEOF |
| 18833 | /* end confdefs.h. */ |
| 18834 | #include <sys/types.h> |
| 18835 | #ifdef HAVE_SYS_PARAM_H |
| 18836 | # include <sys/param.h> |
| 18837 | #endif |
| 18838 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18839 | # include <sys/mount.h> |
| 18840 | #else |
| 18841 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18842 | # include <sys/vfs.h> |
| 18843 | # else |
| 18844 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18845 | # include <sys/statfs.h> |
| 18846 | # endif |
| 18847 | # endif |
| 18848 | #endif |
| 18849 | |
| 18850 | int |
| 18851 | main () |
| 18852 | { |
| 18853 | static struct statfs ac_aggr; |
| 18854 | if (ac_aggr.f_namelen) |
| 18855 | return 0; |
| 18856 | ; |
| 18857 | return 0; |
| 18858 | } |
| 18859 | _ACEOF |
| 18860 | rm -f conftest.$ac_objext |
| 18861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18862 | (eval $ac_compile) 2>conftest.er1 |
| 18863 | ac_status=$? |
| 18864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18865 | rm -f conftest.er1 |
| 18866 | cat conftest.err >&5 |
| 18867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18868 | (exit $ac_status); } && |
| 18869 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18871 | (eval $ac_try) 2>&5 |
| 18872 | ac_status=$? |
| 18873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18874 | (exit $ac_status); }; } && |
| 18875 | { ac_try='test -s conftest.$ac_objext' |
| 18876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18877 | (eval $ac_try) 2>&5 |
| 18878 | ac_status=$? |
| 18879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18880 | (exit $ac_status); }; }; then |
| 18881 | ac_cv_member_struct_statfs_f_namelen=yes |
| 18882 | else |
| 18883 | echo "$as_me: failed program was:" >&5 |
| 18884 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18885 | |
| 18886 | cat >conftest.$ac_ext <<_ACEOF |
| 18887 | /* confdefs.h. */ |
| 18888 | _ACEOF |
| 18889 | cat confdefs.h >>conftest.$ac_ext |
| 18890 | cat >>conftest.$ac_ext <<_ACEOF |
| 18891 | /* end confdefs.h. */ |
| 18892 | #include <sys/types.h> |
| 18893 | #ifdef HAVE_SYS_PARAM_H |
| 18894 | # include <sys/param.h> |
| 18895 | #endif |
| 18896 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 18897 | # include <sys/mount.h> |
| 18898 | #else |
| 18899 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 18900 | # include <sys/vfs.h> |
| 18901 | # else |
| 18902 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 18903 | # include <sys/statfs.h> |
| 18904 | # endif |
| 18905 | # endif |
| 18906 | #endif |
| 18907 | |
| 18908 | int |
| 18909 | main () |
| 18910 | { |
| 18911 | static struct statfs ac_aggr; |
| 18912 | if (sizeof ac_aggr.f_namelen) |
| 18913 | return 0; |
| 18914 | ; |
| 18915 | return 0; |
| 18916 | } |
| 18917 | _ACEOF |
| 18918 | rm -f conftest.$ac_objext |
| 18919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18920 | (eval $ac_compile) 2>conftest.er1 |
| 18921 | ac_status=$? |
| 18922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18923 | rm -f conftest.er1 |
| 18924 | cat conftest.err >&5 |
| 18925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18926 | (exit $ac_status); } && |
| 18927 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18929 | (eval $ac_try) 2>&5 |
| 18930 | ac_status=$? |
| 18931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18932 | (exit $ac_status); }; } && |
| 18933 | { ac_try='test -s conftest.$ac_objext' |
| 18934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18935 | (eval $ac_try) 2>&5 |
| 18936 | ac_status=$? |
| 18937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18938 | (exit $ac_status); }; }; then |
| 18939 | ac_cv_member_struct_statfs_f_namelen=yes |
| 18940 | else |
| 18941 | echo "$as_me: failed program was:" >&5 |
| 18942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18943 | |
| 18944 | ac_cv_member_struct_statfs_f_namelen=no |
| 18945 | fi |
| 18946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18947 | fi |
| 18948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18949 | fi |
| 18950 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5 |
| 18951 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6 |
| 18952 | if test $ac_cv_member_struct_statfs_f_namelen = yes; then |
| 18953 | |
| 18954 | cat >>confdefs.h <<_ACEOF |
| 18955 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1 |
| 18956 | _ACEOF |
| 18957 | |
| 18958 | |
| 18959 | fi |
Alexandre Julliard | 13af489 | 2004-03-05 21:03:46 +0000 | [diff] [blame] | 18960 | |
| 18961 | |
| 18962 | echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5 |
| 18963 | echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6 |
| 18964 | if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then |
| 18965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18966 | else |
| 18967 | cat >conftest.$ac_ext <<_ACEOF |
| 18968 | /* confdefs.h. */ |
| 18969 | _ACEOF |
| 18970 | cat confdefs.h >>conftest.$ac_ext |
| 18971 | cat >>conftest.$ac_ext <<_ACEOF |
| 18972 | /* end confdefs.h. */ |
| 18973 | #ifdef HAVE_SYS_STATVFS_H |
| 18974 | #include <sys/statvfs.h> |
| 18975 | #endif |
| 18976 | |
| 18977 | int |
| 18978 | main () |
| 18979 | { |
| 18980 | static struct statvfs ac_aggr; |
| 18981 | if (ac_aggr.f_blocks) |
| 18982 | return 0; |
| 18983 | ; |
| 18984 | return 0; |
| 18985 | } |
| 18986 | _ACEOF |
| 18987 | rm -f conftest.$ac_objext |
| 18988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 18989 | (eval $ac_compile) 2>conftest.er1 |
| 18990 | ac_status=$? |
| 18991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18992 | rm -f conftest.er1 |
| 18993 | cat conftest.err >&5 |
| 18994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18995 | (exit $ac_status); } && |
| 18996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 18997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18998 | (eval $ac_try) 2>&5 |
| 18999 | ac_status=$? |
| 19000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19001 | (exit $ac_status); }; } && |
| 19002 | { ac_try='test -s conftest.$ac_objext' |
| 19003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19004 | (eval $ac_try) 2>&5 |
| 19005 | ac_status=$? |
| 19006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19007 | (exit $ac_status); }; }; then |
| 19008 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 19009 | else |
| 19010 | echo "$as_me: failed program was:" >&5 |
| 19011 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19012 | |
| 19013 | cat >conftest.$ac_ext <<_ACEOF |
| 19014 | /* confdefs.h. */ |
| 19015 | _ACEOF |
| 19016 | cat confdefs.h >>conftest.$ac_ext |
| 19017 | cat >>conftest.$ac_ext <<_ACEOF |
| 19018 | /* end confdefs.h. */ |
| 19019 | #ifdef HAVE_SYS_STATVFS_H |
| 19020 | #include <sys/statvfs.h> |
| 19021 | #endif |
| 19022 | |
| 19023 | int |
| 19024 | main () |
| 19025 | { |
| 19026 | static struct statvfs ac_aggr; |
| 19027 | if (sizeof ac_aggr.f_blocks) |
| 19028 | return 0; |
| 19029 | ; |
| 19030 | return 0; |
| 19031 | } |
| 19032 | _ACEOF |
| 19033 | rm -f conftest.$ac_objext |
| 19034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19035 | (eval $ac_compile) 2>conftest.er1 |
| 19036 | ac_status=$? |
| 19037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19038 | rm -f conftest.er1 |
| 19039 | cat conftest.err >&5 |
| 19040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19041 | (exit $ac_status); } && |
| 19042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19044 | (eval $ac_try) 2>&5 |
| 19045 | ac_status=$? |
| 19046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19047 | (exit $ac_status); }; } && |
| 19048 | { ac_try='test -s conftest.$ac_objext' |
| 19049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19050 | (eval $ac_try) 2>&5 |
| 19051 | ac_status=$? |
| 19052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19053 | (exit $ac_status); }; }; then |
| 19054 | ac_cv_member_struct_statvfs_f_blocks=yes |
| 19055 | else |
| 19056 | echo "$as_me: failed program was:" >&5 |
| 19057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19058 | |
| 19059 | ac_cv_member_struct_statvfs_f_blocks=no |
| 19060 | fi |
| 19061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19062 | fi |
| 19063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19064 | fi |
| 19065 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5 |
| 19066 | echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6 |
| 19067 | if test $ac_cv_member_struct_statvfs_f_blocks = yes; then |
| 19068 | |
| 19069 | cat >>confdefs.h <<_ACEOF |
| 19070 | #define HAVE_STRUCT_STATVFS_F_BLOCKS 1 |
| 19071 | _ACEOF |
| 19072 | |
| 19073 | |
| 19074 | fi |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 19075 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19076 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19077 | echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5 |
| 19078 | echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6 |
| 19079 | if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 19081 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19082 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19083 | /* confdefs.h. */ |
| 19084 | _ACEOF |
| 19085 | cat confdefs.h >>conftest.$ac_ext |
| 19086 | cat >>conftest.$ac_ext <<_ACEOF |
| 19087 | /* end confdefs.h. */ |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 19088 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 19089 | #ifdef HAVE_SYS_SOCKET_H |
| 19090 | # include <sys/socket.h> |
| 19091 | #endif |
| 19092 | #ifdef HAVE_SYS_UN_H |
| 19093 | # include <sys/un.h> |
| 19094 | #endif |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19095 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19096 | int |
| 19097 | main () |
| 19098 | { |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19099 | static struct msghdr ac_aggr; |
| 19100 | if (ac_aggr.msg_accrights) |
| 19101 | return 0; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19102 | ; |
| 19103 | return 0; |
| 19104 | } |
| 19105 | _ACEOF |
| 19106 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19108 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19109 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19111 | rm -f conftest.er1 |
| 19112 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19114 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19117 | (eval $ac_try) 2>&5 |
| 19118 | ac_status=$? |
| 19119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19120 | (exit $ac_status); }; } && |
| 19121 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19123 | (eval $ac_try) 2>&5 |
| 19124 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19126 | (exit $ac_status); }; }; then |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19127 | ac_cv_member_struct_msghdr_msg_accrights=yes |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19128 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19129 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19130 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19131 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19132 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19133 | /* confdefs.h. */ |
| 19134 | _ACEOF |
| 19135 | cat confdefs.h >>conftest.$ac_ext |
| 19136 | cat >>conftest.$ac_ext <<_ACEOF |
| 19137 | /* end confdefs.h. */ |
| 19138 | #include <sys/types.h> |
| 19139 | #ifdef HAVE_SYS_SOCKET_H |
| 19140 | # include <sys/socket.h> |
| 19141 | #endif |
| 19142 | #ifdef HAVE_SYS_UN_H |
| 19143 | # include <sys/un.h> |
| 19144 | #endif |
| 19145 | |
| 19146 | int |
| 19147 | main () |
| 19148 | { |
| 19149 | static struct msghdr ac_aggr; |
| 19150 | if (sizeof ac_aggr.msg_accrights) |
| 19151 | return 0; |
| 19152 | ; |
| 19153 | return 0; |
| 19154 | } |
| 19155 | _ACEOF |
| 19156 | rm -f conftest.$ac_objext |
| 19157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19158 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19159 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19161 | rm -f conftest.er1 |
| 19162 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19164 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19165 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 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); }; } && |
| 19171 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19173 | (eval $ac_try) 2>&5 |
| 19174 | ac_status=$? |
| 19175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19176 | (exit $ac_status); }; }; then |
| 19177 | ac_cv_member_struct_msghdr_msg_accrights=yes |
| 19178 | else |
| 19179 | echo "$as_me: failed program was:" >&5 |
| 19180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19181 | |
| 19182 | ac_cv_member_struct_msghdr_msg_accrights=no |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19183 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19185 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19187 | fi |
| 19188 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5 |
| 19189 | echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6 |
| 19190 | if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19191 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19192 | cat >>confdefs.h <<_ACEOF |
| 19193 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19194 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19195 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19196 | |
| 19197 | fi |
| 19198 | echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 19199 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6 |
| 19200 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
| 19201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19202 | else |
| 19203 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19204 | /* confdefs.h. */ |
| 19205 | _ACEOF |
| 19206 | cat confdefs.h >>conftest.$ac_ext |
| 19207 | cat >>conftest.$ac_ext <<_ACEOF |
| 19208 | /* end confdefs.h. */ |
| 19209 | #include <sys/types.h> |
| 19210 | #ifdef HAVE_SYS_SOCKET_H |
| 19211 | # include <sys/socket.h> |
| 19212 | #endif |
| 19213 | #ifdef HAVE_SYS_UN_H |
| 19214 | # include <sys/un.h> |
| 19215 | #endif |
| 19216 | |
| 19217 | int |
| 19218 | main () |
| 19219 | { |
| 19220 | static struct sockaddr ac_aggr; |
| 19221 | if (ac_aggr.sa_len) |
| 19222 | return 0; |
| 19223 | ; |
| 19224 | return 0; |
| 19225 | } |
| 19226 | _ACEOF |
| 19227 | rm -f conftest.$ac_objext |
| 19228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19229 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19230 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19232 | rm -f conftest.er1 |
| 19233 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19235 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19236 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19238 | (eval $ac_try) 2>&5 |
| 19239 | ac_status=$? |
| 19240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19241 | (exit $ac_status); }; } && |
| 19242 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19244 | (eval $ac_try) 2>&5 |
| 19245 | ac_status=$? |
| 19246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19247 | (exit $ac_status); }; }; then |
| 19248 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 19249 | else |
| 19250 | echo "$as_me: failed program was:" >&5 |
| 19251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19252 | |
| 19253 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19254 | /* confdefs.h. */ |
| 19255 | _ACEOF |
| 19256 | cat confdefs.h >>conftest.$ac_ext |
| 19257 | cat >>conftest.$ac_ext <<_ACEOF |
| 19258 | /* end confdefs.h. */ |
| 19259 | #include <sys/types.h> |
| 19260 | #ifdef HAVE_SYS_SOCKET_H |
| 19261 | # include <sys/socket.h> |
| 19262 | #endif |
| 19263 | #ifdef HAVE_SYS_UN_H |
| 19264 | # include <sys/un.h> |
| 19265 | #endif |
| 19266 | |
| 19267 | int |
| 19268 | main () |
| 19269 | { |
| 19270 | static struct sockaddr ac_aggr; |
| 19271 | if (sizeof ac_aggr.sa_len) |
| 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 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19279 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19280 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19281 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19282 | rm -f conftest.er1 |
| 19283 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19285 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 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' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 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_sockaddr_sa_len=yes |
| 19299 | else |
| 19300 | echo "$as_me: failed program was:" >&5 |
| 19301 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19302 | |
| 19303 | ac_cv_member_struct_sockaddr_sa_len=no |
| 19304 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19306 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19308 | fi |
| 19309 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 19310 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6 |
| 19311 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
| 19312 | |
| 19313 | cat >>confdefs.h <<_ACEOF |
| 19314 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 |
| 19315 | _ACEOF |
| 19316 | |
| 19317 | |
| 19318 | fi |
| 19319 | echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5 |
| 19320 | echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6 |
| 19321 | if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then |
| 19322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19323 | else |
| 19324 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19325 | /* confdefs.h. */ |
| 19326 | _ACEOF |
| 19327 | cat confdefs.h >>conftest.$ac_ext |
| 19328 | cat >>conftest.$ac_ext <<_ACEOF |
| 19329 | /* end confdefs.h. */ |
| 19330 | #include <sys/types.h> |
| 19331 | #ifdef HAVE_SYS_SOCKET_H |
| 19332 | # include <sys/socket.h> |
| 19333 | #endif |
| 19334 | #ifdef HAVE_SYS_UN_H |
| 19335 | # include <sys/un.h> |
| 19336 | #endif |
| 19337 | |
| 19338 | int |
| 19339 | main () |
| 19340 | { |
| 19341 | static struct sockaddr_un ac_aggr; |
| 19342 | if (ac_aggr.sun_len) |
| 19343 | return 0; |
| 19344 | ; |
| 19345 | return 0; |
| 19346 | } |
| 19347 | _ACEOF |
| 19348 | rm -f conftest.$ac_objext |
| 19349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19350 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19351 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19352 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19353 | rm -f conftest.er1 |
| 19354 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19356 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19357 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19359 | (eval $ac_try) 2>&5 |
| 19360 | ac_status=$? |
| 19361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19362 | (exit $ac_status); }; } && |
| 19363 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19365 | (eval $ac_try) 2>&5 |
| 19366 | ac_status=$? |
| 19367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19368 | (exit $ac_status); }; }; then |
| 19369 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 19370 | else |
| 19371 | echo "$as_me: failed program was:" >&5 |
| 19372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19373 | |
| 19374 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19375 | /* confdefs.h. */ |
| 19376 | _ACEOF |
| 19377 | cat confdefs.h >>conftest.$ac_ext |
| 19378 | cat >>conftest.$ac_ext <<_ACEOF |
| 19379 | /* end confdefs.h. */ |
| 19380 | #include <sys/types.h> |
| 19381 | #ifdef HAVE_SYS_SOCKET_H |
| 19382 | # include <sys/socket.h> |
| 19383 | #endif |
| 19384 | #ifdef HAVE_SYS_UN_H |
| 19385 | # include <sys/un.h> |
| 19386 | #endif |
| 19387 | |
| 19388 | int |
| 19389 | main () |
| 19390 | { |
| 19391 | static struct sockaddr_un ac_aggr; |
| 19392 | if (sizeof ac_aggr.sun_len) |
| 19393 | return 0; |
| 19394 | ; |
| 19395 | return 0; |
| 19396 | } |
| 19397 | _ACEOF |
| 19398 | rm -f conftest.$ac_objext |
| 19399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19400 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19401 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19403 | rm -f conftest.er1 |
| 19404 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19406 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19409 | (eval $ac_try) 2>&5 |
| 19410 | ac_status=$? |
| 19411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19412 | (exit $ac_status); }; } && |
| 19413 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19415 | (eval $ac_try) 2>&5 |
| 19416 | ac_status=$? |
| 19417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19418 | (exit $ac_status); }; }; then |
| 19419 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
| 19420 | else |
| 19421 | echo "$as_me: failed program was:" >&5 |
| 19422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19423 | |
| 19424 | ac_cv_member_struct_sockaddr_un_sun_len=no |
| 19425 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19427 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19429 | fi |
| 19430 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5 |
| 19431 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6 |
| 19432 | if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then |
| 19433 | |
| 19434 | cat >>confdefs.h <<_ACEOF |
| 19435 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 |
| 19436 | _ACEOF |
| 19437 | |
| 19438 | |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19439 | fi |
| 19440 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19441 | |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19442 | echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5 |
| 19443 | echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6 |
| 19444 | if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then |
| 19445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19446 | else |
| 19447 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19448 | /* confdefs.h. */ |
| 19449 | _ACEOF |
| 19450 | cat confdefs.h >>conftest.$ac_ext |
| 19451 | cat >>conftest.$ac_ext <<_ACEOF |
| 19452 | /* end confdefs.h. */ |
| 19453 | #include <signal.h> |
| 19454 | |
| 19455 | int |
| 19456 | main () |
| 19457 | { |
| 19458 | static siginfo_t ac_aggr; |
| 19459 | if (ac_aggr.si_fd) |
| 19460 | return 0; |
| 19461 | ; |
| 19462 | return 0; |
| 19463 | } |
| 19464 | _ACEOF |
| 19465 | rm -f conftest.$ac_objext |
| 19466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19467 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19468 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19470 | rm -f conftest.er1 |
| 19471 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19473 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19476 | (eval $ac_try) 2>&5 |
| 19477 | ac_status=$? |
| 19478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19479 | (exit $ac_status); }; } && |
| 19480 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19482 | (eval $ac_try) 2>&5 |
| 19483 | ac_status=$? |
| 19484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19485 | (exit $ac_status); }; }; then |
| 19486 | ac_cv_member_siginfo_t_si_fd=yes |
| 19487 | else |
| 19488 | echo "$as_me: failed program was:" >&5 |
| 19489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19490 | |
| 19491 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19492 | /* confdefs.h. */ |
| 19493 | _ACEOF |
| 19494 | cat confdefs.h >>conftest.$ac_ext |
| 19495 | cat >>conftest.$ac_ext <<_ACEOF |
| 19496 | /* end confdefs.h. */ |
| 19497 | #include <signal.h> |
| 19498 | |
| 19499 | int |
| 19500 | main () |
| 19501 | { |
| 19502 | static siginfo_t ac_aggr; |
| 19503 | if (sizeof ac_aggr.si_fd) |
| 19504 | return 0; |
| 19505 | ; |
| 19506 | return 0; |
| 19507 | } |
| 19508 | _ACEOF |
| 19509 | rm -f conftest.$ac_objext |
| 19510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19511 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19512 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19514 | rm -f conftest.er1 |
| 19515 | cat conftest.err >&5 |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19517 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19520 | (eval $ac_try) 2>&5 |
| 19521 | ac_status=$? |
| 19522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19523 | (exit $ac_status); }; } && |
| 19524 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19526 | (eval $ac_try) 2>&5 |
| 19527 | ac_status=$? |
| 19528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19529 | (exit $ac_status); }; }; then |
| 19530 | ac_cv_member_siginfo_t_si_fd=yes |
| 19531 | else |
| 19532 | echo "$as_me: failed program was:" >&5 |
| 19533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19534 | |
| 19535 | ac_cv_member_siginfo_t_si_fd=no |
| 19536 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19538 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 5537dbb | 2003-03-28 00:36:12 +0000 | [diff] [blame] | 19540 | fi |
| 19541 | echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5 |
| 19542 | echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6 |
| 19543 | if test $ac_cv_member_siginfo_t_si_fd = yes; then |
| 19544 | |
| 19545 | cat >>confdefs.h <<_ACEOF |
| 19546 | #define HAVE_SIGINFO_T_SI_FD 1 |
| 19547 | _ACEOF |
| 19548 | |
| 19549 | |
| 19550 | fi |
| 19551 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19552 | |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19553 | echo "$as_me:$LINENO: checking for struct option.name" >&5 |
| 19554 | echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6 |
| 19555 | if test "${ac_cv_member_struct_option_name+set}" = set; then |
| 19556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19557 | else |
| 19558 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19559 | /* confdefs.h. */ |
| 19560 | _ACEOF |
| 19561 | cat confdefs.h >>conftest.$ac_ext |
| 19562 | cat >>conftest.$ac_ext <<_ACEOF |
| 19563 | /* end confdefs.h. */ |
| 19564 | #ifdef HAVE_GETOPT_H |
| 19565 | #include <getopt.h> |
| 19566 | #endif |
| 19567 | |
| 19568 | int |
| 19569 | main () |
| 19570 | { |
| 19571 | static struct option ac_aggr; |
| 19572 | if (ac_aggr.name) |
| 19573 | return 0; |
| 19574 | ; |
| 19575 | return 0; |
| 19576 | } |
| 19577 | _ACEOF |
| 19578 | rm -f conftest.$ac_objext |
| 19579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19580 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19581 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19583 | rm -f conftest.er1 |
| 19584 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19586 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19589 | (eval $ac_try) 2>&5 |
| 19590 | ac_status=$? |
| 19591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19592 | (exit $ac_status); }; } && |
| 19593 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19595 | (eval $ac_try) 2>&5 |
| 19596 | ac_status=$? |
| 19597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19598 | (exit $ac_status); }; }; then |
| 19599 | ac_cv_member_struct_option_name=yes |
| 19600 | else |
| 19601 | echo "$as_me: failed program was:" >&5 |
| 19602 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19603 | |
| 19604 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19605 | /* confdefs.h. */ |
| 19606 | _ACEOF |
| 19607 | cat confdefs.h >>conftest.$ac_ext |
| 19608 | cat >>conftest.$ac_ext <<_ACEOF |
| 19609 | /* end confdefs.h. */ |
| 19610 | #ifdef HAVE_GETOPT_H |
| 19611 | #include <getopt.h> |
| 19612 | #endif |
| 19613 | |
| 19614 | int |
| 19615 | main () |
| 19616 | { |
| 19617 | static struct option ac_aggr; |
| 19618 | if (sizeof ac_aggr.name) |
| 19619 | return 0; |
| 19620 | ; |
| 19621 | return 0; |
| 19622 | } |
| 19623 | _ACEOF |
| 19624 | rm -f conftest.$ac_objext |
| 19625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19626 | (eval $ac_compile) 2>conftest.er1 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19627 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19629 | rm -f conftest.er1 |
| 19630 | cat conftest.err >&5 |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19632 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19633 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19635 | (eval $ac_try) 2>&5 |
| 19636 | ac_status=$? |
| 19637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19638 | (exit $ac_status); }; } && |
| 19639 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19641 | (eval $ac_try) 2>&5 |
| 19642 | ac_status=$? |
| 19643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19644 | (exit $ac_status); }; }; then |
| 19645 | ac_cv_member_struct_option_name=yes |
| 19646 | else |
| 19647 | echo "$as_me: failed program was:" >&5 |
| 19648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19649 | |
| 19650 | ac_cv_member_struct_option_name=no |
| 19651 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19653 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | db89a54 | 2003-04-20 02:56:14 +0000 | [diff] [blame] | 19655 | fi |
| 19656 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5 |
| 19657 | echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6 |
| 19658 | if test $ac_cv_member_struct_option_name = yes; then |
| 19659 | |
| 19660 | cat >>confdefs.h <<_ACEOF |
| 19661 | #define HAVE_STRUCT_OPTION_NAME 1 |
| 19662 | _ACEOF |
| 19663 | |
| 19664 | |
| 19665 | fi |
| 19666 | |
| 19667 | |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19668 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 19669 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 19670 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 19671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19672 | else |
| 19673 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19674 | /* confdefs.h. */ |
| 19675 | _ACEOF |
| 19676 | cat confdefs.h >>conftest.$ac_ext |
| 19677 | cat >>conftest.$ac_ext <<_ACEOF |
| 19678 | /* end confdefs.h. */ |
| 19679 | $ac_includes_default |
| 19680 | int |
| 19681 | main () |
| 19682 | { |
| 19683 | static struct stat ac_aggr; |
| 19684 | if (ac_aggr.st_blocks) |
| 19685 | return 0; |
| 19686 | ; |
| 19687 | return 0; |
| 19688 | } |
| 19689 | _ACEOF |
| 19690 | rm -f conftest.$ac_objext |
| 19691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19692 | (eval $ac_compile) 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19693 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19694 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19695 | rm -f conftest.er1 |
| 19696 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19698 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19699 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19701 | (eval $ac_try) 2>&5 |
| 19702 | ac_status=$? |
| 19703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19704 | (exit $ac_status); }; } && |
| 19705 | { ac_try='test -s conftest.$ac_objext' |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19707 | (eval $ac_try) 2>&5 |
| 19708 | ac_status=$? |
| 19709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19710 | (exit $ac_status); }; }; then |
| 19711 | ac_cv_member_struct_stat_st_blocks=yes |
| 19712 | else |
| 19713 | echo "$as_me: failed program was:" >&5 |
| 19714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19715 | |
| 19716 | cat >conftest.$ac_ext <<_ACEOF |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19717 | /* confdefs.h. */ |
| 19718 | _ACEOF |
| 19719 | cat confdefs.h >>conftest.$ac_ext |
| 19720 | cat >>conftest.$ac_ext <<_ACEOF |
| 19721 | /* end confdefs.h. */ |
| 19722 | $ac_includes_default |
| 19723 | int |
| 19724 | main () |
| 19725 | { |
| 19726 | static struct stat ac_aggr; |
| 19727 | if (sizeof ac_aggr.st_blocks) |
| 19728 | return 0; |
| 19729 | ; |
| 19730 | return 0; |
| 19731 | } |
| 19732 | _ACEOF |
| 19733 | rm -f conftest.$ac_objext |
| 19734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19735 | (eval $ac_compile) 2>conftest.er1 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19736 | ac_status=$? |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19737 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19738 | rm -f conftest.er1 |
| 19739 | cat conftest.err >&5 |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19741 | (exit $ac_status); } && |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 19743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19744 | (eval $ac_try) 2>&5 |
| 19745 | ac_status=$? |
| 19746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19747 | (exit $ac_status); }; } && |
| 19748 | { ac_try='test -s conftest.$ac_objext' |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19750 | (eval $ac_try) 2>&5 |
| 19751 | ac_status=$? |
| 19752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19753 | (exit $ac_status); }; }; then |
| 19754 | ac_cv_member_struct_stat_st_blocks=yes |
| 19755 | else |
| 19756 | echo "$as_me: failed program was:" >&5 |
| 19757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19758 | |
| 19759 | ac_cv_member_struct_stat_st_blocks=no |
| 19760 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19762 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 19763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | d650719 | 2003-10-03 03:28:40 +0000 | [diff] [blame] | 19764 | fi |
| 19765 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 19766 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 19767 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
| 19768 | |
| 19769 | cat >>confdefs.h <<_ACEOF |
| 19770 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 19771 | _ACEOF |
| 19772 | |
| 19773 | |
| 19774 | fi |
| 19775 | |
| 19776 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19777 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 19778 | case $host_cpu in |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19779 | *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] | 19780 | 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] | 19781 | if test "${ac_cv_cpp_def___i386__+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 19783 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19784 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19785 | /* confdefs.h. */ |
| 19786 | _ACEOF |
| 19787 | cat confdefs.h >>conftest.$ac_ext |
| 19788 | cat >>conftest.$ac_ext <<_ACEOF |
| 19789 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19790 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 19791 | yes |
| 19792 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19793 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 19794 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19795 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19796 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 19797 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19798 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 19799 | fi |
| 19800 | rm -f conftest* |
| 19801 | |
| 19802 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19803 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5 |
| 19804 | echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6 |
| 19805 | if test $ac_cv_cpp_def___i386__ = yes; then |
| 19806 | CFLAGS="$CFLAGS -D__i386__" |
| 19807 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 19808 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19809 | ;; |
| 19810 | *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] | 19811 | 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] | 19812 | if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 19813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19814 | else |
| 19815 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19816 | /* confdefs.h. */ |
| 19817 | _ACEOF |
| 19818 | cat confdefs.h >>conftest.$ac_ext |
| 19819 | cat >>conftest.$ac_ext <<_ACEOF |
| 19820 | /* end confdefs.h. */ |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 19821 | #ifndef __ALPHA__ |
| 19822 | yes |
| 19823 | #endif |
| 19824 | _ACEOF |
| 19825 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19826 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19827 | ac_cv_cpp_def___ALPHA__=yes |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 19828 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19829 | ac_cv_cpp_def___ALPHA__=no |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 19830 | fi |
| 19831 | rm -f conftest* |
| 19832 | |
| 19833 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19834 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5 |
| 19835 | echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6 |
| 19836 | if test $ac_cv_cpp_def___ALPHA__ = yes; then |
| 19837 | CFLAGS="$CFLAGS -D__ALPHA__" |
| 19838 | LINTFLAGS="$LINTFLAGS -D__ALPHA__" |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 19839 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19840 | ;; |
| 19841 | *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] | 19842 | 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] | 19843 | if test "${ac_cv_cpp_def___sparc__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 19844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19845 | else |
| 19846 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19847 | /* confdefs.h. */ |
| 19848 | _ACEOF |
| 19849 | cat confdefs.h >>conftest.$ac_ext |
| 19850 | cat >>conftest.$ac_ext <<_ACEOF |
| 19851 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 19852 | #ifndef __sparc__ |
| 19853 | yes |
| 19854 | #endif |
| 19855 | _ACEOF |
| 19856 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19857 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19858 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 19859 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19860 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 19861 | fi |
| 19862 | rm -f conftest* |
| 19863 | |
| 19864 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19865 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5 |
| 19866 | echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6 |
| 19867 | if test $ac_cv_cpp_def___sparc__ = yes; then |
| 19868 | CFLAGS="$CFLAGS -D__sparc__" |
| 19869 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 19870 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19871 | ;; |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 19872 | *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5 |
| 19873 | echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6 |
| 19874 | if test "${ac_cv_cpp_def___powerpc__+set}" = set; then |
| 19875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19876 | else |
| 19877 | cat >conftest.$ac_ext <<_ACEOF |
Pierre d'Herbemont | b64b7de | 2003-07-16 23:37:22 +0000 | [diff] [blame] | 19878 | /* confdefs.h. */ |
| 19879 | _ACEOF |
| 19880 | cat confdefs.h >>conftest.$ac_ext |
| 19881 | cat >>conftest.$ac_ext <<_ACEOF |
| 19882 | /* end confdefs.h. */ |
| 19883 | #ifndef __powerpc__ |
| 19884 | yes |
| 19885 | #endif |
| 19886 | _ACEOF |
| 19887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19888 | $EGREP "yes" >/dev/null 2>&1; then |
| 19889 | ac_cv_cpp_def___powerpc__=yes |
| 19890 | else |
| 19891 | ac_cv_cpp_def___powerpc__=no |
| 19892 | fi |
| 19893 | rm -f conftest* |
| 19894 | |
| 19895 | fi |
| 19896 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5 |
| 19897 | echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6 |
| 19898 | if test $ac_cv_cpp_def___powerpc__ = yes; then |
| 19899 | CFLAGS="$CFLAGS -D__powerpc__" |
| 19900 | LINTFLAGS="$LINTFLAGS -D__powerpc__" |
| 19901 | fi |
| 19902 | ;; |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19903 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 19904 | |
| 19905 | case $host_vendor in |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19906 | *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] | 19907 | 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] | 19908 | if test "${ac_cv_cpp_def___sun__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 19909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19910 | else |
| 19911 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 19912 | /* confdefs.h. */ |
| 19913 | _ACEOF |
| 19914 | cat confdefs.h >>conftest.$ac_ext |
| 19915 | cat >>conftest.$ac_ext <<_ACEOF |
| 19916 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 19917 | #ifndef __sun__ |
| 19918 | yes |
| 19919 | #endif |
| 19920 | _ACEOF |
| 19921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19922 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19923 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 19924 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19925 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 19926 | fi |
| 19927 | rm -f conftest* |
| 19928 | |
| 19929 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19930 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5 |
| 19931 | echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6 |
| 19932 | if test $ac_cv_cpp_def___sun__ = yes; then |
| 19933 | CFLAGS="$CFLAGS -D__sun__" |
| 19934 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 19935 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 19936 | ;; |
| 19937 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 19938 | |
| 19939 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19940 | |
| 19941 | |
| 19942 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19943 | ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 19944 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19945 | ac_config_commands="$ac_config_commands dlls/ddraw/dclipper" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 19946 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19947 | ac_config_commands="$ac_config_commands dlls/ddraw/ddraw" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 19948 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19949 | ac_config_commands="$ac_config_commands dlls/ddraw/direct3d" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 19950 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19951 | ac_config_commands="$ac_config_commands dlls/ddraw/dpalette" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 19952 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19953 | ac_config_commands="$ac_config_commands dlls/ddraw/dsurface" |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 19954 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19955 | ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 19956 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19957 | ac_config_commands="$ac_config_commands dlls/gdi/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 19958 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19959 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19960 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19961 | ac_config_commands="$ac_config_commands dlls/user/dde" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19962 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19963 | ac_config_commands="$ac_config_commands dlls/user/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19964 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19965 | ac_config_commands="$ac_config_commands dlls/wineps/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19966 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19967 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19968 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19969 | ac_config_commands="$ac_config_commands misc" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 19970 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19971 | ac_config_commands="$ac_config_commands programs/regedit/tests" |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 19972 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 19973 | ac_config_commands="$ac_config_commands windows" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 19974 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 19975 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 19976 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19977 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19978 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 19979 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 19980 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19981 | |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 19982 | MAKE_TEST_RULES=dlls/Maketest.rules |
| 19983 | |
| 19984 | |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 19985 | MAKE_LIB_RULES=libs/Makelib.rules |
| 19986 | |
| 19987 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 19988 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 19989 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 19990 | |
Huw Davies | 4046846 | 2005-01-28 14:13:08 +0000 | [diff] [blame] | 19991 | 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/advpack/tests/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/cryptdll/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/lzexpand/tests/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/mscms/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msi/tests/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/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/secur32/Makefile dlls/sensapi/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/stdole32.tlb/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/wtsapi32/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] | 19992 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 19993 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19994 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 19995 | # This file is a shell script that caches the results of configure |
| 19996 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 19997 | # scripts and configure runs, see configure's option --config-cache. |
| 19998 | # It is not useful on other systems. If it contains results you don't |
| 19999 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20000 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20001 | # config.status only pays attention to the cache file if you give it |
| 20002 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20003 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20004 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20005 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20006 | # following values. |
| 20007 | |
| 20008 | _ACEOF |
| 20009 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 20010 | # The following way of writing the cache mishandles newlines in values, |
| 20011 | # but we know of no workaround that is simple, portable, and efficient. |
| 20012 | # So, don't put newlines in cache variables' values. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20013 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20014 | # 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] | 20015 | { |
| 20016 | (set) 2>&1 | |
| 20017 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 20018 | *ac_space=\ *) |
| 20019 | # `set' does not quote correctly, so add quotes (double-quote |
| 20020 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 20021 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20022 | "s/'/'\\\\''/g; |
| 20023 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20024 | ;; |
| 20025 | *) |
| 20026 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 20027 | sed -n \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20028 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20029 | ;; |
| 20030 | esac; |
| 20031 | } | |
| 20032 | sed ' |
| 20033 | t clear |
| 20034 | : clear |
| 20035 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20036 | t end |
| 20037 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20038 | : end' >>confcache |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20039 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20040 | if test -w $cache_file; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20041 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 20042 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20043 | else |
| 20044 | echo "not updating unwritable cache $cache_file" |
| 20045 | fi |
| 20046 | fi |
| 20047 | rm -f confcache |
| 20048 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20049 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20050 | # Let make expand exec_prefix. |
| 20051 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 20052 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20053 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20054 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20055 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20056 | # (actually we leave an empty line to preserve line numbers). |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20057 | if test "x$srcdir" = x.; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20058 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20059 | s/:*\$(srcdir):*/:/; |
| 20060 | s/:*\${srcdir}:*/:/; |
| 20061 | s/:*@srcdir@:*/:/; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20062 | s/^\([^=]*=[ ]*\):*/\1/; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20063 | s/:*$//; |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20064 | s/^[^=]*=[ ]*$//; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20065 | }' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20066 | fi |
| 20067 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 20068 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20069 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20070 | ac_libobjs= |
| 20071 | ac_ltlibobjs= |
| 20072 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20073 | # 1. Remove the extension, and $U if already installed. |
| 20074 | ac_i=`echo "$ac_i" | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20075 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20076 | # 2. Add them. |
| 20077 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 20078 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 20079 | done |
| 20080 | LIBOBJS=$ac_libobjs |
| 20081 | |
| 20082 | LTLIBOBJS=$ac_ltlibobjs |
| 20083 | |
| 20084 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20085 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20086 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20087 | ac_clean_files_save=$ac_clean_files |
| 20088 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20089 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20090 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20091 | cat >$CONFIG_STATUS <<_ACEOF |
| 20092 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20093 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20094 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20095 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20096 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20097 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20098 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20099 | ac_cs_recheck=false |
| 20100 | ac_cs_silent=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20101 | SHELL=\${CONFIG_SHELL-$SHELL} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20102 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20103 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20104 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20105 | ## --------------------- ## |
| 20106 | ## M4sh Initialization. ## |
| 20107 | ## --------------------- ## |
| 20108 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20109 | # Be Bourne compatible |
| 20110 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20111 | emulate sh |
| 20112 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20113 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20114 | # is contrary to our usage. Disable this feature. |
| 20115 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20116 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20117 | set -o posix |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 20118 | fi |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20119 | DUALCASE=1; export DUALCASE # for MKS sh |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20120 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20121 | # Support unset when possible. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20122 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20123 | as_unset=unset |
| 20124 | else |
| 20125 | as_unset=false |
| 20126 | fi |
| 20127 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20128 | |
| 20129 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20130 | $as_unset ENV MAIL MAILPATH |
| 20131 | PS1='$ ' |
| 20132 | PS2='> ' |
| 20133 | PS4='+ ' |
| 20134 | |
| 20135 | # NLS nuisances. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20136 | for as_var in \ |
| 20137 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20138 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20139 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20140 | do |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20141 | 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] | 20142 | eval $as_var=C; export $as_var |
| 20143 | else |
| 20144 | $as_unset $as_var |
| 20145 | fi |
| 20146 | done |
| 20147 | |
| 20148 | # Required to use basename. |
| 20149 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20150 | as_expr=expr |
| 20151 | else |
| 20152 | as_expr=false |
| 20153 | fi |
| 20154 | |
| 20155 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 20156 | as_basename=basename |
| 20157 | else |
| 20158 | as_basename=false |
| 20159 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20160 | |
| 20161 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20162 | # Name of the executable. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20163 | as_me=`$as_basename "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20164 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20165 | X"$0" : 'X\(//\)$' \| \ |
| 20166 | X"$0" : 'X\(/\)$' \| \ |
| 20167 | . : '\(.\)' 2>/dev/null || |
| 20168 | echo X/"$0" | |
| 20169 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 20170 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 20171 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 20172 | s/.*/./; q'` |
| 20173 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20174 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20175 | # PATH needs CR, and LINENO needs CR and PATH. |
| 20176 | # Avoid depending upon Character Ranges. |
| 20177 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20178 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20179 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20180 | as_cr_digits='0123456789' |
| 20181 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20182 | |
| 20183 | # The user is always right. |
| 20184 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20185 | echo "#! /bin/sh" >conf$$.sh |
| 20186 | echo "exit 0" >>conf$$.sh |
| 20187 | chmod +x conf$$.sh |
| 20188 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20189 | PATH_SEPARATOR=';' |
| 20190 | else |
| 20191 | PATH_SEPARATOR=: |
| 20192 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20193 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20194 | fi |
| 20195 | |
| 20196 | |
| 20197 | as_lineno_1=$LINENO |
| 20198 | as_lineno_2=$LINENO |
| 20199 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20200 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20201 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 20202 | # Find who we are. Look in the path if we contain no path at all |
| 20203 | # relative or not. |
| 20204 | case $0 in |
| 20205 | *[\\/]* ) as_myself=$0 ;; |
| 20206 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20207 | for as_dir in $PATH |
| 20208 | do |
| 20209 | IFS=$as_save_IFS |
| 20210 | test -z "$as_dir" && as_dir=. |
| 20211 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20212 | done |
| 20213 | |
| 20214 | ;; |
| 20215 | esac |
| 20216 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20217 | # in which case we are not to be found in the path. |
| 20218 | if test "x$as_myself" = x; then |
| 20219 | as_myself=$0 |
| 20220 | fi |
| 20221 | if test ! -f "$as_myself"; then |
| 20222 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 20223 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 20224 | { (exit 1); exit 1; }; } |
| 20225 | fi |
| 20226 | case $CONFIG_SHELL in |
| 20227 | '') |
| 20228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20229 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 20230 | do |
| 20231 | IFS=$as_save_IFS |
| 20232 | test -z "$as_dir" && as_dir=. |
| 20233 | for as_base in sh bash ksh sh5; do |
| 20234 | case $as_dir in |
| 20235 | /*) |
| 20236 | if ("$as_dir/$as_base" -c ' |
| 20237 | as_lineno_1=$LINENO |
| 20238 | as_lineno_2=$LINENO |
| 20239 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20240 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20241 | 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] | 20242 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 20243 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20244 | CONFIG_SHELL=$as_dir/$as_base |
| 20245 | export CONFIG_SHELL |
| 20246 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 20247 | fi;; |
| 20248 | esac |
| 20249 | done |
| 20250 | done |
| 20251 | ;; |
| 20252 | esac |
| 20253 | |
| 20254 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20255 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20256 | # line-number line before each line; the second 'sed' does the real |
| 20257 | # work. The second script uses 'N' to pair each line-number line |
| 20258 | # with the numbered line, and appends trailing '-' during |
| 20259 | # substitution so that $LINENO is not a special case at line end. |
| 20260 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20261 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 20262 | sed '=' <$as_myself | |
| 20263 | sed ' |
| 20264 | N |
| 20265 | s,$,-, |
| 20266 | : loop |
| 20267 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 20268 | t loop |
| 20269 | s,-$,, |
| 20270 | s,^['$as_cr_digits']*\n,, |
| 20271 | ' >$as_me.lineno && |
| 20272 | chmod +x $as_me.lineno || |
| 20273 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 20274 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 20275 | { (exit 1); exit 1; }; } |
| 20276 | |
| 20277 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20278 | # (the dirname of $[0] is not the place where we might find the |
| 20279 | # original and so on. Autoconf is especially sensible to this). |
| 20280 | . ./$as_me.lineno |
| 20281 | # Exit status is that of the last command. |
| 20282 | exit |
| 20283 | } |
| 20284 | |
| 20285 | |
| 20286 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 20287 | *c*,-n*) ECHO_N= ECHO_C=' |
| 20288 | ' ECHO_T=' ' ;; |
| 20289 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 20290 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 20291 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20292 | |
| 20293 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20294 | as_expr=expr |
| 20295 | else |
| 20296 | as_expr=false |
| 20297 | fi |
| 20298 | |
| 20299 | rm -f conf$$ conf$$.exe conf$$.file |
| 20300 | echo >conf$$.file |
| 20301 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20302 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 20303 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 20304 | if test -f conf$$.exe; then |
| 20305 | # Don't use ln at all; we don't have any links |
| 20306 | as_ln_s='cp -p' |
| 20307 | else |
| 20308 | as_ln_s='ln -s' |
| 20309 | fi |
| 20310 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20311 | as_ln_s=ln |
| 20312 | else |
| 20313 | as_ln_s='cp -p' |
| 20314 | fi |
| 20315 | rm -f conf$$ conf$$.exe conf$$.file |
| 20316 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20317 | if mkdir -p . 2>/dev/null; then |
| 20318 | as_mkdir_p=: |
| 20319 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20320 | test -d ./-p && rmdir ./-p |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20321 | as_mkdir_p=false |
| 20322 | fi |
| 20323 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20324 | as_executable_p="test -f" |
| 20325 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20326 | # Sed expression to map a string onto a valid CPP name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20327 | 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] | 20328 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20329 | # Sed expression to map a string onto a valid variable name. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20330 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20331 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20332 | |
| 20333 | # IFS |
| 20334 | # We need space, tab and new line, in precisely that order. |
| 20335 | as_nl=' |
| 20336 | ' |
| 20337 | IFS=" $as_nl" |
| 20338 | |
| 20339 | # CDPATH. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20340 | $as_unset CDPATH |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20341 | |
| 20342 | exec 6>&1 |
| 20343 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20344 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 20345 | # report actual input values of CONFIG_FILES etc. instead of their |
| 20346 | # values after options handling. Logging --version etc. is OK. |
| 20347 | exec 5>>config.log |
| 20348 | { |
| 20349 | echo |
| 20350 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20351 | ## Running $as_me. ## |
| 20352 | _ASBOX |
| 20353 | } >&5 |
| 20354 | cat >&5 <<_CSEOF |
| 20355 | |
Alexandre Julliard | 93cd193 | 2005-02-11 13:34:17 +0000 | [diff] [blame] | 20356 | This file was extended by Wine $as_me 20050211, which was |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 20357 | generated by GNU Autoconf 2.59. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20358 | |
| 20359 | CONFIG_FILES = $CONFIG_FILES |
| 20360 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20361 | CONFIG_LINKS = $CONFIG_LINKS |
| 20362 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20363 | $ $0 $@ |
| 20364 | |
| 20365 | _CSEOF |
| 20366 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 20367 | echo >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20368 | _ACEOF |
| 20369 | |
| 20370 | # Files that config.status was made for. |
| 20371 | if test -n "$ac_config_files"; then |
| 20372 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 20373 | fi |
| 20374 | |
| 20375 | if test -n "$ac_config_headers"; then |
| 20376 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 20377 | fi |
| 20378 | |
| 20379 | if test -n "$ac_config_links"; then |
| 20380 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 20381 | fi |
| 20382 | |
| 20383 | if test -n "$ac_config_commands"; then |
| 20384 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 20385 | fi |
| 20386 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20387 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20388 | |
| 20389 | ac_cs_usage="\ |
| 20390 | \`$as_me' instantiates files from templates according to the |
| 20391 | current configuration. |
| 20392 | |
| 20393 | Usage: $0 [OPTIONS] [FILE]... |
| 20394 | |
| 20395 | -h, --help print this help, then exit |
| 20396 | -V, --version print version number, then exit |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20397 | -q, --quiet do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20398 | -d, --debug don't remove temporary files |
| 20399 | --recheck update $as_me by reconfiguring in the same conditions |
| 20400 | --file=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20401 | instantiate the configuration file FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20402 | --header=FILE[:TEMPLATE] |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20403 | instantiate the configuration header FILE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20404 | |
| 20405 | Configuration files: |
| 20406 | $config_files |
| 20407 | |
| 20408 | Configuration headers: |
| 20409 | $config_headers |
| 20410 | |
| 20411 | Configuration commands: |
| 20412 | $config_commands |
| 20413 | |
| 20414 | Report bugs to <bug-autoconf@gnu.org>." |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20415 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 20416 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20417 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20418 | ac_cs_version="\\ |
Alexandre Julliard | 93cd193 | 2005-02-11 13:34:17 +0000 | [diff] [blame] | 20419 | Wine config.status 20050211 |
Eric Pouech | 53fa0d5 | 2004-02-05 01:27:38 +0000 | [diff] [blame] | 20420 | configured by $0, generated by GNU Autoconf 2.59, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20421 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20422 | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 20423 | Copyright (C) 2003 Free Software Foundation, Inc. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20424 | This config.status script is free software; the Free Software Foundation |
| 20425 | gives unlimited permission to copy, distribute and modify it." |
| 20426 | srcdir=$srcdir |
| 20427 | INSTALL="$INSTALL" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20428 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20429 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20430 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20431 | # If no file are specified by the user, then we need to provide default |
| 20432 | # value. By we need to know if files were specified by the user. |
| 20433 | ac_need_defaults=: |
| 20434 | while test $# != 0 |
| 20435 | do |
| 20436 | case $1 in |
| 20437 | --*=*) |
| 20438 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 20439 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20440 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20441 | ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20442 | -*) |
| 20443 | ac_option=$1 |
| 20444 | ac_optarg=$2 |
| 20445 | ac_shift=shift |
| 20446 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20447 | *) # This is not an option, so the user has probably given explicit |
| 20448 | # arguments. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20449 | ac_option=$1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20450 | ac_need_defaults=false;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20451 | esac |
| 20452 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20453 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20454 | # Handling of the options. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20455 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20456 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20457 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20458 | ac_cs_recheck=: ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20459 | --version | --vers* | -V ) |
| 20460 | echo "$ac_cs_version"; exit 0 ;; |
| 20461 | --he | --h) |
| 20462 | # Conflict between --help and --header |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20463 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20464 | Try \`$0 --help' for more information." >&5 |
| 20465 | echo "$as_me: error: ambiguous option: $1 |
| 20466 | Try \`$0 --help' for more information." >&2;} |
| 20467 | { (exit 1); exit 1; }; };; |
| 20468 | --help | --hel | -h ) |
| 20469 | echo "$ac_cs_usage"; exit 0 ;; |
| 20470 | --debug | --d* | -d ) |
| 20471 | debug=: ;; |
| 20472 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20473 | $ac_shift |
| 20474 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20475 | ac_need_defaults=false;; |
| 20476 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20477 | $ac_shift |
| 20478 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20479 | ac_need_defaults=false;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20480 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 20481 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 20482 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 20483 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20484 | # This is an error. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20485 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20486 | Try \`$0 --help' for more information." >&5 |
| 20487 | echo "$as_me: error: unrecognized option: $1 |
| 20488 | Try \`$0 --help' for more information." >&2;} |
| 20489 | { (exit 1); exit 1; }; } ;; |
| 20490 | |
| 20491 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 20492 | |
| 20493 | esac |
| 20494 | shift |
| 20495 | done |
| 20496 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20497 | ac_configure_extra_args= |
| 20498 | |
| 20499 | if $ac_cs_silent; then |
| 20500 | exec 6>/dev/null |
| 20501 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 20502 | fi |
| 20503 | |
| 20504 | _ACEOF |
| 20505 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20506 | if \$ac_cs_recheck; then |
| 20507 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 20508 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 20509 | fi |
| 20510 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20511 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20512 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20513 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20514 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20515 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20516 | |
| 20517 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20518 | for ac_config_target in $ac_config_targets |
| 20519 | do |
| 20520 | case "$ac_config_target" in |
| 20521 | # Handling of arguments. |
| 20522 | "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
| 20523 | "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20524 | "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;; |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 20525 | "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20526 | "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
| 20527 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20528 | "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; |
| 20529 | "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20530 | "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;; |
Huw Davies | 20313b8 | 2004-09-27 20:39:40 +0000 | [diff] [blame] | 20531 | "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;; |
Robert Reif | 9719982 | 2005-01-20 20:03:13 +0000 | [diff] [blame] | 20532 | "dlls/advpack/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;; |
Christian Costa | 76b7787 | 2004-03-09 01:29:56 +0000 | [diff] [blame] | 20533 | "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;; |
Aric Stewart | 4bd374f | 2004-07-06 21:01:18 +0000 | [diff] [blame] | 20534 | "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20535 | "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; |
| 20536 | "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; |
Patrik Stridvall | d1447fa | 2002-11-19 00:47:12 +0000 | [diff] [blame] | 20537 | "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;; |
Alexandre Julliard | 00fdd9f | 2003-11-06 00:26:43 +0000 | [diff] [blame] | 20538 | "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;; |
Sami Nopanen | 9063cef | 2004-03-15 20:26:42 +0000 | [diff] [blame] | 20539 | "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;; |
Mike McCormack | b107b92 | 2003-10-31 03:38:07 +0000 | [diff] [blame] | 20540 | "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;; |
John K. Hohm | 34909c2 | 2002-05-14 21:50:56 +0000 | [diff] [blame] | 20541 | "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20542 | "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
Uwe Bonnes | 2c4fd42 | 2003-05-15 23:58:48 +0000 | [diff] [blame] | 20543 | "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20544 | "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;; |
| 20545 | "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
| 20546 | "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; |
Ulrich Czekalla | c173f6a | 2005-01-24 19:07:16 +0000 | [diff] [blame] | 20547 | "dlls/cryptdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;; |
Dmitry Timoshkov | 5a23a00 | 2003-01-02 19:34:14 +0000 | [diff] [blame] | 20548 | "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;; |
Sylvain Petreolle | 3a99d8b | 2002-06-25 23:23:03 +0000 | [diff] [blame] | 20549 | "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; |
Alexandre Julliard | aa1bdc4 | 2003-07-01 01:11:13 +0000 | [diff] [blame] | 20550 | "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;; |
Enrico Horn | eaae705 | 2003-01-24 01:08:15 +0000 | [diff] [blame] | 20551 | "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;; |
Ivan Leo Murray-Smith | 8f14eb0 | 2004-05-18 00:54:12 +0000 | [diff] [blame] | 20552 | "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;; |
Raphael Junqueira | e31ae92 | 2002-12-17 01:15:15 +0000 | [diff] [blame] | 20553 | "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;; |
Christian Costa | 7590fe5 | 2004-06-03 00:03:23 +0000 | [diff] [blame] | 20554 | "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;; |
Eric Pouech | 800864a | 2004-04-05 22:21:27 +0000 | [diff] [blame] | 20555 | "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20556 | "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; |
| 20557 | "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; |
Sami Aario | f22a472 | 2003-11-18 00:12:00 +0000 | [diff] [blame] | 20558 | "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20559 | "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; |
| 20560 | "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; |
Ove Kaaven | d2d08f0 | 2002-06-14 00:39:44 +0000 | [diff] [blame] | 20561 | "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 20562 | "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;; |
| 20563 | "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;; |
| 20564 | "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;; |
| 20565 | "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;; |
| 20566 | "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;; |
| 20567 | "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;; |
| 20568 | "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;; |
Rok Mandeljc | 2d04be7 | 2003-03-21 00:42:38 +0000 | [diff] [blame] | 20569 | "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 20570 | "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20571 | "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; |
| 20572 | "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; |
Raphael Junqueira | 5f3f214 | 2004-04-07 20:39:00 +0000 | [diff] [blame] | 20573 | "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;; |
Rok Mandeljc | 3dec4c5 | 2003-04-08 03:56:04 +0000 | [diff] [blame] | 20574 | "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20575 | "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; |
Francois Gouget | d523a45 | 2002-12-05 19:19:41 +0000 | [diff] [blame] | 20576 | "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;; |
Rok Mandeljc | 0382ea1 | 2004-01-20 00:21:40 +0000 | [diff] [blame] | 20577 | "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;; |
Raphael Junqueira | 033ae92 | 2004-04-16 00:26:14 +0000 | [diff] [blame] | 20578 | "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;; |
Robert Reif | cc02d95 | 2004-03-09 23:25:57 +0000 | [diff] [blame] | 20579 | "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;; |
| 20580 | "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;; |
Alexandre Julliard | c3eac43 | 2004-01-26 21:29:05 +0000 | [diff] [blame] | 20581 | "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20582 | "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; |
Patrik Stridvall | 928ecb4 | 2002-10-02 19:58:27 +0000 | [diff] [blame] | 20583 | "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20584 | "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 20585 | "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;; |
Krzysztof Foltman | 9bca690 | 2004-04-22 03:45:00 +0000 | [diff] [blame] | 20586 | "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;; |
Alexandre Julliard | 0a106bf | 2004-01-15 04:56:18 +0000 | [diff] [blame] | 20587 | "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20588 | "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; |
Alexandre Julliard | a21cf07 | 2004-02-20 01:18:43 +0000 | [diff] [blame] | 20589 | "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20590 | "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; |
| 20591 | "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; |
Juan Lang | 38fa5ad | 2003-05-13 03:32:20 +0000 | [diff] [blame] | 20592 | "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;; |
Juan Lang | e6f491a | 2004-01-07 01:08:55 +0000 | [diff] [blame] | 20593 | "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;; |
Alexandre Julliard | 5f6e3c8 | 2004-08-24 21:00:15 +0000 | [diff] [blame] | 20594 | "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20595 | "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20596 | "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20597 | "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;; |
Evan G. Parry | d23f5ef | 2004-11-21 16:05:14 +0000 | [diff] [blame] | 20598 | "dlls/lzexpand/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20599 | "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; |
Jon Griffiths | 4ec0d3b | 2004-04-23 23:30:00 +0000 | [diff] [blame] | 20600 | "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;; |
Alexandre Julliard | 94a9d33 | 2004-08-04 18:33:06 +0000 | [diff] [blame] | 20601 | "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;; |
| 20602 | "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;; |
Alexandre Julliard | a21cf07 | 2004-02-20 01:18:43 +0000 | [diff] [blame] | 20603 | "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;; |
| 20604 | "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20605 | "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; |
| 20606 | "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;; |
Hidenori Takeshima | 0307f6d | 2002-03-23 20:18:11 +0000 | [diff] [blame] | 20607 | "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;; |
Eric Pouech | bed67fc | 2002-05-22 02:00:05 +0000 | [diff] [blame] | 20608 | "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;; |
Hidenori Takeshima | bcb9c46 | 2002-03-22 19:16:10 +0000 | [diff] [blame] | 20609 | "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;; |
Eric Pouech | b706b23 | 2002-06-04 17:53:46 +0000 | [diff] [blame] | 20610 | "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;; |
Robert Reif | 00cd2b2 | 2004-05-03 20:17:43 +0000 | [diff] [blame] | 20611 | "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;; |
Hans Leidekker | 5164757 | 2004-09-22 04:08:38 +0000 | [diff] [blame] | 20612 | "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;; |
Hans Leidekker | 081b250 | 2004-10-07 19:12:41 +0000 | [diff] [blame] | 20613 | "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20614 | "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
Mike McCormack | aa1c2a3 | 2003-09-08 19:32:14 +0000 | [diff] [blame] | 20615 | "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;; |
Mike McCormack | 6386edc | 2003-08-13 01:27:48 +0000 | [diff] [blame] | 20616 | "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;; |
Mike McCormack | 23b291a | 2005-01-05 13:26:34 +0000 | [diff] [blame] | 20617 | "dlls/msi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20618 | "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; |
Mike McCormack | f6be044 | 2002-04-08 23:56:14 +0000 | [diff] [blame] | 20619 | "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20620 | "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
Alexandre Julliard | 7ba8fba | 2004-02-27 21:51:12 +0000 | [diff] [blame] | 20621 | "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20622 | "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; |
Uwe Bonnes | a768fa3 | 2002-10-30 23:49:03 +0000 | [diff] [blame] | 20623 | "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20624 | "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; |
Mike McCormack | d077946 | 2004-01-12 22:12:27 +0000 | [diff] [blame] | 20625 | "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;; |
Adam Gundy | 19a1513 | 2003-04-04 19:37:57 +0000 | [diff] [blame] | 20626 | "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;; |
Patrik Stridvall | 5c4420f | 2004-05-18 01:05:36 +0000 | [diff] [blame] | 20627 | "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;; |
Mike McCormack | 4cc64c8 | 2004-01-23 05:00:37 +0000 | [diff] [blame] | 20628 | "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20629 | "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;; |
André Johansen | 2123c13 | 2003-08-02 00:52:02 +0000 | [diff] [blame] | 20630 | "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20631 | "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
Andriy Palamarchuk | b812c90 | 2002-09-11 02:35:17 +0000 | [diff] [blame] | 20632 | "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;; |
Ulrich Czekalla | 9655a5f | 2003-12-30 22:19:30 +0000 | [diff] [blame] | 20633 | "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20634 | "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; |
Jon Griffiths | 1da2971 | 2002-08-15 22:08:40 +0000 | [diff] [blame] | 20635 | "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20636 | "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; |
| 20637 | "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; |
Mike McCormack | 06b8046 | 2004-08-11 00:17:52 +0000 | [diff] [blame] | 20638 | "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;; |
Eric Pouech | 5caccaf | 2003-06-23 03:43:00 +0000 | [diff] [blame] | 20639 | "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20640 | "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20641 | "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20642 | "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;; |
| 20643 | "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; |
| 20644 | "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; |
| 20645 | "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;; |
| 20646 | "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; |
| 20647 | "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; |
Stefan Leichter | 0d4fff4 | 2004-06-15 20:23:47 +0000 | [diff] [blame] | 20648 | "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20649 | "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
| 20650 | "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; |
Christian Costa | e3a288f | 2004-08-16 21:14:28 +0000 | [diff] [blame] | 20651 | "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20652 | "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
| 20653 | "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;; |
| 20654 | "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; |
Greg Turner | ac89cc2 | 2002-10-07 21:54:07 +0000 | [diff] [blame] | 20655 | "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;; |
Mike McCormack | b6de304 | 2004-02-13 20:47:07 +0000 | [diff] [blame] | 20656 | "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;; |
Michael Jung | b4b0c24 | 2004-07-30 00:06:54 +0000 | [diff] [blame] | 20657 | "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;; |
Michael Jung | 64dce8a | 2004-11-04 21:15:32 +0000 | [diff] [blame] | 20658 | "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;; |
| 20659 | "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;; |
Juan Lang | 3ed89c3 | 2004-03-02 04:57:35 +0000 | [diff] [blame] | 20660 | "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;; |
Steven Edwards | 160e647 | 2005-01-28 11:41:23 +0000 | [diff] [blame] | 20661 | "dlls/sensapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20662 | "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; |
| 20663 | "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; |
| 20664 | "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; |
| 20665 | "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; |
Andriy Palamarchuk | 5b5bea0 | 2002-08-27 01:34:33 +0000 | [diff] [blame] | 20666 | "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20667 | "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; |
| 20668 | "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20669 | "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;; |
Patrik Stridvall | 4c692b9 | 2002-04-29 18:43:35 +0000 | [diff] [blame] | 20670 | "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; |
Huw Davies | 4046846 | 2005-01-28 14:13:08 +0000 | [diff] [blame] | 20671 | "dlls/stdole32.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20672 | "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
Francois Gouget | a896389 | 2004-08-19 19:31:20 +0000 | [diff] [blame] | 20673 | "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20674 | "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
| 20675 | "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;; |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 20676 | "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;; |
Alexandre Julliard | 46321f4 | 2003-11-27 01:10:26 +0000 | [diff] [blame] | 20677 | "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20678 | "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
| 20679 | "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; |
Patrik Stridvall | 9398d9c | 2002-11-12 01:13:10 +0000 | [diff] [blame] | 20680 | "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20681 | "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20682 | "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;; |
Alexandre Julliard | c3eac43 | 2004-01-26 21:29:05 +0000 | [diff] [blame] | 20683 | "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;; |
Kevin Koltzau | 0af4fb9 | 2003-10-04 03:48:11 +0000 | [diff] [blame] | 20684 | "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;; |
Alexandre Julliard | a21cf07 | 2004-02-20 01:18:43 +0000 | [diff] [blame] | 20685 | "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;; |
Sami Aario | 78f1224 | 2004-04-07 19:41:21 +0000 | [diff] [blame] | 20686 | "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20687 | "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; |
Stefan Leichter | 09733db | 2004-04-05 22:54:03 +0000 | [diff] [blame] | 20688 | "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;; |
Alexandre Julliard | 6c8147b | 2004-02-21 04:13:56 +0000 | [diff] [blame] | 20689 | "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;; |
Juan Lang | e9ed2f3 | 2004-03-01 23:35:25 +0000 | [diff] [blame] | 20690 | "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;; |
Alexandre Julliard | a21cf07 | 2004-02-20 01:18:43 +0000 | [diff] [blame] | 20691 | "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;; |
| 20692 | "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;; |
| 20693 | "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20694 | "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;; |
| 20695 | "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;; |
Alexandre Julliard | c3eac43 | 2004-01-26 21:29:05 +0000 | [diff] [blame] | 20696 | "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20697 | "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; |
| 20698 | "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;; |
| 20699 | "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20700 | "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20701 | "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; |
| 20702 | "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; |
| 20703 | "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;; |
| 20704 | "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;; |
| 20705 | "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;; |
| 20706 | "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;; |
| 20707 | "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;; |
| 20708 | "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;; |
Francois Gouget | 4ce2837 | 2002-11-04 23:47:49 +0000 | [diff] [blame] | 20709 | "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20710 | "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;; |
Eric Pouech | a120ce0 | 2002-06-28 17:40:16 +0000 | [diff] [blame] | 20711 | "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 20712 | "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 20713 | "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;; |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 20714 | "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;; |
Alexandre Julliard | c3eac43 | 2004-01-26 21:29:05 +0000 | [diff] [blame] | 20715 | "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20716 | "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
| 20717 | "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;; |
| 20718 | "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20719 | "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20720 | "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;; |
Stefan Leichter | 88b1106 | 2003-01-15 00:50:48 +0000 | [diff] [blame] | 20721 | "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;; |
Patrik Stridvall | 5caddc7 | 2002-12-17 01:49:16 +0000 | [diff] [blame] | 20722 | "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20723 | "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; |
| 20724 | "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; |
| 20725 | "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; |
Ulrich Czekalla | 04f6346 | 2005-01-24 19:42:02 +0000 | [diff] [blame] | 20726 | "dlls/wtsapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20727 | "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;; |
| 20728 | "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 20729 | "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20730 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
Alexandre Julliard | 6a9fe36 | 2003-03-19 22:09:16 +0000 | [diff] [blame] | 20731 | "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; |
| 20732 | "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;; |
Alexandre Julliard | 7ab9a71 | 2003-03-21 05:06:48 +0000 | [diff] [blame] | 20733 | "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;; |
Alexandre Julliard | 2d1c790 | 2003-03-22 20:40:48 +0000 | [diff] [blame] | 20734 | "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;; |
Alexandre Julliard | e1a9b10 | 2003-05-01 03:16:21 +0000 | [diff] [blame] | 20735 | "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;; |
Alexandre Julliard | 357c740 | 2003-11-06 01:17:56 +0000 | [diff] [blame] | 20736 | "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20737 | "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; |
| 20738 | "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;; |
| 20739 | "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; |
| 20740 | "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
| 20741 | "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; |
Alexandre Julliard | acfda14 | 2002-05-20 19:18:16 +0000 | [diff] [blame] | 20742 | "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; |
Vincent Béron | 3496689 | 2004-07-19 19:44:07 +0000 | [diff] [blame] | 20743 | "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20744 | "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20745 | "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
Andriy Palamarchuk | 4e2e176 | 2002-04-11 23:58:40 +0000 | [diff] [blame] | 20746 | "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; |
Andriy Palamarchuk | 2f0d85c | 2002-04-29 23:47:39 +0000 | [diff] [blame] | 20747 | "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; |
Alexandre Julliard | d77294a | 2002-12-02 21:17:04 +0000 | [diff] [blame] | 20748 | "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;; |
Alberto Massari | 15e8e0a | 2002-11-15 01:41:20 +0000 | [diff] [blame] | 20749 | "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;; |
Dan Kegel | ba02ae4 | 2003-01-21 20:14:36 +0000 | [diff] [blame] | 20750 | "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;; |
Eric Pouech | d6b348f | 2004-03-23 01:19:54 +0000 | [diff] [blame] | 20751 | "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20752 | "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; |
| 20753 | "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; |
| 20754 | "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; |
Shachar Shemesh | 175d059 | 2003-01-04 02:52:05 +0000 | [diff] [blame] | 20755 | "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;; |
Chris Morgan | d888d36 | 2004-01-06 20:49:58 +0000 | [diff] [blame] | 20756 | "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;; |
Dimitrie O. Paun | 82ce2cc | 2003-03-31 19:41:55 +0000 | [diff] [blame] | 20757 | "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20758 | "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; |
Alexandre Julliard | f264bd3 | 2002-09-13 17:54:27 +0000 | [diff] [blame] | 20759 | "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;; |
Alexandre Julliard | 65a4216 | 2002-06-04 21:29:40 +0000 | [diff] [blame] | 20760 | "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;; |
Mike McCormack | 88090b4 | 2003-05-21 18:50:53 +0000 | [diff] [blame] | 20761 | "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20762 | "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; |
Mike Wetherell | 0d8a9fa | 2002-05-05 20:31:54 +0000 | [diff] [blame] | 20763 | "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; |
Alexandre Julliard | 9f71bd9 | 2003-12-04 02:01:39 +0000 | [diff] [blame] | 20764 | "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;; |
Alexandre Julliard | fedc411 | 2003-04-27 00:47:58 +0000 | [diff] [blame] | 20765 | "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20766 | "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; |
| 20767 | "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20768 | "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
| 20769 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
Alexandre Julliard | 7d4ee77 | 2002-07-16 03:20:45 +0000 | [diff] [blame] | 20770 | "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20771 | "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;; |
| 20772 | "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
| 20773 | "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; |
Alexandre Julliard | 280661c | 2003-09-11 21:27:58 +0000 | [diff] [blame] | 20774 | "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20775 | "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; |
| 20776 | "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20777 | "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;; |
| 20778 | "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;; |
| 20779 | "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;; |
| 20780 | "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;; |
| 20781 | "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;; |
| 20782 | "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;; |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 20783 | "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;; |
| 20784 | "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20785 | "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
| 20786 | "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;; |
| 20787 | "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
| 20788 | "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;; |
| 20789 | "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 20790 | "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 20791 | "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 20792 | "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20793 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20794 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20795 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 20796 | { (exit 1); exit 1; }; };; |
| 20797 | esac |
| 20798 | done |
| 20799 | |
| 20800 | # If the user did not use the arguments to specify the items to instantiate, |
| 20801 | # then the envvar interface is used. Set only those that are not. |
| 20802 | # We use the long form for the default assignment because of an extremely |
| 20803 | # bizarre bug on SunOS 4.1.3. |
| 20804 | if $ac_need_defaults; then |
| 20805 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20806 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 20807 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 20808 | fi |
| 20809 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20810 | # Have a temporary directory for convenience. Make it in the build tree |
| 20811 | # simply because there is no reason to put it here, and in addition, |
| 20812 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20813 | # Create a temporary directory, and hook for its removal unless debugging. |
| 20814 | $debug || |
| 20815 | { |
| 20816 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 20817 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 20818 | } |
| 20819 | |
| 20820 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20821 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20822 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20823 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20824 | test -n "$tmp" && test -d "$tmp" |
| 20825 | } || |
| 20826 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20827 | tmp=./confstat$$-$RANDOM |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20828 | (umask 077 && mkdir $tmp) |
| 20829 | } || |
| 20830 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20831 | echo "$me: cannot create a temporary directory in ." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20832 | { (exit 1); exit 1; } |
| 20833 | } |
| 20834 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20835 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20836 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20837 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20838 | |
| 20839 | # |
| 20840 | # CONFIG_FILES section. |
| 20841 | # |
| 20842 | |
| 20843 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 20844 | # This happens for instance when ./config.status config.h |
| 20845 | if test -n "\$CONFIG_FILES"; then |
| 20846 | # Protect against being on the right side of a sed subst in config.status. |
| 20847 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 20848 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 20849 | s,@SHELL@,$SHELL,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20850 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 20851 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 20852 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 20853 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 20854 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 20855 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20856 | s,@exec_prefix@,$exec_prefix,;t t |
| 20857 | s,@prefix@,$prefix,;t t |
| 20858 | s,@program_transform_name@,$program_transform_name,;t t |
| 20859 | s,@bindir@,$bindir,;t t |
| 20860 | s,@sbindir@,$sbindir,;t t |
| 20861 | s,@libexecdir@,$libexecdir,;t t |
| 20862 | s,@datadir@,$datadir,;t t |
| 20863 | s,@sysconfdir@,$sysconfdir,;t t |
| 20864 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 20865 | s,@localstatedir@,$localstatedir,;t t |
| 20866 | s,@libdir@,$libdir,;t t |
| 20867 | s,@includedir@,$includedir,;t t |
| 20868 | s,@oldincludedir@,$oldincludedir,;t t |
| 20869 | s,@infodir@,$infodir,;t t |
| 20870 | s,@mandir@,$mandir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20871 | s,@build_alias@,$build_alias,;t t |
| 20872 | s,@host_alias@,$host_alias,;t t |
| 20873 | s,@target_alias@,$target_alias,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 20874 | s,@DEFS@,$DEFS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20875 | s,@ECHO_C@,$ECHO_C,;t t |
| 20876 | s,@ECHO_N@,$ECHO_N,;t t |
| 20877 | s,@ECHO_T@,$ECHO_T,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20878 | s,@LIBS@,$LIBS,;t t |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 20879 | s,@WIN16_FILES@,$WIN16_FILES,;t t |
| 20880 | s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t |
Vincent Béron | 1f50414 | 2004-10-19 23:06:11 +0000 | [diff] [blame] | 20881 | s,@DLLDEFS@,$DLLDEFS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20882 | s,@build@,$build,;t t |
| 20883 | s,@build_cpu@,$build_cpu,;t t |
| 20884 | s,@build_vendor@,$build_vendor,;t t |
| 20885 | s,@build_os@,$build_os,;t t |
| 20886 | s,@host@,$host,;t t |
| 20887 | s,@host_cpu@,$host_cpu,;t t |
| 20888 | s,@host_vendor@,$host_vendor,;t t |
| 20889 | s,@host_os@,$host_os,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20890 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 20891 | s,@CC@,$CC,;t t |
| 20892 | s,@CFLAGS@,$CFLAGS,;t t |
| 20893 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 20894 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 20895 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 20896 | s,@EXEEXT@,$EXEEXT,;t t |
| 20897 | s,@OBJEXT@,$OBJEXT,;t t |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 20898 | s,@CXX@,$CXX,;t t |
| 20899 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 20900 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 20901 | s,@CPPBIN@,$CPPBIN,;t t |
| 20902 | s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 20903 | s,@TOOLSDIR@,$TOOLSDIR,;t t |
Alexandre Julliard | a631ef6 | 2004-03-03 20:30:46 +0000 | [diff] [blame] | 20904 | s,@CPP@,$CPP,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20905 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 20906 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 20907 | s,@X_LIBS@,$X_LIBS,;t t |
| 20908 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20909 | s,@LEX@,$LEX,;t t |
| 20910 | s,@LEXLIB@,$LEXLIB,;t t |
| 20911 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20912 | s,@XLEX@,$XLEX,;t t |
Mike McCormack | c068f67 | 2004-03-16 03:11:39 +0000 | [diff] [blame] | 20913 | s,@BISON@,$BISON,;t t |
Marcus Meissner | 1d4db78 | 2003-01-09 00:46:54 +0000 | [diff] [blame] | 20914 | s,@AS@,$AS,;t t |
| 20915 | s,@ac_ct_AS@,$ac_ct_AS,;t t |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 20916 | s,@LD@,$LD,;t t |
| 20917 | s,@ac_ct_LD@,$ac_ct_LD,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 20918 | s,@AR@,$AR,;t t |
| 20919 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20920 | s,@RANLIB@,$RANLIB,;t t |
| 20921 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 20922 | s,@STRIP@,$STRIP,;t t |
| 20923 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 20924 | s,@WINDRES@,$WINDRES,;t t |
| 20925 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20926 | s,@LN_S@,$LN_S,;t t |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 20927 | s,@LN@,$LN,;t t |
Alexandre Julliard | c626491 | 2004-08-16 20:09:37 +0000 | [diff] [blame] | 20928 | s,@EGREP@,$EGREP,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20929 | s,@LDCONFIG@,$LDCONFIG,;t t |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 20930 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 20931 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 20932 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20933 | s,@LINT@,$LINT,;t t |
| 20934 | s,@LINTFLAGS@,$LINTFLAGS,;t t |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 20935 | s,@DB2HTML@,$DB2HTML,;t t |
| 20936 | s,@DB2PDF@,$DB2PDF,;t t |
| 20937 | s,@DB2PS@,$DB2PS,;t t |
Dimitrie O. Paun | b817a3c | 2003-10-09 04:33:20 +0000 | [diff] [blame] | 20938 | s,@DB2TXT@,$DB2TXT,;t t |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 20939 | s,@FONTFORGE@,$FONTFORGE,;t t |
Alexandre Julliard | f45325e | 2003-11-06 23:05:41 +0000 | [diff] [blame] | 20940 | s,@LIBPTHREAD@,$LIBPTHREAD,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20941 | s,@XLIB@,$XLIB,;t t |
| 20942 | s,@XFILES@,$XFILES,;t t |
| 20943 | s,@OPENGLFILES@,$OPENGLFILES,;t t |
| 20944 | s,@GLU32FILES@,$GLU32FILES,;t t |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 20945 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
Jacek Caban | ef799c4 | 2003-12-02 04:11:09 +0000 | [diff] [blame] | 20946 | s,@GLUT_LIBS@,$GLUT_LIBS,;t t |
| 20947 | s,@GLUT32FILES@,$GLUT32FILES,;t t |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 20948 | s,@NASLIBS@,$NASLIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20949 | s,@CURSESLIBS@,$CURSESLIBS,;t t |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 20950 | s,@sane_devel@,$sane_devel,;t t |
| 20951 | s,@SANELIBS@,$SANELIBS,;t t |
| 20952 | s,@SANEINCL@,$SANEINCL,;t t |
Alexandre Julliard | 4ee8290 | 2003-06-20 21:38:10 +0000 | [diff] [blame] | 20953 | s,@ICULIBS@,$ICULIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20954 | s,@ft_devel@,$ft_devel,;t t |
| 20955 | s,@ft_devel2@,$ft_devel2,;t t |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 20956 | s,@FREETYPELIBS@,$FREETYPELIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20957 | s,@FREETYPEINCL@,$FREETYPEINCL,;t t |
Huw Davies | 00acb5f | 2004-08-17 22:33:14 +0000 | [diff] [blame] | 20958 | s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 20959 | s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t |
| 20960 | s,@ARTSLIBS@,$ARTSLIBS,;t t |
| 20961 | s,@ARTSINCL@,$ARTSINCL,;t t |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 20962 | s,@ALSALIBS@,$ALSALIBS,;t t |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 20963 | s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t |
Alexandre Julliard | fc09423 | 2003-04-14 21:46:41 +0000 | [diff] [blame] | 20964 | s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 20965 | s,@DLLEXT@,$DLLEXT,;t t |
| 20966 | s,@DLLFLAGS@,$DLLFLAGS,;t t |
| 20967 | s,@DLLIBS@,$DLLIBS,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 20968 | s,@LDSHARED@,$LDSHARED,;t t |
Dimitrie O. Paun | f41c2b2 | 2004-03-02 02:23:26 +0000 | [diff] [blame] | 20969 | s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 20970 | s,@LIBEXT@,$LIBEXT,;t t |
| 20971 | s,@IMPLIBEXT@,$IMPLIBEXT,;t t |
| 20972 | s,@DLLTOOL@,$DLLTOOL,;t t |
| 20973 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20974 | s,@DLLWRAP@,$DLLWRAP,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 20975 | s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t |
Alexandre Julliard | 4d52d37 | 2003-03-24 19:33:20 +0000 | [diff] [blame] | 20976 | s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t |
Emmanuel Maillard | 46718f8 | 2004-07-22 19:48:41 +0000 | [diff] [blame] | 20977 | s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t |
Emmanuel Maillard | 2300ce6 | 2004-08-19 01:20:45 +0000 | [diff] [blame] | 20978 | s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t |
| 20979 | s,@IOKITLIB@,$IOKITLIB,;t t |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 20980 | s,@CROSSTEST@,$CROSSTEST,;t t |
| 20981 | s,@CROSSCC@,$CROSSCC,;t t |
Alexandre Julliard | 21ee329 | 2003-04-21 22:52:31 +0000 | [diff] [blame] | 20982 | s,@CROSSWINDRES@,$CROSSWINDRES,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20983 | s,@LDPATH@,$LDPATH,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 20984 | s,@CRTLIBS@,$CRTLIBS,;t t |
Steven Edwards | c91ae45 | 2004-09-03 18:57:19 +0000 | [diff] [blame] | 20985 | s,@SOCKETLIBS@,$SOCKETLIBS,;t t |
Alexandre Julliard | 546839f | 2003-11-11 00:48:21 +0000 | [diff] [blame] | 20986 | s,@WINE_BINARIES@,$WINE_BINARIES,;t t |
| 20987 | s,@MAIN_BINARY@,$MAIN_BINARY,;t t |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 20988 | s,@LDD@,$LDD,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20989 | s,@ALLOCA@,$ALLOCA,;t t |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 20990 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 20991 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20992 | /@MAKE_RULES@/r $MAKE_RULES |
| 20993 | s,@MAKE_RULES@,,;t t |
| 20994 | /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES |
| 20995 | s,@MAKE_DLL_RULES@,,;t t |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 20996 | /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES |
| 20997 | s,@MAKE_TEST_RULES@,,;t t |
Alexandre Julliard | 117436e | 2003-05-01 00:39:29 +0000 | [diff] [blame] | 20998 | /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES |
| 20999 | s,@MAKE_LIB_RULES@,,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21000 | /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES |
| 21001 | s,@MAKE_PROG_RULES@,,;t t |
| 21002 | CEOF |
| 21003 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21004 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21005 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21006 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21007 | # Split the substitutions into bite-sized pieces for seds with |
| 21008 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 21009 | ac_max_sed_lines=48 |
| 21010 | ac_sed_frag=1 # Number of current file. |
| 21011 | ac_beg=1 # First line for current file. |
| 21012 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 21013 | ac_more_lines=: |
| 21014 | ac_sed_cmds= |
| 21015 | while $ac_more_lines; do |
| 21016 | if test $ac_beg -gt 1; then |
| 21017 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21018 | else |
| 21019 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21020 | fi |
| 21021 | if test ! -s $tmp/subs.frag; then |
| 21022 | ac_more_lines=false |
| 21023 | else |
| 21024 | # The purpose of the label and of the branching condition is to |
| 21025 | # speed up the sed processing (if there are no `@' at all, there |
| 21026 | # is no need to browse any of the substitutions). |
| 21027 | # These are the two extra sed commands mentioned above. |
| 21028 | (echo ':t |
| 21029 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 21030 | if test -z "$ac_sed_cmds"; then |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21031 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21032 | else |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21033 | 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] | 21034 | fi |
| 21035 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 21036 | ac_beg=$ac_end |
| 21037 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 21038 | fi |
| 21039 | done |
| 21040 | if test -z "$ac_sed_cmds"; then |
| 21041 | ac_sed_cmds=cat |
| 21042 | fi |
| 21043 | fi # test -n "$CONFIG_FILES" |
| 21044 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21045 | _ACEOF |
| 21046 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21047 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 21048 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 21049 | case $ac_file in |
| 21050 | - | *:- | *:-:* ) # input from stdin |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21051 | cat >$tmp/stdin |
| 21052 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21053 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21054 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21055 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21056 | * ) ac_file_in=$ac_file.in ;; |
| 21057 | esac |
| 21058 | |
| 21059 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21060 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21061 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21062 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21063 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21064 | X"$ac_file" : 'X\(/\)' \| \ |
| 21065 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21066 | echo X"$ac_file" | |
| 21067 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21068 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21069 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21070 | /^X\(\/\).*/{ s//\1/; q; } |
| 21071 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21072 | { if $as_mkdir_p; then |
| 21073 | mkdir -p "$ac_dir" |
| 21074 | else |
| 21075 | as_dir="$ac_dir" |
| 21076 | as_dirs= |
| 21077 | while test ! -d "$as_dir"; do |
| 21078 | as_dirs="$as_dir $as_dirs" |
| 21079 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21080 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21081 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21082 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21083 | X"$as_dir" : 'X\(/\)' \| \ |
| 21084 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21085 | echo X"$as_dir" | |
| 21086 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21087 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21088 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21089 | /^X\(\/\).*/{ s//\1/; q; } |
| 21090 | s/.*/./; q'` |
| 21091 | done |
| 21092 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21093 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21094 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21095 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21096 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21097 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21098 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21099 | if test "$ac_dir" != .; then |
| 21100 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 21101 | # A "../" for each directory in $ac_dir_suffix. |
| 21102 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 21103 | else |
| 21104 | ac_dir_suffix= ac_top_builddir= |
| 21105 | fi |
| 21106 | |
| 21107 | case $srcdir in |
| 21108 | .) # No --srcdir option. We are building in place. |
| 21109 | ac_srcdir=. |
| 21110 | if test -z "$ac_top_builddir"; then |
| 21111 | ac_top_srcdir=. |
| 21112 | else |
| 21113 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 21114 | fi ;; |
| 21115 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 21116 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 21117 | ac_top_srcdir=$srcdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21118 | *) # Relative path. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21119 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 21120 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 21121 | esac |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21122 | |
| 21123 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 21124 | # the directories may not exist. |
| 21125 | case `pwd` in |
| 21126 | .) ac_abs_builddir="$ac_dir";; |
| 21127 | *) |
| 21128 | case "$ac_dir" in |
| 21129 | .) ac_abs_builddir=`pwd`;; |
| 21130 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 21131 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 21132 | esac;; |
| 21133 | esac |
| 21134 | case $ac_abs_builddir in |
| 21135 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21136 | *) |
| 21137 | case ${ac_top_builddir}. in |
| 21138 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 21139 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21140 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 21141 | esac;; |
| 21142 | esac |
| 21143 | case $ac_abs_builddir in |
| 21144 | .) ac_abs_srcdir=$ac_srcdir;; |
| 21145 | *) |
| 21146 | case $ac_srcdir in |
| 21147 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 21148 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 21149 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 21150 | esac;; |
| 21151 | esac |
| 21152 | case $ac_abs_builddir in |
| 21153 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21154 | *) |
| 21155 | case $ac_top_srcdir in |
| 21156 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 21157 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21158 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 21159 | esac;; |
| 21160 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21161 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21162 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21163 | case $INSTALL in |
| 21164 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21165 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 21166 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 21167 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21168 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21169 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21170 | # /* config.h. Generated by config.status. */ |
| 21171 | if test x"$ac_file" = x-; then |
| 21172 | configure_input= |
| 21173 | else |
| 21174 | configure_input="$ac_file. " |
| 21175 | fi |
| 21176 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21177 | sed 's,.*/,,'` by configure." |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 21178 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21179 | # First look for the input files in the build tree, otherwise in the |
| 21180 | # src tree. |
| 21181 | ac_file_inputs=`IFS=: |
| 21182 | for f in $ac_file_in; do |
| 21183 | case $f in |
| 21184 | -) echo $tmp/stdin ;; |
| 21185 | [\\/$]*) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21186 | # Absolute (can't be DOS-style, as IFS=:) |
| 21187 | 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] | 21188 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21189 | { (exit 1); exit 1; }; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21190 | echo "$f";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21191 | *) # Relative |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21192 | if test -f "$f"; then |
| 21193 | # Build tree |
| 21194 | echo "$f" |
| 21195 | elif test -f "$srcdir/$f"; then |
| 21196 | # Source tree |
| 21197 | echo "$srcdir/$f" |
| 21198 | else |
| 21199 | # /dev/null tree |
| 21200 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21201 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21202 | { (exit 1); exit 1; }; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21203 | fi;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21204 | esac |
| 21205 | done` || { (exit 1); exit 1; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21206 | |
| 21207 | if test x"$ac_file" != x-; then |
| 21208 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21209 | echo "$as_me: creating $ac_file" >&6;} |
| 21210 | rm -f "$ac_file" |
| 21211 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21212 | _ACEOF |
| 21213 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21214 | sed "$ac_vpsub |
| 21215 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21216 | _ACEOF |
| 21217 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21218 | :t |
| 21219 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 21220 | s,@configure_input@,$configure_input,;t t |
| 21221 | s,@srcdir@,$ac_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21222 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21223 | s,@top_srcdir@,$ac_top_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21224 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 21225 | s,@builddir@,$ac_builddir,;t t |
| 21226 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 21227 | s,@top_builddir@,$ac_top_builddir,;t t |
| 21228 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21229 | s,@INSTALL@,$ac_INSTALL,;t t |
| 21230 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 21231 | rm -f $tmp/stdin |
| 21232 | if test x"$ac_file" != x-; then |
| 21233 | mv $tmp/out $ac_file |
| 21234 | else |
| 21235 | cat $tmp/out |
| 21236 | rm -f $tmp/out |
| 21237 | fi |
| 21238 | |
| 21239 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21240 | _ACEOF |
| 21241 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21242 | |
| 21243 | # |
| 21244 | # CONFIG_HEADER section. |
| 21245 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21246 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21247 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 21248 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 21249 | # |
| 21250 | # ac_d sets the value in "#define NAME VALUE" lines. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21251 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 21252 | ac_dB='[ ].*$,\1#\2' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21253 | ac_dC=' ' |
| 21254 | ac_dD=',;t' |
| 21255 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21256 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21257 | ac_uB='$,\1#\2define\3' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21258 | ac_uC=' ' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21259 | ac_uD=',;t' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21260 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21261 | 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] | 21262 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21263 | case $ac_file in |
| 21264 | - | *:- | *:-:* ) # input from stdin |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21265 | cat >$tmp/stdin |
| 21266 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21267 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21268 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21269 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21270 | * ) ac_file_in=$ac_file.in ;; |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21271 | esac |
| 21272 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21273 | 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] | 21274 | echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21275 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21276 | # First look for the input files in the build tree, otherwise in the |
| 21277 | # src tree. |
| 21278 | ac_file_inputs=`IFS=: |
| 21279 | for f in $ac_file_in; do |
| 21280 | case $f in |
| 21281 | -) echo $tmp/stdin ;; |
| 21282 | [\\/$]*) |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21283 | # Absolute (can't be DOS-style, as IFS=:) |
| 21284 | 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] | 21285 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21286 | { (exit 1); exit 1; }; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21287 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 21288 | echo "$f";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21289 | *) # Relative |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21290 | if test -f "$f"; then |
| 21291 | # Build tree |
| 21292 | echo "$f" |
| 21293 | elif test -f "$srcdir/$f"; then |
| 21294 | # Source tree |
| 21295 | echo "$srcdir/$f" |
| 21296 | else |
| 21297 | # /dev/null tree |
| 21298 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21299 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21300 | { (exit 1); exit 1; }; } |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21301 | fi;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21302 | esac |
| 21303 | done` || { (exit 1); exit 1; } |
| 21304 | # Remove the trailing spaces. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21305 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21306 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21307 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21308 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21309 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 21310 | # `conftest.undefs', that substitutes the proper values into |
| 21311 | # config.h.in to produce config.h. The first handles `#define' |
| 21312 | # templates, and the second `#undef' templates. |
| 21313 | # And first: Protect against being on the right side of a sed subst in |
| 21314 | # config.status. Protect against being in an unquoted here document |
| 21315 | # in config.status. |
| 21316 | rm -f conftest.defines conftest.undefs |
| 21317 | # Using a here document instead of a string reduces the quoting nightmare. |
| 21318 | # Putting comments in sed scripts is not portable. |
| 21319 | # |
| 21320 | # `end' is used to avoid that the second main sed command (meant for |
| 21321 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 21322 | # See the Autoconf documentation for `clear'. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21323 | cat >confdef2sed.sed <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21324 | s/[\\&,]/\\&/g |
| 21325 | s,[\\$`],\\&,g |
| 21326 | t clear |
| 21327 | : clear |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21328 | 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] | 21329 | t end |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21330 | 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] | 21331 | : end |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21332 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21333 | # If some macros were called several times there might be several times |
| 21334 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 21335 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 21336 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 21337 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 21338 | rm -f confdef2sed.sed |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21339 | |
| 21340 | # This sed command replaces #undef with comments. This is necessary, for |
| 21341 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21342 | # on some systems where configure will not decide to define it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21343 | cat >>conftest.undefs <<\_ACEOF |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21344 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21345 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21346 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21347 | # Break up conftest.defines because some shells have a limit on the size |
| 21348 | # of here documents, and old seds have small limits too (100 cmds). |
| 21349 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21350 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21351 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 21352 | echo ' :' >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21353 | rm -f conftest.tail |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21354 | while grep . conftest.defines >/dev/null |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21355 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21356 | # Write a limited-size here document to $tmp/defines.sed. |
| 21357 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 21358 | # Speed up: don't consider the non `#define' lines. |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21359 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21360 | # Work around the forget-to-reset-the-flag bug. |
| 21361 | echo 't clr' >>$CONFIG_STATUS |
| 21362 | echo ': clr' >>$CONFIG_STATUS |
| 21363 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21364 | echo 'CEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21365 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 21366 | rm -f $tmp/in |
| 21367 | mv $tmp/out $tmp/in |
| 21368 | ' >>$CONFIG_STATUS |
| 21369 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 21370 | rm -f conftest.defines |
| 21371 | mv conftest.tail conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21372 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21373 | rm -f conftest.defines |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21374 | echo ' fi # grep' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21375 | echo >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21376 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21377 | # Break up conftest.undefs because some shells have a limit on the size |
| 21378 | # of here documents, and old seds have small limits too (100 cmds). |
| 21379 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 21380 | rm -f conftest.tail |
| 21381 | while grep . conftest.undefs >/dev/null |
| 21382 | do |
| 21383 | # Write a limited-size here document to $tmp/undefs.sed. |
| 21384 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 21385 | # Speed up: don't consider the non `#undef' |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21386 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21387 | # Work around the forget-to-reset-the-flag bug. |
| 21388 | echo 't clr' >>$CONFIG_STATUS |
| 21389 | echo ': clr' >>$CONFIG_STATUS |
| 21390 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 21391 | echo 'CEOF |
| 21392 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 21393 | rm -f $tmp/in |
| 21394 | mv $tmp/out $tmp/in |
| 21395 | ' >>$CONFIG_STATUS |
| 21396 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 21397 | rm -f conftest.undefs |
| 21398 | mv conftest.tail conftest.undefs |
| 21399 | done |
| 21400 | rm -f conftest.undefs |
| 21401 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21402 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21403 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21404 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21405 | # /* config.h. Generated by config.status. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21406 | if test x"$ac_file" = x-; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21407 | echo "/* Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21408 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21409 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21410 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21411 | cat $tmp/in >>$tmp/config.h |
| 21412 | rm -f $tmp/in |
| 21413 | if test x"$ac_file" != x-; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21414 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21415 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21416 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 21417 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21418 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21419 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21420 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21421 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21422 | X"$ac_file" : 'X\(/\)' \| \ |
| 21423 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21424 | echo X"$ac_file" | |
| 21425 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21426 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21427 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21428 | /^X\(\/\).*/{ s//\1/; q; } |
| 21429 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21430 | { if $as_mkdir_p; then |
| 21431 | mkdir -p "$ac_dir" |
| 21432 | else |
| 21433 | as_dir="$ac_dir" |
| 21434 | as_dirs= |
| 21435 | while test ! -d "$as_dir"; do |
| 21436 | as_dirs="$as_dir $as_dirs" |
| 21437 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21438 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21439 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21440 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21441 | X"$as_dir" : 'X\(/\)' \| \ |
| 21442 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 21443 | echo X"$as_dir" | |
| 21444 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21445 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21446 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21447 | /^X\(\/\).*/{ s//\1/; q; } |
| 21448 | s/.*/./; q'` |
| 21449 | done |
| 21450 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21451 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21452 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21453 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 21454 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21455 | rm -f $ac_file |
| 21456 | mv $tmp/config.h $ac_file |
| 21457 | fi |
| 21458 | else |
| 21459 | cat $tmp/config.h |
| 21460 | rm -f $tmp/config.h |
| 21461 | fi |
| 21462 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21463 | _ACEOF |
| 21464 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21465 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21466 | # |
| 21467 | # CONFIG_COMMANDS section. |
| 21468 | # |
| 21469 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 21470 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 21471 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21472 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 21473 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21474 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 21475 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 21476 | X"$ac_dest" : 'X\(/\)' \| \ |
| 21477 | . : '\(.\)' 2>/dev/null || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21478 | echo X"$ac_dest" | |
| 21479 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21480 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21481 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21482 | /^X\(\/\).*/{ s//\1/; q; } |
| 21483 | s/.*/./; q'` |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21484 | { if $as_mkdir_p; then |
| 21485 | mkdir -p "$ac_dir" |
| 21486 | else |
| 21487 | as_dir="$ac_dir" |
| 21488 | as_dirs= |
| 21489 | while test ! -d "$as_dir"; do |
| 21490 | as_dirs="$as_dir $as_dirs" |
| 21491 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21492 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 21493 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21494 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21495 | X"$as_dir" : 'X\(/\)' \| \ |
| 21496 | . : '\(.\)' 2>/dev/null || |
| 21497 | echo X"$as_dir" | |
| 21498 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21499 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21500 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21501 | /^X\(\/\).*/{ s//\1/; q; } |
| 21502 | s/.*/./; q'` |
| 21503 | done |
| 21504 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21505 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21506 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21507 | { (exit 1); exit 1; }; }; } |
| 21508 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21509 | ac_builddir=. |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 21510 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21511 | if test "$ac_dir" != .; then |
| 21512 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 21513 | # A "../" for each directory in $ac_dir_suffix. |
| 21514 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21515 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21516 | ac_dir_suffix= ac_top_builddir= |
| 21517 | fi |
| 21518 | |
| 21519 | case $srcdir in |
| 21520 | .) # No --srcdir option. We are building in place. |
| 21521 | ac_srcdir=. |
| 21522 | if test -z "$ac_top_builddir"; then |
| 21523 | ac_top_srcdir=. |
| 21524 | else |
| 21525 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 21526 | fi ;; |
| 21527 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 21528 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 21529 | ac_top_srcdir=$srcdir ;; |
| 21530 | *) # Relative path. |
| 21531 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 21532 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 21533 | esac |
Alexandre Julliard | 875927f | 2004-01-02 01:55:29 +0000 | [diff] [blame] | 21534 | |
| 21535 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 21536 | # the directories may not exist. |
| 21537 | case `pwd` in |
| 21538 | .) ac_abs_builddir="$ac_dir";; |
| 21539 | *) |
| 21540 | case "$ac_dir" in |
| 21541 | .) ac_abs_builddir=`pwd`;; |
| 21542 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 21543 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 21544 | esac;; |
| 21545 | esac |
| 21546 | case $ac_abs_builddir in |
| 21547 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21548 | *) |
| 21549 | case ${ac_top_builddir}. in |
| 21550 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 21551 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21552 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 21553 | esac;; |
| 21554 | esac |
| 21555 | case $ac_abs_builddir in |
| 21556 | .) ac_abs_srcdir=$ac_srcdir;; |
| 21557 | *) |
| 21558 | case $ac_srcdir in |
| 21559 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 21560 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 21561 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 21562 | esac;; |
| 21563 | esac |
| 21564 | case $ac_abs_builddir in |
| 21565 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21566 | *) |
| 21567 | case $ac_top_srcdir in |
| 21568 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 21569 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21570 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 21571 | esac;; |
| 21572 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21573 | |
| 21574 | |
| 21575 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 21576 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 21577 | case $ac_dest in |
| 21578 | dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5 |
| 21579 | echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;; |
| 21580 | dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5 |
| 21581 | echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;; |
| 21582 | dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5 |
| 21583 | echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;; |
| 21584 | dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5 |
| 21585 | echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;; |
| 21586 | dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5 |
| 21587 | echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;; |
| 21588 | dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5 |
| 21589 | echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21590 | dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5 |
| 21591 | echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;; |
| 21592 | dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5 |
| 21593 | echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21594 | dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5 |
| 21595 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21596 | dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5 |
| 21597 | echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;; |
| 21598 | dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
| 21599 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21600 | dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5 |
| 21601 | echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;; |
| 21602 | include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
| 21603 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 21604 | misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5 |
| 21605 | echo "$as_me: creating misc" >&6;} && mkdir "misc") ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 21606 | programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5 |
| 21607 | echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 21608 | windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5 |
| 21609 | echo "$as_me: creating windows" >&6;} && mkdir "windows") ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21610 | esac |
| 21611 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21612 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21613 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21614 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 21615 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21616 | { (exit 0); exit 0; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21617 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21618 | chmod +x $CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21619 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21620 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21621 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21622 | # configure is writing to config.log, and then calls config.status. |
| 21623 | # config.status does its own redirection, appending to config.log. |
| 21624 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21625 | # by configure, so config.status won't be able to write to it; its |
| 21626 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21627 | # effectively closing config.log, so it can be properly (re)opened and |
| 21628 | # appended to by config.status. When coming back to configure, we |
| 21629 | # need to make the FD available again. |
| 21630 | if test "$no_create" != yes; then |
| 21631 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21632 | ac_config_status_args= |
| 21633 | test "$silent" = yes && |
| 21634 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21635 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 21636 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21637 | exec 5>>config.log |
| 21638 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21639 | # would make configure fail if this is the last instruction. |
| 21640 | $ac_cs_success || { (exit 1); exit 1; } |
| 21641 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21642 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 21643 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 21644 | if test "$have_x" = "no" |
| 21645 | then |
| 21646 | echo |
| 21647 | echo "*** Warning: X development files not found. Wine will be built without" |
| 21648 | echo "*** X support, which currently does not work, and would probably not be" |
| 21649 | 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] | 21650 | echo "*** Xlib/Xfree86 at the very least." |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 21651 | fi |
| 21652 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 21653 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 21654 | then |
| 21655 | echo |
| 21656 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 21657 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." |
| 21658 | fi |
| 21659 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 21660 | if test "$wine_cv_msg_freetype" = "yes" |
| 21661 | then |
| 21662 | echo |
| 21663 | echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 21664 | echo "*** installed, but 'freetype-config' is not in your PATH. Install the" |
| 21665 | echo "*** freetype-devel package (or its equivalent on your distribution) to" |
| 21666 | echo "*** enable Wine to use TrueType fonts." |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 21667 | fi |
| 21668 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21669 | echo |
Vincent Béron | 5606d10 | 2004-08-19 00:03:45 +0000 | [diff] [blame] | 21670 | echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 21671 | echo |
| 21672 | |