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 | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.57 for Wine 20021219. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4 | # |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6 | # Free Software Foundation, Inc. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12 | |
| 13 | # Be Bourne compatible |
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15 | emulate sh |
| 16 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 | # is contrary to our usage. Disable this feature. |
| 19 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21 | set -o posix |
| 22 | fi |
| 23 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 24 | # Support unset when possible. |
| 25 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 43 | do |
| 44 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 63 | |
| 64 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 65 | # Name of the executable. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 66 | as_me=`$as_basename "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 77 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 96 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | 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] | 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | as_mkdir_p=false |
| 222 | fi |
| 223 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 224 | as_executable_p="test -f" |
| 225 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 226 | # Sed expression to map a string onto a valid CPP name. |
| 227 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 228 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 229 | # Sed expression to map a string onto a valid variable name. |
| 230 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 231 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 232 | |
| 233 | # IFS |
| 234 | # We need space, tab and new line, in precisely that order. |
| 235 | as_nl=' |
| 236 | ' |
| 237 | IFS=" $as_nl" |
| 238 | |
| 239 | # CDPATH. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 240 | $as_unset CDPATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 241 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 242 | |
| 243 | # Name of the host. |
| 244 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 245 | # so uname gets run too. |
| 246 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 247 | |
| 248 | exec 6>&1 |
| 249 | |
| 250 | # |
| 251 | # Initializations. |
| 252 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 253 | ac_default_prefix=/usr/local |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 254 | ac_config_libobj_dir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 255 | cross_compiling=no |
| 256 | subdirs= |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 257 | MFLAGS= |
| 258 | MAKEFLAGS= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 259 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 260 | |
| 261 | # Maximum number of lines to put in a shell here document. |
| 262 | # This variable seems obsolete. It should probably be removed, and |
| 263 | # only ac_max_sed_lines should be used. |
| 264 | : ${ac_max_here_lines=38} |
| 265 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 266 | # Identity of this package. |
| 267 | PACKAGE_NAME='Wine' |
| 268 | PACKAGE_TARNAME='wine' |
Alexandre Julliard | 9283bb3 | 2002-12-20 01:27:13 +0000 | [diff] [blame] | 269 | PACKAGE_VERSION='20021219' |
| 270 | PACKAGE_STRING='Wine 20021219' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 271 | PACKAGE_BUGREPORT='' |
| 272 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 273 | ac_unique_file="server/atom.c" |
| 274 | # Factoring default headers for most tests. |
| 275 | ac_includes_default="\ |
| 276 | #include <stdio.h> |
| 277 | #if HAVE_SYS_TYPES_H |
| 278 | # include <sys/types.h> |
| 279 | #endif |
| 280 | #if HAVE_SYS_STAT_H |
| 281 | # include <sys/stat.h> |
| 282 | #endif |
| 283 | #if STDC_HEADERS |
| 284 | # include <stdlib.h> |
| 285 | # include <stddef.h> |
| 286 | #else |
| 287 | # if HAVE_STDLIB_H |
| 288 | # include <stdlib.h> |
| 289 | # endif |
| 290 | #endif |
| 291 | #if HAVE_STRING_H |
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 293 | # include <memory.h> |
| 294 | # endif |
| 295 | # include <string.h> |
| 296 | #endif |
| 297 | #if HAVE_STRINGS_H |
| 298 | # include <strings.h> |
| 299 | #endif |
| 300 | #if HAVE_INTTYPES_H |
| 301 | # include <inttypes.h> |
| 302 | #else |
| 303 | # if HAVE_STDINT_H |
| 304 | # include <stdint.h> |
| 305 | # endif |
| 306 | #endif |
| 307 | #if HAVE_UNISTD_H |
| 308 | # include <unistd.h> |
| 309 | #endif" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 310 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 311 | 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 OPTIONS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN C2MAN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS' |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 312 | ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 313 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 314 | # Initialize some variables set by options. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 315 | ac_init_help= |
| 316 | ac_init_version=false |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 317 | # The variables have the same names as the options, with |
| 318 | # dashes changed to underlines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 319 | cache_file=/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 320 | exec_prefix=NONE |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 321 | no_create= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 322 | no_recursion= |
| 323 | prefix=NONE |
| 324 | program_prefix=NONE |
| 325 | program_suffix=NONE |
| 326 | program_transform_name=s,x,x, |
| 327 | silent= |
| 328 | site= |
| 329 | srcdir= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 330 | verbose= |
| 331 | x_includes=NONE |
| 332 | x_libraries=NONE |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 333 | |
| 334 | # Installation directory options. |
| 335 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 336 | # and all the variables that are supposed to be based on exec_prefix |
| 337 | # by default will actually change. |
| 338 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 339 | bindir='${exec_prefix}/bin' |
| 340 | sbindir='${exec_prefix}/sbin' |
| 341 | libexecdir='${exec_prefix}/libexec' |
| 342 | datadir='${prefix}/share' |
| 343 | sysconfdir='${prefix}/etc' |
| 344 | sharedstatedir='${prefix}/com' |
| 345 | localstatedir='${prefix}/var' |
| 346 | libdir='${exec_prefix}/lib' |
| 347 | includedir='${prefix}/include' |
| 348 | oldincludedir='/usr/include' |
| 349 | infodir='${prefix}/info' |
| 350 | mandir='${prefix}/man' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 351 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 352 | ac_prev= |
| 353 | for ac_option |
| 354 | do |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 355 | # If the previous option needs an argument, assign it. |
| 356 | if test -n "$ac_prev"; then |
| 357 | eval "$ac_prev=\$ac_option" |
| 358 | ac_prev= |
| 359 | continue |
| 360 | fi |
| 361 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 363 | |
| 364 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 365 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 366 | case $ac_option in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 367 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 368 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 369 | ac_prev=bindir ;; |
| 370 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 371 | bindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 372 | |
| 373 | -build | --build | --buil | --bui | --bu) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 374 | ac_prev=build_alias ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 375 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 376 | build_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 377 | |
| 378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 380 | ac_prev=cache_file ;; |
| 381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 383 | cache_file=$ac_optarg ;; |
| 384 | |
| 385 | --config-cache | -C) |
| 386 | cache_file=config.cache ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 387 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 389 | ac_prev=datadir ;; |
| 390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 391 | | --da=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 392 | datadir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 393 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 394 | -disable-* | --disable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 395 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 396 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 399 | { (exit 1); exit 1; }; } |
| 400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 401 | eval "enable_$ac_feature=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 402 | |
| 403 | -enable-* | --enable-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 405 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 408 | { (exit 1); exit 1; }; } |
| 409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 410 | case $ac_option in |
| 411 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 412 | *) ac_optarg=yes ;; |
| 413 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 414 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 415 | |
| 416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 418 | | --exec | --exe | --ex) |
| 419 | ac_prev=exec_prefix ;; |
| 420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 422 | | --exec=* | --exe=* | --ex=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 423 | exec_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 424 | |
| 425 | -gas | --gas | --ga | --g) |
| 426 | # Obsolete; use --with-gas. |
| 427 | with_gas=yes ;; |
| 428 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 429 | -help | --help | --hel | --he | -h) |
| 430 | ac_init_help=long ;; |
| 431 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 432 | ac_init_help=recursive ;; |
| 433 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 434 | ac_init_help=short ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 435 | |
| 436 | -host | --host | --hos | --ho) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 437 | ac_prev=host_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 438 | -host=* | --host=* | --hos=* | --ho=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 439 | host_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 440 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 441 | -includedir | --includedir | --includedi | --included | --include \ |
| 442 | | --includ | --inclu | --incl | --inc) |
| 443 | ac_prev=includedir ;; |
| 444 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 445 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 446 | includedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 447 | |
| 448 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 449 | ac_prev=infodir ;; |
| 450 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 451 | infodir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 452 | |
| 453 | -libdir | --libdir | --libdi | --libd) |
| 454 | ac_prev=libdir ;; |
| 455 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 456 | libdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 457 | |
| 458 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 459 | | --libexe | --libex | --libe) |
| 460 | ac_prev=libexecdir ;; |
| 461 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 462 | | --libexe=* | --libex=* | --libe=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 463 | libexecdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 464 | |
| 465 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 466 | | --localstate | --localstat | --localsta | --localst \ |
| 467 | | --locals | --local | --loca | --loc | --lo) |
| 468 | ac_prev=localstatedir ;; |
| 469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 472 | localstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 473 | |
| 474 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 475 | ac_prev=mandir ;; |
| 476 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 477 | mandir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 478 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 479 | -nfp | --nfp | --nf) |
| 480 | # Obsolete; use --without-fp. |
| 481 | with_fp=no ;; |
| 482 | |
| 483 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 484 | | --no-cr | --no-c | -n) |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 485 | no_create=yes ;; |
| 486 | |
| 487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 489 | no_recursion=yes ;; |
| 490 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 491 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 492 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 493 | | --oldin | --oldi | --old | --ol | --o) |
| 494 | ac_prev=oldincludedir ;; |
| 495 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 496 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 497 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 498 | oldincludedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 499 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 500 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 501 | ac_prev=prefix ;; |
| 502 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 503 | prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 504 | |
| 505 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 506 | | --program-pre | --program-pr | --program-p) |
| 507 | ac_prev=program_prefix ;; |
| 508 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 509 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 510 | program_prefix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 511 | |
| 512 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 513 | | --program-suf | --program-su | --program-s) |
| 514 | ac_prev=program_suffix ;; |
| 515 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 516 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 517 | program_suffix=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 518 | |
| 519 | -program-transform-name | --program-transform-name \ |
| 520 | | --program-transform-nam | --program-transform-na \ |
| 521 | | --program-transform-n | --program-transform- \ |
| 522 | | --program-transform | --program-transfor \ |
| 523 | | --program-transfo | --program-transf \ |
| 524 | | --program-trans | --program-tran \ |
| 525 | | --progr-tra | --program-tr | --program-t) |
| 526 | ac_prev=program_transform_name ;; |
| 527 | -program-transform-name=* | --program-transform-name=* \ |
| 528 | | --program-transform-nam=* | --program-transform-na=* \ |
| 529 | | --program-transform-n=* | --program-transform-=* \ |
| 530 | | --program-transform=* | --program-transfor=* \ |
| 531 | | --program-transfo=* | --program-transf=* \ |
| 532 | | --program-trans=* | --program-tran=* \ |
| 533 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 534 | program_transform_name=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 535 | |
| 536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 537 | | -silent | --silent | --silen | --sile | --sil) |
| 538 | silent=yes ;; |
| 539 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 540 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 541 | ac_prev=sbindir ;; |
| 542 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 543 | | --sbi=* | --sb=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 544 | sbindir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 545 | |
| 546 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 547 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 548 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 549 | | --sha | --sh) |
| 550 | ac_prev=sharedstatedir ;; |
| 551 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 552 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 553 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 554 | | --sha=* | --sh=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 555 | sharedstatedir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 556 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 557 | -site | --site | --sit) |
| 558 | ac_prev=site ;; |
| 559 | -site=* | --site=* | --sit=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 560 | site=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 561 | |
| 562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 563 | ac_prev=srcdir ;; |
| 564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 565 | srcdir=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 566 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 567 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 568 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 569 | ac_prev=sysconfdir ;; |
| 570 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 571 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 572 | sysconfdir=$ac_optarg ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 573 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 574 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 575 | ac_prev=target_alias ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 576 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 577 | target_alias=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 578 | |
| 579 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 580 | verbose=yes ;; |
| 581 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 582 | -version | --version | --versio | --versi | --vers | -V) |
| 583 | ac_init_version=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 584 | |
| 585 | -with-* | --with-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 586 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 587 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 590 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 591 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 592 | case $ac_option in |
| 593 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 594 | *) ac_optarg=yes ;; |
| 595 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 596 | eval "with_$ac_package='$ac_optarg'" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 597 | |
| 598 | -without-* | --without-*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 600 | # Reject names that are not valid shell variable names. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 603 | { (exit 1); exit 1; }; } |
| 604 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 605 | eval "with_$ac_package=no" ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 606 | |
| 607 | --x) |
| 608 | # Obsolete; use --with-x. |
| 609 | with_x=yes ;; |
| 610 | |
| 611 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 612 | | --x-incl | --x-inc | --x-in | --x-i) |
| 613 | ac_prev=x_includes ;; |
| 614 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 615 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 616 | x_includes=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 617 | |
| 618 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 619 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 620 | ac_prev=x_libraries ;; |
| 621 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 622 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 623 | x_libraries=$ac_optarg ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 624 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 625 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 626 | Try \`$0 --help' for more information." >&2 |
| 627 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 628 | ;; |
| 629 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 630 | *=*) |
| 631 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 632 | # Reject names that are not valid shell variable names. |
| 633 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 634 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 635 | { (exit 1); exit 1; }; } |
| 636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 637 | eval "$ac_envvar='$ac_optarg'" |
| 638 | export $ac_envvar ;; |
| 639 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 640 | *) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 641 | # FIXME: should be removed in autoconf 3.0. |
| 642 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 643 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 644 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 645 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 646 | ;; |
| 647 | |
| 648 | esac |
| 649 | done |
| 650 | |
| 651 | if test -n "$ac_prev"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 652 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 653 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 654 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 655 | fi |
| 656 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 657 | # Be sure to have absolute paths. |
| 658 | for ac_var in exec_prefix prefix |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 659 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 660 | eval ac_val=$`echo $ac_var` |
| 661 | case $ac_val in |
| 662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 663 | *) { 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] | 664 | { (exit 1); exit 1; }; };; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 665 | esac |
| 666 | done |
| 667 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 668 | # Be sure to have absolute paths. |
| 669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 670 | localstatedir libdir includedir oldincludedir infodir mandir |
| 671 | do |
| 672 | eval ac_val=$`echo $ac_var` |
| 673 | case $ac_val in |
| 674 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 675 | *) { 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] | 676 | { (exit 1); exit 1; }; };; |
| 677 | esac |
| 678 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 679 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 680 | # There might be people who depend on the old broken behavior: `$host' |
| 681 | # used to hold the argument of --host etc. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 682 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 683 | build=$build_alias |
| 684 | host=$host_alias |
| 685 | target=$target_alias |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 686 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 687 | # FIXME: To remove some day. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 688 | if test "x$host_alias" != x; then |
| 689 | if test "x$build_alias" = x; then |
| 690 | cross_compiling=maybe |
| 691 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 692 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 693 | elif test "x$build_alias" != "x$host_alias"; then |
| 694 | cross_compiling=yes |
| 695 | fi |
| 696 | fi |
| 697 | |
| 698 | ac_tool_prefix= |
| 699 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 700 | |
| 701 | test "$silent" = yes && exec 6>/dev/null |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 702 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 703 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 704 | # Find the source files, if location was not specified. |
| 705 | if test -z "$srcdir"; then |
| 706 | ac_srcdir_defaulted=yes |
| 707 | # Try the directory containing this script, then its parent. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 708 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 710 | X"$0" : 'X\(//\)[^/]' \| \ |
| 711 | X"$0" : 'X\(//\)$' \| \ |
| 712 | X"$0" : 'X\(/\)' \| \ |
| 713 | . : '\(.\)' 2>/dev/null || |
| 714 | echo X"$0" | |
| 715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 718 | /^X\(\/\).*/{ s//\1/; q; } |
| 719 | s/.*/./; q'` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 720 | srcdir=$ac_confdir |
| 721 | if test ! -r $srcdir/$ac_unique_file; then |
| 722 | srcdir=.. |
| 723 | fi |
| 724 | else |
| 725 | ac_srcdir_defaulted=no |
| 726 | fi |
| 727 | if test ! -r $srcdir/$ac_unique_file; then |
| 728 | if test "$ac_srcdir_defaulted" = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 729 | { 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] | 730 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 731 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 732 | { 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] | 733 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 734 | fi |
| 735 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 736 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 737 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 738 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 739 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 740 | ac_env_build_alias_set=${build_alias+set} |
| 741 | ac_env_build_alias_value=$build_alias |
| 742 | ac_cv_env_build_alias_set=${build_alias+set} |
| 743 | ac_cv_env_build_alias_value=$build_alias |
| 744 | ac_env_host_alias_set=${host_alias+set} |
| 745 | ac_env_host_alias_value=$host_alias |
| 746 | ac_cv_env_host_alias_set=${host_alias+set} |
| 747 | ac_cv_env_host_alias_value=$host_alias |
| 748 | ac_env_target_alias_set=${target_alias+set} |
| 749 | ac_env_target_alias_value=$target_alias |
| 750 | ac_cv_env_target_alias_set=${target_alias+set} |
| 751 | ac_cv_env_target_alias_value=$target_alias |
| 752 | ac_env_CC_set=${CC+set} |
| 753 | ac_env_CC_value=$CC |
| 754 | ac_cv_env_CC_set=${CC+set} |
| 755 | ac_cv_env_CC_value=$CC |
| 756 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 757 | ac_env_CFLAGS_value=$CFLAGS |
| 758 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 759 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 760 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 761 | ac_env_LDFLAGS_value=$LDFLAGS |
| 762 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 763 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 764 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 765 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 766 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 767 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 768 | ac_env_CPP_set=${CPP+set} |
| 769 | ac_env_CPP_value=$CPP |
| 770 | ac_cv_env_CPP_set=${CPP+set} |
| 771 | ac_cv_env_CPP_value=$CPP |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 772 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 773 | # |
| 774 | # Report the --help message. |
| 775 | # |
| 776 | if test "$ac_init_help" = "long"; then |
| 777 | # Omit some internal or obsolete options to make the list less imposing. |
| 778 | # 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] | 779 | cat <<_ACEOF |
Alexandre Julliard | 9283bb3 | 2002-12-20 01:27:13 +0000 | [diff] [blame] | 780 | \`configure' configures Wine 20021219 to adapt to many kinds of systems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 781 | |
| 782 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 783 | |
| 784 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 785 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 786 | |
| 787 | Defaults for the options are specified in brackets. |
| 788 | |
| 789 | Configuration: |
| 790 | -h, --help display this help and exit |
| 791 | --help=short display options specific to this package |
| 792 | --help=recursive display the short help of all the included packages |
| 793 | -V, --version display version information and exit |
| 794 | -q, --quiet, --silent do not print \`checking...' messages |
| 795 | --cache-file=FILE cache test results in FILE [disabled] |
| 796 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 797 | -n, --no-create do not create output files |
| 798 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 799 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 800 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 801 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 802 | cat <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 803 | Installation directories: |
| 804 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 805 | [$ac_default_prefix] |
| 806 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 807 | [PREFIX] |
| 808 | |
| 809 | By default, \`make install' will install all the files in |
| 810 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 811 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 812 | for instance \`--prefix=\$HOME'. |
| 813 | |
| 814 | For better control, use the options below. |
| 815 | |
| 816 | Fine tuning of the installation directories: |
| 817 | --bindir=DIR user executables [EPREFIX/bin] |
| 818 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 819 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 820 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 821 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 822 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 823 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 824 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 825 | --includedir=DIR C header files [PREFIX/include] |
| 826 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 827 | --infodir=DIR info documentation [PREFIX/info] |
| 828 | --mandir=DIR man documentation [PREFIX/man] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 829 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 830 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 831 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 832 | |
| 833 | X features: |
| 834 | --x-includes=DIR X include files are in DIR |
| 835 | --x-libraries=DIR X library files are in DIR |
| 836 | |
| 837 | System types: |
| 838 | --build=BUILD configure for building on BUILD [guessed] |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 839 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
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 | fi |
| 842 | |
| 843 | if test -n "$ac_init_help"; then |
| 844 | case $ac_init_help in |
Alexandre Julliard | 9283bb3 | 2002-12-20 01:27:13 +0000 | [diff] [blame] | 845 | short | recursive ) echo "Configuration of Wine 20021219:";; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 846 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 847 | cat <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 848 | |
| 849 | Optional Features: |
| 850 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 851 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 852 | --disable-win16 do not include Win16 support |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 853 | --disable-debug compile out all debugging messages |
| 854 | --disable-trace compile out TRACE messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 855 | |
| 856 | Optional Packages: |
| 857 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 858 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 859 | --without-opengl do not use OpenGL |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 860 | --without-curses do not use curses |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 861 | --with-wine-tools=<dir> use Wine tools from directory <dir> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 862 | --with-x use the X Window System |
| 863 | |
| 864 | Some influential environment variables: |
| 865 | CC C compiler command |
| 866 | CFLAGS C compiler flags |
| 867 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 868 | nonstandard directory <lib dir> |
| 869 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 870 | headers in a nonstandard directory <include dir> |
| 871 | CPP C preprocessor |
| 872 | |
| 873 | Use these variables to override the choices made by `configure' or to help |
| 874 | it to find libraries and programs with nonstandard names/locations. |
| 875 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 876 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 877 | fi |
| 878 | |
| 879 | if test "$ac_init_help" = "recursive"; then |
| 880 | # If there are subdirs, report their specific --help. |
| 881 | ac_popdir=`pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 882 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 883 | test -d $ac_dir || continue |
| 884 | ac_builddir=. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 885 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 886 | if test "$ac_dir" != .; then |
| 887 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 888 | # A "../" for each directory in $ac_dir_suffix. |
| 889 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 890 | else |
| 891 | ac_dir_suffix= ac_top_builddir= |
| 892 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 893 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 894 | case $srcdir in |
| 895 | .) # No --srcdir option. We are building in place. |
| 896 | ac_srcdir=. |
| 897 | if test -z "$ac_top_builddir"; then |
| 898 | ac_top_srcdir=. |
| 899 | else |
| 900 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 901 | fi ;; |
| 902 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 903 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 904 | ac_top_srcdir=$srcdir ;; |
| 905 | *) # Relative path. |
| 906 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 907 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 908 | esac |
| 909 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 910 | # absolute. |
| 911 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 912 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 913 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 914 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 915 | |
| 916 | cd $ac_dir |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 917 | # Check for guested configure; otherwise get Cygnus style configure. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 918 | if test -f $ac_srcdir/configure.gnu; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 919 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 920 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 921 | elif test -f $ac_srcdir/configure; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 922 | echo |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 923 | $SHELL $ac_srcdir/configure --help=recursive |
| 924 | elif test -f $ac_srcdir/configure.ac || |
| 925 | test -f $ac_srcdir/configure.in; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 926 | echo |
| 927 | $ac_configure --help |
| 928 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 929 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 930 | fi |
| 931 | cd $ac_popdir |
| 932 | done |
| 933 | fi |
| 934 | |
| 935 | test -n "$ac_init_help" && exit 0 |
| 936 | if $ac_init_version; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 937 | cat <<\_ACEOF |
Alexandre Julliard | 9283bb3 | 2002-12-20 01:27:13 +0000 | [diff] [blame] | 938 | Wine configure 20021219 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 939 | generated by GNU Autoconf 2.57 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 940 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 941 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 942 | Free Software Foundation, Inc. |
| 943 | This configure script is free software; the Free Software Foundation |
| 944 | gives unlimited permission to copy, distribute and modify it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 945 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 946 | exit 0 |
| 947 | fi |
| 948 | exec 5>config.log |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 949 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 950 | This file contains any messages produced by compilers while |
| 951 | running configure, to aid debugging if configure makes a mistake. |
| 952 | |
Alexandre Julliard | 9283bb3 | 2002-12-20 01:27:13 +0000 | [diff] [blame] | 953 | It was created by Wine $as_me 20021219, which was |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 954 | generated by GNU Autoconf 2.57. Invocation command line was |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 955 | |
| 956 | $ $0 $@ |
| 957 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 958 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 959 | { |
| 960 | cat <<_ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 961 | ## --------- ## |
| 962 | ## Platform. ## |
| 963 | ## --------- ## |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 964 | |
| 965 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 966 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 967 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 968 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 969 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 970 | |
| 971 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 972 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 973 | |
| 974 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 975 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 976 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 977 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 978 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 979 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 980 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 981 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 982 | _ASUNAME |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 983 | |
| 984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 985 | for as_dir in $PATH |
| 986 | do |
| 987 | IFS=$as_save_IFS |
| 988 | test -z "$as_dir" && as_dir=. |
| 989 | echo "PATH: $as_dir" |
| 990 | done |
| 991 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 992 | } >&5 |
| 993 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 994 | cat >&5 <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 995 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 996 | |
| 997 | ## ----------- ## |
| 998 | ## Core tests. ## |
| 999 | ## ----------- ## |
| 1000 | |
| 1001 | _ACEOF |
| 1002 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1003 | |
| 1004 | # Keep a trace of the command line. |
| 1005 | # 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] | 1006 | # 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] | 1007 | # Also quote any args containing shell meta-characters. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1008 | # Make two passes to allow for proper duplicate-argument suppression. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1009 | ac_configure_args= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1010 | ac_configure_args0= |
| 1011 | ac_configure_args1= |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1012 | ac_sep= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1013 | ac_must_keep_next=false |
| 1014 | for ac_pass in 1 2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1015 | do |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1016 | for ac_arg |
| 1017 | do |
| 1018 | case $ac_arg in |
| 1019 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1020 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1021 | | -silent | --silent | --silen | --sile | --sil) |
| 1022 | continue ;; |
| 1023 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1024 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1025 | esac |
| 1026 | case $ac_pass in |
| 1027 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1028 | 2) |
| 1029 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1030 | if test $ac_must_keep_next = true; then |
| 1031 | ac_must_keep_next=false # Got value, back to normal. |
| 1032 | else |
| 1033 | case $ac_arg in |
| 1034 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1035 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1036 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1037 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1038 | case "$ac_configure_args0 " in |
| 1039 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1040 | esac |
| 1041 | ;; |
| 1042 | -* ) ac_must_keep_next=true ;; |
| 1043 | esac |
| 1044 | fi |
| 1045 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1046 | # Get rid of the leading space. |
| 1047 | ac_sep=" " |
| 1048 | ;; |
| 1049 | esac |
| 1050 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1051 | done |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1052 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1053 | $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] | 1054 | |
| 1055 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1056 | # config.log. We remove comments because anyway the quotes in there |
| 1057 | # would cause problems or look ugly. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1058 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1059 | # such as our DU 5.0 friend, will then `close' the trap. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1060 | trap 'exit_status=$? |
| 1061 | # Save into config.log some information that might help in debugging. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1062 | { |
| 1063 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1064 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1065 | cat <<\_ASBOX |
| 1066 | ## ---------------- ## |
| 1067 | ## Cache variables. ## |
| 1068 | ## ---------------- ## |
| 1069 | _ASBOX |
| 1070 | echo |
| 1071 | # The following way of writing the cache mishandles newlines in values, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1072 | { |
| 1073 | (set) 2>&1 | |
| 1074 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1075 | *ac_space=\ *) |
| 1076 | sed -n \ |
| 1077 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1078 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1079 | ;; |
| 1080 | *) |
| 1081 | sed -n \ |
| 1082 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1083 | ;; |
| 1084 | esac; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1085 | } |
| 1086 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1087 | |
| 1088 | cat <<\_ASBOX |
| 1089 | ## ----------------- ## |
| 1090 | ## Output variables. ## |
| 1091 | ## ----------------- ## |
| 1092 | _ASBOX |
| 1093 | echo |
| 1094 | for ac_var in $ac_subst_vars |
| 1095 | do |
| 1096 | eval ac_val=$`echo $ac_var` |
| 1097 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1098 | done | sort |
| 1099 | echo |
| 1100 | |
| 1101 | if test -n "$ac_subst_files"; then |
| 1102 | cat <<\_ASBOX |
| 1103 | ## ------------- ## |
| 1104 | ## Output files. ## |
| 1105 | ## ------------- ## |
| 1106 | _ASBOX |
| 1107 | echo |
| 1108 | for ac_var in $ac_subst_files |
| 1109 | do |
| 1110 | eval ac_val=$`echo $ac_var` |
| 1111 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1112 | done | sort |
| 1113 | echo |
| 1114 | fi |
| 1115 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1116 | if test -s confdefs.h; then |
| 1117 | cat <<\_ASBOX |
| 1118 | ## ----------- ## |
| 1119 | ## confdefs.h. ## |
| 1120 | ## ----------- ## |
| 1121 | _ASBOX |
| 1122 | echo |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1123 | sed "/^$/d" confdefs.h | sort |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1124 | echo |
| 1125 | fi |
| 1126 | test "$ac_signal" != 0 && |
| 1127 | echo "$as_me: caught signal $ac_signal" |
| 1128 | echo "$as_me: exit $exit_status" |
| 1129 | } >&5 |
| 1130 | rm -f core core.* *.core && |
| 1131 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1132 | exit $exit_status |
| 1133 | ' 0 |
| 1134 | for ac_signal in 1 2 13 15; do |
| 1135 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1136 | done |
| 1137 | ac_signal=0 |
| 1138 | |
| 1139 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1140 | rm -rf conftest* confdefs.h |
| 1141 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1142 | echo >confdefs.h |
| 1143 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1144 | # Predefined preprocessor variables. |
| 1145 | |
| 1146 | cat >>confdefs.h <<_ACEOF |
| 1147 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1148 | _ACEOF |
| 1149 | |
| 1150 | |
| 1151 | cat >>confdefs.h <<_ACEOF |
| 1152 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1153 | _ACEOF |
| 1154 | |
| 1155 | |
| 1156 | cat >>confdefs.h <<_ACEOF |
| 1157 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1158 | _ACEOF |
| 1159 | |
| 1160 | |
| 1161 | cat >>confdefs.h <<_ACEOF |
| 1162 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1163 | _ACEOF |
| 1164 | |
| 1165 | |
| 1166 | cat >>confdefs.h <<_ACEOF |
| 1167 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1168 | _ACEOF |
| 1169 | |
| 1170 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1171 | # 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] | 1172 | # Prefer explicitly selected file to automatically selected ones. |
| 1173 | if test -z "$CONFIG_SITE"; then |
| 1174 | if test "x$prefix" != xNONE; then |
| 1175 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1176 | else |
| 1177 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1178 | fi |
| 1179 | fi |
| 1180 | for ac_site_file in $CONFIG_SITE; do |
| 1181 | if test -r "$ac_site_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1182 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1183 | echo "$as_me: loading site script $ac_site_file" >&6;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1184 | sed 's/^/| /' "$ac_site_file" >&5 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1185 | . "$ac_site_file" |
| 1186 | fi |
| 1187 | done |
| 1188 | |
| 1189 | if test -r "$cache_file"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1190 | # Some versions of bash will fail to source /dev/null (special |
| 1191 | # files actually), so we avoid doing that. |
| 1192 | if test -f "$cache_file"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1193 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1194 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1195 | case $cache_file in |
| 1196 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1197 | *) . ./$cache_file;; |
| 1198 | esac |
| 1199 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1200 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1201 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1202 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1203 | >$cache_file |
| 1204 | fi |
| 1205 | |
| 1206 | # Check that the precious variables saved in the cache have kept the same |
| 1207 | # value. |
| 1208 | ac_cache_corrupted=false |
| 1209 | for ac_var in `(set) 2>&1 | |
| 1210 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1211 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1212 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1213 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1214 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1215 | case $ac_old_set,$ac_new_set in |
| 1216 | set,) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1217 | { 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] | 1218 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1219 | ac_cache_corrupted=: ;; |
| 1220 | ,set) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1221 | { 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] | 1222 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1223 | ac_cache_corrupted=: ;; |
| 1224 | ,);; |
| 1225 | *) |
| 1226 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1227 | { 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] | 1228 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1229 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1230 | echo "$as_me: former value: $ac_old_val" >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1231 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1232 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1233 | ac_cache_corrupted=: |
| 1234 | fi;; |
| 1235 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1236 | # Pass precious variables to config.status. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1237 | if test "$ac_new_set" = set; then |
| 1238 | case $ac_new_val in |
| 1239 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1240 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1241 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1242 | esac |
| 1243 | case " $ac_configure_args " in |
| 1244 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1245 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1246 | esac |
| 1247 | fi |
| 1248 | done |
| 1249 | if $ac_cache_corrupted; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1250 | { 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] | 1251 | 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] | 1252 | { { 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] | 1253 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1254 | { (exit 1); exit 1; }; } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1255 | fi |
| 1256 | |
| 1257 | ac_ext=c |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1258 | ac_cpp='$CPP $CPPFLAGS' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1262 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1263 | |
| 1264 | |
| 1265 | |
| 1266 | |
| 1267 | |
| 1268 | |
| 1269 | |
| 1270 | |
| 1271 | |
| 1272 | |
| 1273 | |
| 1274 | |
| 1275 | |
| 1276 | |
| 1277 | |
| 1278 | |
| 1279 | |
| 1280 | |
| 1281 | |
| 1282 | |
| 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1288 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1289 | |
| 1290 | ac_config_headers="$ac_config_headers include/config.h" |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 1291 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1292 | ac_aux_dir= |
| 1293 | for ac_dir in tools $srcdir/tools; do |
| 1294 | if test -f $ac_dir/install-sh; then |
| 1295 | ac_aux_dir=$ac_dir |
| 1296 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1297 | break |
| 1298 | elif test -f $ac_dir/install.sh; then |
| 1299 | ac_aux_dir=$ac_dir |
| 1300 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1301 | break |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1302 | elif test -f $ac_dir/shtool; then |
| 1303 | ac_aux_dir=$ac_dir |
| 1304 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1305 | break |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1306 | fi |
| 1307 | done |
| 1308 | if test -z "$ac_aux_dir"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1309 | { { 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] | 1310 | echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;} |
| 1311 | { (exit 1); exit 1; }; } |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 1312 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1313 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1314 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1315 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 1316 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1317 | |
| 1318 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1319 | # Check whether --enable-win16 or --disable-win16 was given. |
| 1320 | if test "${enable_win16+set}" = set; then |
| 1321 | enableval="$enable_win16" |
| 1322 | |
| 1323 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1324 | # Check whether --enable-debug or --disable-debug was given. |
| 1325 | if test "${enable_debug+set}" = set; then |
| 1326 | enableval="$enable_debug" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1327 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1328 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1329 | # Check whether --enable-trace or --disable-trace was given. |
| 1330 | if test "${enable_trace+set}" = set; then |
| 1331 | enableval="$enable_trace" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1332 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1333 | fi; |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 1334 | |
| 1335 | |
| 1336 | # Check whether --with-opengl or --without-opengl was given. |
| 1337 | if test "${with_opengl+set}" = set; then |
| 1338 | withval="$with_opengl" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1339 | |
| 1340 | fi; |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1341 | |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1342 | # Check whether --with-curses or --without-curses was given. |
| 1343 | if test "${with_curses+set}" = set; then |
| 1344 | withval="$with_curses" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1345 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1346 | fi; |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 1347 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 1348 | # Check whether --with-wine-tools or --without-wine-tools was given. |
| 1349 | if test "${with_wine_tools+set}" = set; then |
| 1350 | withval="$with_wine_tools" |
| 1351 | |
| 1352 | fi; |
| 1353 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1354 | |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 1355 | WIN16_FILES="\$(WIN16_FILES)" |
| 1356 | |
| 1357 | WIN16_INSTALL="\$(WIN16_INSTALL)" |
| 1358 | |
| 1359 | if test "x$enable_win16" = "xno" |
| 1360 | then |
| 1361 | WIN16_FILES="" |
| 1362 | WIN16_INSTALL="" |
| 1363 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1364 | if test "x$enable_debug" = "xno" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1365 | then |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1366 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1367 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1368 | #define NO_DEBUG_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1369 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1370 | |
| 1371 | fi |
| 1372 | if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno" |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 1373 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1374 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1375 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1376 | #define NO_TRACE_MSGS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1377 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1378 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 1379 | fi |
| 1380 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1381 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1382 | # Make sure we can run config.sub. |
| 1383 | $ac_config_sub sun4 >/dev/null 2>&1 || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1384 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1385 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1386 | { (exit 1); exit 1; }; } |
Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1387 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1388 | echo "$as_me:$LINENO: checking build system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1389 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1390 | if test "${ac_cv_build+set}" = set; then |
| 1391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1392 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1393 | ac_cv_build_alias=$build_alias |
| 1394 | test -z "$ac_cv_build_alias" && |
| 1395 | ac_cv_build_alias=`$ac_config_guess` |
| 1396 | test -z "$ac_cv_build_alias" && |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1397 | { { 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] | 1398 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1399 | { (exit 1); exit 1; }; } |
| 1400 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1401 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1402 | 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] | 1403 | { (exit 1); exit 1; }; } |
| 1404 | |
| 1405 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1406 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1407 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1408 | build=$ac_cv_build |
| 1409 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1410 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1411 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1412 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1413 | |
| 1414 | echo "$as_me:$LINENO: checking host system type" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1415 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1416 | if test "${ac_cv_host+set}" = set; then |
| 1417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1418 | else |
| 1419 | ac_cv_host_alias=$host_alias |
| 1420 | test -z "$ac_cv_host_alias" && |
| 1421 | ac_cv_host_alias=$ac_cv_build_alias |
| 1422 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1423 | { { 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] | 1424 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1425 | { (exit 1); exit 1; }; } |
| 1426 | |
| 1427 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1428 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1429 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1430 | host=$ac_cv_host |
| 1431 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1432 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1433 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1434 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1435 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1436 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1437 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1438 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1439 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1441 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1442 | cat >conftest.make <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1443 | all: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1444 | @echo 'ac_maketemp="$(MAKE)"' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1445 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1446 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1447 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1448 | if test -n "$ac_maketemp"; then |
| 1449 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1450 | else |
| 1451 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1452 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1453 | rm -f conftest.make |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1454 | fi |
| 1455 | 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] | 1456 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1457 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1458 | SET_MAKE= |
| 1459 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1460 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1461 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1462 | SET_MAKE="MAKE=${MAKE-make}" |
| 1463 | fi |
| 1464 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1465 | ac_ext=c |
| 1466 | ac_cpp='$CPP $CPPFLAGS' |
| 1467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1470 | if test -n "$ac_tool_prefix"; then |
| 1471 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1472 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1473 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1475 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1477 | else |
| 1478 | if test -n "$CC"; then |
| 1479 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1480 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1482 | for as_dir in $PATH |
| 1483 | do |
| 1484 | IFS=$as_save_IFS |
| 1485 | test -z "$as_dir" && as_dir=. |
| 1486 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1487 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1488 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1490 | break 2 |
| 1491 | fi |
| 1492 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1493 | done |
| 1494 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1495 | fi |
| 1496 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1497 | CC=$ac_cv_prog_CC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1498 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1499 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1500 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1501 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1502 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1503 | echo "${ECHO_T}no" >&6 |
| 1504 | fi |
| 1505 | |
| 1506 | fi |
| 1507 | if test -z "$ac_cv_prog_CC"; then |
| 1508 | ac_ct_CC=$CC |
| 1509 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1510 | set dummy gcc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1511 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1512 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1513 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1515 | else |
| 1516 | if test -n "$ac_ct_CC"; then |
| 1517 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1518 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1520 | for as_dir in $PATH |
| 1521 | do |
| 1522 | IFS=$as_save_IFS |
| 1523 | test -z "$as_dir" && as_dir=. |
| 1524 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1525 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1526 | ac_cv_prog_ac_ct_CC="gcc" |
| 1527 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1528 | break 2 |
| 1529 | fi |
| 1530 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1531 | done |
| 1532 | |
| 1533 | fi |
| 1534 | fi |
| 1535 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1536 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1537 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1538 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1539 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1540 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1541 | echo "${ECHO_T}no" >&6 |
| 1542 | fi |
| 1543 | |
| 1544 | CC=$ac_ct_CC |
| 1545 | else |
| 1546 | CC="$ac_cv_prog_CC" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1547 | fi |
| 1548 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1549 | if test -z "$CC"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1550 | if test -n "$ac_tool_prefix"; then |
| 1551 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1552 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1553 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1555 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1557 | else |
| 1558 | if test -n "$CC"; then |
| 1559 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1560 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1562 | for as_dir in $PATH |
| 1563 | do |
| 1564 | IFS=$as_save_IFS |
| 1565 | test -z "$as_dir" && as_dir=. |
| 1566 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1567 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1568 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1569 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1570 | break 2 |
| 1571 | fi |
| 1572 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1573 | done |
| 1574 | |
| 1575 | fi |
| 1576 | fi |
| 1577 | CC=$ac_cv_prog_CC |
| 1578 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1579 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1580 | echo "${ECHO_T}$CC" >&6 |
| 1581 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1582 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1583 | echo "${ECHO_T}no" >&6 |
| 1584 | fi |
| 1585 | |
| 1586 | fi |
| 1587 | if test -z "$ac_cv_prog_CC"; then |
| 1588 | ac_ct_CC=$CC |
| 1589 | # Extract the first word of "cc", so it can be a program name with args. |
| 1590 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1591 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1593 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1595 | else |
| 1596 | if test -n "$ac_ct_CC"; then |
| 1597 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1598 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1600 | for as_dir in $PATH |
| 1601 | do |
| 1602 | IFS=$as_save_IFS |
| 1603 | test -z "$as_dir" && as_dir=. |
| 1604 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1605 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1606 | ac_cv_prog_ac_ct_CC="cc" |
| 1607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1608 | break 2 |
| 1609 | fi |
| 1610 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1611 | done |
| 1612 | |
| 1613 | fi |
| 1614 | fi |
| 1615 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1616 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1617 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1618 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1619 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1620 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1621 | echo "${ECHO_T}no" >&6 |
| 1622 | fi |
| 1623 | |
| 1624 | CC=$ac_ct_CC |
| 1625 | else |
| 1626 | CC="$ac_cv_prog_CC" |
| 1627 | fi |
| 1628 | |
| 1629 | fi |
| 1630 | if test -z "$CC"; then |
| 1631 | # Extract the first word of "cc", so it can be a program name with args. |
| 1632 | set dummy cc; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1633 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1634 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1635 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1637 | else |
| 1638 | if test -n "$CC"; then |
| 1639 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1640 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1641 | ac_prog_rejected=no |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1643 | for as_dir in $PATH |
| 1644 | do |
| 1645 | IFS=$as_save_IFS |
| 1646 | test -z "$as_dir" && as_dir=. |
| 1647 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1649 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1650 | ac_prog_rejected=yes |
| 1651 | continue |
| 1652 | fi |
| 1653 | ac_cv_prog_CC="cc" |
| 1654 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1655 | break 2 |
| 1656 | fi |
| 1657 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1658 | done |
| 1659 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1660 | if test $ac_prog_rejected = yes; then |
| 1661 | # We found a bogon in the path, so make sure we never use it. |
| 1662 | set dummy $ac_cv_prog_CC |
| 1663 | shift |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1664 | if test $# != 0; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1665 | # We chose a different compiler from the bogus one. |
| 1666 | # However, it has the same basename, so the bogon will be chosen |
| 1667 | # first if we set CC to just the basename; use the full file name. |
| 1668 | shift |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1669 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1670 | fi |
| 1671 | fi |
| 1672 | fi |
| 1673 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1674 | CC=$ac_cv_prog_CC |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1675 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1676 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1677 | echo "${ECHO_T}$CC" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 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 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1681 | fi |
| 1682 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1683 | fi |
| 1684 | if test -z "$CC"; then |
| 1685 | if test -n "$ac_tool_prefix"; then |
| 1686 | for ac_prog in cl |
| 1687 | do |
| 1688 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1689 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1690 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1692 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1694 | else |
| 1695 | if test -n "$CC"; then |
| 1696 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1697 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1699 | for as_dir in $PATH |
| 1700 | do |
| 1701 | IFS=$as_save_IFS |
| 1702 | test -z "$as_dir" && as_dir=. |
| 1703 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1705 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1707 | break 2 |
| 1708 | fi |
| 1709 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1710 | done |
| 1711 | |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1712 | fi |
| 1713 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1714 | CC=$ac_cv_prog_CC |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1715 | if test -n "$CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1716 | echo "$as_me:$LINENO: result: $CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1717 | echo "${ECHO_T}$CC" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1718 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1719 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1720 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 1721 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1722 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1723 | test -n "$CC" && break |
| 1724 | done |
| 1725 | fi |
| 1726 | if test -z "$CC"; then |
| 1727 | ac_ct_CC=$CC |
| 1728 | for ac_prog in cl |
| 1729 | do |
| 1730 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1731 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1732 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1734 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1736 | else |
| 1737 | if test -n "$ac_ct_CC"; then |
| 1738 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1739 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1741 | for as_dir in $PATH |
| 1742 | do |
| 1743 | IFS=$as_save_IFS |
| 1744 | test -z "$as_dir" && as_dir=. |
| 1745 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1746 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1747 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1749 | break 2 |
| 1750 | fi |
| 1751 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1752 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1753 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1754 | fi |
| 1755 | fi |
| 1756 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1757 | if test -n "$ac_ct_CC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1758 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1759 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1760 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1761 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1762 | echo "${ECHO_T}no" >&6 |
| 1763 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1764 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1765 | test -n "$ac_ct_CC" && break |
| 1766 | done |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1767 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1768 | CC=$ac_ct_CC |
| 1769 | fi |
| 1770 | |
| 1771 | fi |
| 1772 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1773 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1774 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1775 | See \`config.log' for more details." >&5 |
| 1776 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1777 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1778 | { (exit 1); exit 1; }; } |
| 1779 | |
| 1780 | # Provide some information about the compiler. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1781 | echo "$as_me:$LINENO:" \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1782 | "checking for C compiler version" >&5 |
| 1783 | ac_compiler=`set X $ac_compile; echo $2` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1784 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1785 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1786 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1788 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1789 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1790 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1791 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1793 | (exit $ac_status); } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1794 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1795 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1796 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1798 | (exit $ac_status); } |
| 1799 | |
| 1800 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1801 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1802 | /* confdefs.h. */ |
| 1803 | _ACEOF |
| 1804 | cat confdefs.h >>conftest.$ac_ext |
| 1805 | cat >>conftest.$ac_ext <<_ACEOF |
| 1806 | /* end confdefs.h. */ |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 1807 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1808 | int |
| 1809 | main () |
| 1810 | { |
| 1811 | |
| 1812 | ; |
| 1813 | return 0; |
| 1814 | } |
| 1815 | _ACEOF |
| 1816 | ac_clean_files_save=$ac_clean_files |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1817 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1818 | # Try to create an executable without -o first, disregard a.out. |
| 1819 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1820 | # of exeext. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1821 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1822 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1823 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1824 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1825 | (eval $ac_link_default) 2>&5 |
| 1826 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1828 | (exit $ac_status); }; then |
| 1829 | # Find the output, starting from the most likely. This scheme is |
| 1830 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1831 | # resort. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1832 | |
| 1833 | # Be careful to initialize this variable, since it used to be cached. |
| 1834 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1835 | ac_cv_exeext= |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1836 | # b.out is created by i960 compilers. |
| 1837 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1838 | do |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1839 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1840 | case $ac_file in |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1841 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1842 | ;; |
| 1843 | conftest.$ac_ext ) |
| 1844 | # This is the source file. |
| 1845 | ;; |
| 1846 | [ab].out ) |
| 1847 | # We found the default executable, but exeext='' is most |
| 1848 | # certainly right. |
| 1849 | break;; |
| 1850 | *.* ) |
| 1851 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1852 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1853 | # but it would be cool to find out if it's true. Does anybody |
| 1854 | # maintain Libtool? --akim. |
| 1855 | export ac_cv_exeext |
| 1856 | break;; |
| 1857 | * ) |
| 1858 | break;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1859 | esac |
| 1860 | done |
| 1861 | else |
| 1862 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1864 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1865 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1866 | See \`config.log' for more details." >&5 |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1867 | echo "$as_me: error: C compiler cannot create executables |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1868 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1869 | { (exit 77); exit 77; }; } |
| 1870 | fi |
| 1871 | |
| 1872 | ac_exeext=$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1873 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1874 | echo "${ECHO_T}$ac_file" >&6 |
| 1875 | |
| 1876 | # Check the compiler produces executables we can run. If not, either |
| 1877 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1878 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1879 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1880 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1881 | # If not cross compiling, check that we can run a simple program. |
| 1882 | if test "$cross_compiling" != yes; then |
| 1883 | if { ac_try='./$ac_file' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1885 | (eval $ac_try) 2>&5 |
| 1886 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1888 | (exit $ac_status); }; }; then |
| 1889 | cross_compiling=no |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1890 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1891 | if test "$cross_compiling" = maybe; then |
| 1892 | cross_compiling=yes |
| 1893 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1894 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1895 | If you meant to cross compile, use \`--host'. |
| 1896 | See \`config.log' for more details." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1897 | echo "$as_me: error: cannot run C compiled programs. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1898 | If you meant to cross compile, use \`--host'. |
| 1899 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1900 | { (exit 1); exit 1; }; } |
| 1901 | fi |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 1902 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1903 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1904 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1905 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1906 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1907 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1908 | ac_clean_files=$ac_clean_files_save |
| 1909 | # Check the compiler produces executables we can run. If not, either |
| 1910 | # the compiler is broken, or we cross compile. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1911 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1912 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1913 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1914 | echo "${ECHO_T}$cross_compiling" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 1915 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1916 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1917 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1919 | (eval $ac_link) 2>&5 |
| 1920 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1922 | (exit $ac_status); }; then |
| 1923 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1924 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1925 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1926 | # `rm'. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1927 | for ac_file in conftest.exe conftest conftest.*; do |
| 1928 | test -f "$ac_file" || continue |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1929 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1930 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1931 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1932 | export ac_cv_exeext |
| 1933 | break;; |
| 1934 | * ) break;; |
| 1935 | esac |
| 1936 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 1937 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1938 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1939 | See \`config.log' for more details." >&5 |
| 1940 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1941 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1942 | { (exit 1); exit 1; }; } |
| 1943 | fi |
| 1944 | |
| 1945 | rm -f conftest$ac_cv_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1946 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1947 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1948 | |
| 1949 | rm -f conftest.$ac_ext |
| 1950 | EXEEXT=$ac_cv_exeext |
| 1951 | ac_exeext=$EXEEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1952 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1953 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1954 | if test "${ac_cv_objext+set}" = set; then |
| 1955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1956 | else |
| 1957 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1958 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1959 | /* confdefs.h. */ |
| 1960 | _ACEOF |
| 1961 | cat confdefs.h >>conftest.$ac_ext |
| 1962 | cat >>conftest.$ac_ext <<_ACEOF |
| 1963 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1964 | |
| 1965 | int |
| 1966 | main () |
| 1967 | { |
| 1968 | |
| 1969 | ; |
| 1970 | return 0; |
| 1971 | } |
| 1972 | _ACEOF |
| 1973 | rm -f conftest.o conftest.obj |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1975 | (eval $ac_compile) 2>&5 |
| 1976 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1978 | (exit $ac_status); }; then |
| 1979 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1980 | case $ac_file in |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 1981 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1982 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1983 | break;; |
| 1984 | esac |
| 1985 | done |
| 1986 | else |
| 1987 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 1988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1989 | |
| 1990 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1991 | See \`config.log' for more details." >&5 |
| 1992 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1993 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 1994 | { (exit 1); exit 1; }; } |
| 1995 | fi |
| 1996 | |
| 1997 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1998 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 1999 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2000 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2001 | OBJEXT=$ac_cv_objext |
| 2002 | ac_objext=$OBJEXT |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2003 | 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] | 2004 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2005 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2007 | else |
| 2008 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2009 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2010 | /* confdefs.h. */ |
| 2011 | _ACEOF |
| 2012 | cat confdefs.h >>conftest.$ac_ext |
| 2013 | cat >>conftest.$ac_ext <<_ACEOF |
| 2014 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2015 | |
| 2016 | int |
| 2017 | main () |
| 2018 | { |
| 2019 | #ifndef __GNUC__ |
| 2020 | choke me |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2021 | #endif |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2022 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2023 | ; |
| 2024 | return 0; |
| 2025 | } |
| 2026 | _ACEOF |
| 2027 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2029 | (eval $ac_compile) 2>&5 |
| 2030 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2032 | (exit $ac_status); } && |
| 2033 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2035 | (eval $ac_try) 2>&5 |
| 2036 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2038 | (exit $ac_status); }; }; then |
| 2039 | ac_compiler_gnu=yes |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2040 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2041 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2043 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2044 | ac_compiler_gnu=no |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2045 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2046 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2047 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2048 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2049 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2050 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2051 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2052 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2053 | ac_test_CFLAGS=${CFLAGS+set} |
| 2054 | ac_save_CFLAGS=$CFLAGS |
| 2055 | CFLAGS="-g" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2056 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2057 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2058 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2060 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2061 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2062 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2063 | /* confdefs.h. */ |
| 2064 | _ACEOF |
| 2065 | cat confdefs.h >>conftest.$ac_ext |
| 2066 | cat >>conftest.$ac_ext <<_ACEOF |
| 2067 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2068 | |
| 2069 | int |
| 2070 | main () |
| 2071 | { |
| 2072 | |
| 2073 | ; |
| 2074 | return 0; |
| 2075 | } |
| 2076 | _ACEOF |
| 2077 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2079 | (eval $ac_compile) 2>&5 |
| 2080 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2082 | (exit $ac_status); } && |
| 2083 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2085 | (eval $ac_try) 2>&5 |
| 2086 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2088 | (exit $ac_status); }; }; then |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 2089 | ac_cv_prog_cc_g=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2090 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2091 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2093 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2094 | ac_cv_prog_cc_g=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2095 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2096 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2097 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2098 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2099 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2100 | if test "$ac_test_CFLAGS" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2101 | CFLAGS=$ac_save_CFLAGS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2102 | elif test $ac_cv_prog_cc_g = yes; then |
| 2103 | if test "$GCC" = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2104 | CFLAGS="-g -O2" |
| 2105 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2106 | CFLAGS="-g" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2107 | fi |
| 2108 | else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 2109 | if test "$GCC" = yes; then |
| 2110 | CFLAGS="-O2" |
| 2111 | else |
| 2112 | CFLAGS= |
| 2113 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2114 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2115 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2116 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2117 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2119 | else |
| 2120 | ac_cv_prog_cc_stdc=no |
| 2121 | ac_save_CC=$CC |
| 2122 | cat >conftest.$ac_ext <<_ACEOF |
| 2123 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2124 | /* confdefs.h. */ |
| 2125 | _ACEOF |
| 2126 | cat confdefs.h >>conftest.$ac_ext |
| 2127 | cat >>conftest.$ac_ext <<_ACEOF |
| 2128 | /* end confdefs.h. */ |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2129 | #include <stdarg.h> |
| 2130 | #include <stdio.h> |
| 2131 | #include <sys/types.h> |
| 2132 | #include <sys/stat.h> |
| 2133 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2134 | struct buf { int x; }; |
| 2135 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2136 | static char *e (p, i) |
| 2137 | char **p; |
| 2138 | int i; |
| 2139 | { |
| 2140 | return p[i]; |
| 2141 | } |
| 2142 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2143 | { |
| 2144 | char *s; |
| 2145 | va_list v; |
| 2146 | va_start (v,p); |
| 2147 | s = g (p, va_arg (v,int)); |
| 2148 | va_end (v); |
| 2149 | return s; |
| 2150 | } |
| 2151 | int test (int i, double x); |
| 2152 | struct s1 {int (*f) (int a);}; |
| 2153 | struct s2 {int (*f) (double a);}; |
| 2154 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2155 | int argc; |
| 2156 | char **argv; |
| 2157 | int |
| 2158 | main () |
| 2159 | { |
| 2160 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2161 | ; |
| 2162 | return 0; |
| 2163 | } |
| 2164 | _ACEOF |
| 2165 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2166 | # breaks some systems' header files. |
| 2167 | # AIX -qlanglvl=ansi |
| 2168 | # Ultrix and OSF/1 -std1 |
| 2169 | # HP-UX 10.20 and later -Ae |
| 2170 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2171 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2172 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2173 | do |
| 2174 | CC="$ac_save_CC $ac_arg" |
| 2175 | rm -f conftest.$ac_objext |
| 2176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2177 | (eval $ac_compile) 2>&5 |
| 2178 | ac_status=$? |
| 2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2180 | (exit $ac_status); } && |
| 2181 | { ac_try='test -s conftest.$ac_objext' |
| 2182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2183 | (eval $ac_try) 2>&5 |
| 2184 | ac_status=$? |
| 2185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2186 | (exit $ac_status); }; }; then |
| 2187 | ac_cv_prog_cc_stdc=$ac_arg |
| 2188 | break |
| 2189 | else |
| 2190 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2192 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2193 | fi |
| 2194 | rm -f conftest.$ac_objext |
| 2195 | done |
| 2196 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2197 | CC=$ac_save_CC |
| 2198 | |
| 2199 | fi |
| 2200 | |
| 2201 | case "x$ac_cv_prog_cc_stdc" in |
| 2202 | x|xno) |
| 2203 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2204 | echo "${ECHO_T}none needed" >&6 ;; |
| 2205 | *) |
| 2206 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2207 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2208 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2209 | esac |
| 2210 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2211 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2212 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2213 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2214 | # the declaration of exit, since it's the most demanding environment. |
| 2215 | cat >conftest.$ac_ext <<_ACEOF |
| 2216 | #ifndef __cplusplus |
| 2217 | choke me |
| 2218 | #endif |
| 2219 | _ACEOF |
| 2220 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2222 | (eval $ac_compile) 2>&5 |
| 2223 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2225 | (exit $ac_status); } && |
| 2226 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2228 | (eval $ac_try) 2>&5 |
| 2229 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2231 | (exit $ac_status); }; }; then |
| 2232 | for ac_declaration in \ |
| 2233 | ''\ |
| 2234 | '#include <stdlib.h>' \ |
| 2235 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2236 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2237 | 'extern "C" void exit (int) throw ();' \ |
| 2238 | 'extern "C" void exit (int);' \ |
| 2239 | 'void exit (int);' |
| 2240 | do |
| 2241 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2242 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2243 | /* confdefs.h. */ |
| 2244 | _ACEOF |
| 2245 | cat confdefs.h >>conftest.$ac_ext |
| 2246 | cat >>conftest.$ac_ext <<_ACEOF |
| 2247 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2248 | #include <stdlib.h> |
| 2249 | $ac_declaration |
| 2250 | int |
| 2251 | main () |
| 2252 | { |
| 2253 | exit (42); |
| 2254 | ; |
| 2255 | return 0; |
| 2256 | } |
| 2257 | _ACEOF |
| 2258 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2260 | (eval $ac_compile) 2>&5 |
| 2261 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2263 | (exit $ac_status); } && |
| 2264 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2266 | (eval $ac_try) 2>&5 |
| 2267 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2269 | (exit $ac_status); }; }; then |
| 2270 | : |
| 2271 | else |
| 2272 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2273 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2274 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2275 | continue |
| 2276 | fi |
| 2277 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2278 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2279 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2280 | /* confdefs.h. */ |
| 2281 | _ACEOF |
| 2282 | cat confdefs.h >>conftest.$ac_ext |
| 2283 | cat >>conftest.$ac_ext <<_ACEOF |
| 2284 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2285 | $ac_declaration |
| 2286 | int |
| 2287 | main () |
| 2288 | { |
| 2289 | exit (42); |
| 2290 | ; |
| 2291 | return 0; |
| 2292 | } |
| 2293 | _ACEOF |
| 2294 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2296 | (eval $ac_compile) 2>&5 |
| 2297 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2299 | (exit $ac_status); } && |
| 2300 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2302 | (eval $ac_try) 2>&5 |
| 2303 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2305 | (exit $ac_status); }; }; then |
| 2306 | break |
| 2307 | else |
| 2308 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2310 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2311 | fi |
| 2312 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2313 | done |
| 2314 | rm -f conftest* |
| 2315 | if test -n "$ac_declaration"; then |
| 2316 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2317 | echo $ac_declaration >>confdefs.h |
| 2318 | echo '#endif' >>confdefs.h |
| 2319 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2320 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2321 | else |
| 2322 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2324 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2325 | fi |
| 2326 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2327 | ac_ext=c |
| 2328 | ac_cpp='$CPP $CPPFLAGS' |
| 2329 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2330 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2331 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2332 | |
| 2333 | ac_ext=c |
| 2334 | ac_cpp='$CPP $CPPFLAGS' |
| 2335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2338 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2339 | 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] | 2340 | # On Suns, sometimes $CPP names a directory. |
| 2341 | if test -n "$CPP" && test -d "$CPP"; then |
| 2342 | CPP= |
| 2343 | fi |
| 2344 | if test -z "$CPP"; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2345 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2347 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2348 | # Double quotes because CPP needs to be expanded |
| 2349 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2350 | do |
| 2351 | ac_preproc_ok=false |
| 2352 | for ac_c_preproc_warn_flag in '' yes |
| 2353 | do |
| 2354 | # Use a header file that comes with gcc, so configuring glibc |
| 2355 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2356 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2357 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2358 | # 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] | 2359 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2360 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2361 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2362 | /* confdefs.h. */ |
| 2363 | _ACEOF |
| 2364 | cat confdefs.h >>conftest.$ac_ext |
| 2365 | cat >>conftest.$ac_ext <<_ACEOF |
| 2366 | /* end confdefs.h. */ |
| 2367 | #ifdef __STDC__ |
| 2368 | # include <limits.h> |
| 2369 | #else |
| 2370 | # include <assert.h> |
| 2371 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2372 | Syntax error |
| 2373 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2374 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2375 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2376 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2377 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2378 | rm -f conftest.er1 |
| 2379 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2381 | (exit $ac_status); } >/dev/null; then |
| 2382 | if test -s conftest.err; then |
| 2383 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2384 | else |
| 2385 | ac_cpp_err= |
| 2386 | fi |
| 2387 | else |
| 2388 | ac_cpp_err=yes |
| 2389 | fi |
| 2390 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2391 | : |
| 2392 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2393 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2395 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2396 | # Broken: fails on valid input. |
| 2397 | continue |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2398 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2399 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2400 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2401 | # OK, works on sane cases. Now check whether non-existent headers |
| 2402 | # can be detected and how. |
| 2403 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2404 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2405 | /* confdefs.h. */ |
| 2406 | _ACEOF |
| 2407 | cat confdefs.h >>conftest.$ac_ext |
| 2408 | cat >>conftest.$ac_ext <<_ACEOF |
| 2409 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2410 | #include <ac_nonexistent.h> |
| 2411 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2412 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2413 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2414 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2415 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2416 | rm -f conftest.er1 |
| 2417 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2419 | (exit $ac_status); } >/dev/null; then |
| 2420 | if test -s conftest.err; then |
| 2421 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2422 | else |
| 2423 | ac_cpp_err= |
| 2424 | fi |
| 2425 | else |
| 2426 | ac_cpp_err=yes |
| 2427 | fi |
| 2428 | if test -z "$ac_cpp_err"; then |
| 2429 | # Broken: success on invalid input. |
| 2430 | continue |
| 2431 | else |
| 2432 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2433 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2434 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2435 | # Passes both tests. |
| 2436 | ac_preproc_ok=: |
| 2437 | break |
| 2438 | fi |
| 2439 | rm -f conftest.err conftest.$ac_ext |
| 2440 | |
| 2441 | done |
| 2442 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2443 | rm -f conftest.err conftest.$ac_ext |
| 2444 | if $ac_preproc_ok; then |
| 2445 | break |
| 2446 | fi |
| 2447 | |
| 2448 | done |
| 2449 | ac_cv_prog_CPP=$CPP |
| 2450 | |
| 2451 | fi |
| 2452 | CPP=$ac_cv_prog_CPP |
| 2453 | else |
| 2454 | ac_cv_prog_CPP=$CPP |
| 2455 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2456 | echo "$as_me:$LINENO: result: $CPP" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2457 | echo "${ECHO_T}$CPP" >&6 |
| 2458 | ac_preproc_ok=false |
| 2459 | for ac_c_preproc_warn_flag in '' yes |
| 2460 | do |
| 2461 | # Use a header file that comes with gcc, so configuring glibc |
| 2462 | # with a fresh cross-compiler works. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2463 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2464 | # <limits.h> exists even on freestanding compilers. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2465 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2466 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2467 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2468 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2469 | /* confdefs.h. */ |
| 2470 | _ACEOF |
| 2471 | cat confdefs.h >>conftest.$ac_ext |
| 2472 | cat >>conftest.$ac_ext <<_ACEOF |
| 2473 | /* end confdefs.h. */ |
| 2474 | #ifdef __STDC__ |
| 2475 | # include <limits.h> |
| 2476 | #else |
| 2477 | # include <assert.h> |
| 2478 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2479 | Syntax error |
| 2480 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2481 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2483 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2484 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2485 | rm -f conftest.er1 |
| 2486 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2488 | (exit $ac_status); } >/dev/null; then |
| 2489 | if test -s conftest.err; then |
| 2490 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2491 | else |
| 2492 | ac_cpp_err= |
| 2493 | fi |
| 2494 | else |
| 2495 | ac_cpp_err=yes |
| 2496 | fi |
| 2497 | if test -z "$ac_cpp_err"; then |
| 2498 | : |
| 2499 | else |
| 2500 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2502 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2503 | # Broken: fails on valid input. |
| 2504 | continue |
| 2505 | fi |
| 2506 | rm -f conftest.err conftest.$ac_ext |
| 2507 | |
| 2508 | # OK, works on sane cases. Now check whether non-existent headers |
| 2509 | # can be detected and how. |
| 2510 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2511 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2512 | /* confdefs.h. */ |
| 2513 | _ACEOF |
| 2514 | cat confdefs.h >>conftest.$ac_ext |
| 2515 | cat >>conftest.$ac_ext <<_ACEOF |
| 2516 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2517 | #include <ac_nonexistent.h> |
| 2518 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2519 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2520 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2521 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2522 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2523 | rm -f conftest.er1 |
| 2524 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2526 | (exit $ac_status); } >/dev/null; then |
| 2527 | if test -s conftest.err; then |
| 2528 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2529 | else |
| 2530 | ac_cpp_err= |
| 2531 | fi |
| 2532 | else |
| 2533 | ac_cpp_err=yes |
| 2534 | fi |
| 2535 | if test -z "$ac_cpp_err"; then |
| 2536 | # Broken: success on invalid input. |
| 2537 | continue |
| 2538 | else |
| 2539 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2540 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2541 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2542 | # Passes both tests. |
| 2543 | ac_preproc_ok=: |
| 2544 | break |
| 2545 | fi |
| 2546 | rm -f conftest.err conftest.$ac_ext |
| 2547 | |
| 2548 | done |
| 2549 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2550 | rm -f conftest.err conftest.$ac_ext |
| 2551 | if $ac_preproc_ok; then |
| 2552 | : |
| 2553 | else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2554 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2555 | See \`config.log' for more details." >&5 |
| 2556 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2557 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2558 | { (exit 1); exit 1; }; } |
| 2559 | fi |
| 2560 | |
| 2561 | ac_ext=c |
| 2562 | ac_cpp='$CPP $CPPFLAGS' |
| 2563 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2564 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2565 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2566 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2567 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 2568 | echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
| 2569 | echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6 |
| 2570 | if test "${wine_cv_toolsdir+set}" = set; then |
| 2571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2572 | else |
| 2573 | if test -z "$with_wine_tools"; then |
| 2574 | if test "$cross_compiling" = "yes"; then |
| 2575 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 |
| 2576 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} |
| 2577 | { (exit 1); exit 1; }; } |
| 2578 | else |
| 2579 | wine_cv_toolsdir="\$(TOPOBJDIR)" |
| 2580 | fi |
| 2581 | elif test -d "$with_wine_tools/tools/winebuild"; then |
| 2582 | case $with_wine_tools in |
| 2583 | /*) wine_cv_toolsdir="$with_wine_tools" ;; |
| 2584 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; |
| 2585 | esac |
| 2586 | else |
| 2587 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 |
| 2588 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} |
| 2589 | { (exit 1); exit 1; }; } |
| 2590 | fi |
| 2591 | fi |
| 2592 | echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 |
| 2593 | echo "${ECHO_T}$wine_cv_toolsdir" >&6 |
| 2594 | TOOLSDIR=$wine_cv_toolsdir |
| 2595 | |
| 2596 | |
| 2597 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2598 | |
| 2599 | echo "$as_me:$LINENO: checking for X" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2600 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2601 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2602 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2603 | # Check whether --with-x or --without-x was given. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2604 | if test "${with_x+set}" = set; then |
| 2605 | withval="$with_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2606 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2607 | fi; |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2608 | # $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] | 2609 | if test "x$with_x" = xno; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2610 | # The user explicitly disabled X. |
| 2611 | have_x=disabled |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2612 | else |
| 2613 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2614 | # Both variables are already set. |
| 2615 | have_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2616 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2617 | if test "${ac_cv_have_x+set}" = set; then |
| 2618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2619 | else |
| 2620 | # 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] | 2621 | ac_x_includes=no ac_x_libraries=no |
| 2622 | rm -fr conftest.dir |
| 2623 | if mkdir conftest.dir; then |
| 2624 | cd conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2625 | # 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] | 2626 | cat >Imakefile <<'_ACEOF' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2627 | acfindx: |
| 2628 | @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] | 2629 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2630 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2631 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 2632 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2633 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 2634 | for ac_extension in a so sl; do |
| 2635 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2636 | test -f $ac_im_libdir/libX11.$ac_extension; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2637 | ac_im_usrlibdir=$ac_im_libdir; break |
| 2638 | fi |
| 2639 | done |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2640 | # Screen out bogus values from the imake configuration. They are |
| 2641 | # bogus both because they are the default anyway, and because |
| 2642 | # using them would break gcc on systems where it needs fixed includes. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2643 | case $ac_im_incroot in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2644 | /usr/include) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2645 | *) 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] | 2646 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2647 | case $ac_im_usrlibdir in |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2648 | /usr/lib | /lib) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2649 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2650 | esac |
| 2651 | fi |
| 2652 | cd .. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2653 | rm -fr conftest.dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2654 | fi |
| 2655 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2656 | # Standard set of common directories for X headers. |
| 2657 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 2658 | ac_x_header_dirs=' |
| 2659 | /usr/X11/include |
| 2660 | /usr/X11R6/include |
| 2661 | /usr/X11R5/include |
| 2662 | /usr/X11R4/include |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2663 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2664 | /usr/include/X11 |
| 2665 | /usr/include/X11R6 |
| 2666 | /usr/include/X11R5 |
| 2667 | /usr/include/X11R4 |
| 2668 | |
| 2669 | /usr/local/X11/include |
| 2670 | /usr/local/X11R6/include |
| 2671 | /usr/local/X11R5/include |
| 2672 | /usr/local/X11R4/include |
| 2673 | |
| 2674 | /usr/local/include/X11 |
| 2675 | /usr/local/include/X11R6 |
| 2676 | /usr/local/include/X11R5 |
| 2677 | /usr/local/include/X11R4 |
| 2678 | |
| 2679 | /usr/X386/include |
| 2680 | /usr/x386/include |
| 2681 | /usr/XFree86/include/X11 |
| 2682 | |
| 2683 | /usr/include |
| 2684 | /usr/local/include |
| 2685 | /usr/unsupported/include |
| 2686 | /usr/athena/include |
| 2687 | /usr/local/x11r5/include |
| 2688 | /usr/lpp/Xamples/include |
| 2689 | |
| 2690 | /usr/openwin/include |
| 2691 | /usr/openwin/share/include' |
| 2692 | |
| 2693 | if test "$ac_x_includes" = no; then |
| 2694 | # Guess where to find include files, by looking for Intrinsic.h. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2695 | # First, try using that file with no special directory specified. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2696 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2697 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2698 | /* confdefs.h. */ |
| 2699 | _ACEOF |
| 2700 | cat confdefs.h >>conftest.$ac_ext |
| 2701 | cat >>conftest.$ac_ext <<_ACEOF |
| 2702 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2703 | #include <X11/Intrinsic.h> |
| 2704 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2705 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2706 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2707 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 2708 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2709 | rm -f conftest.er1 |
| 2710 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2712 | (exit $ac_status); } >/dev/null; then |
| 2713 | if test -s conftest.err; then |
| 2714 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2715 | else |
| 2716 | ac_cpp_err= |
| 2717 | fi |
| 2718 | else |
| 2719 | ac_cpp_err=yes |
| 2720 | fi |
| 2721 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2722 | # We can compile using X headers with no special include directory. |
| 2723 | ac_x_includes= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2724 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2725 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2727 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2728 | for ac_dir in $ac_x_header_dirs; do |
| 2729 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 2730 | ac_x_includes=$ac_dir |
| 2731 | break |
| 2732 | fi |
| 2733 | done |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2734 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2735 | rm -f conftest.err conftest.$ac_ext |
| 2736 | fi # $ac_x_includes = no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2737 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2738 | if test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2739 | # Check for the libraries. |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2740 | # See if we find them without any special options. |
| 2741 | # Don't add to $LIBS permanently. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2742 | ac_save_LIBS=$LIBS |
| 2743 | LIBS="-lXt $LIBS" |
| 2744 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2745 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2746 | /* confdefs.h. */ |
| 2747 | _ACEOF |
| 2748 | cat confdefs.h >>conftest.$ac_ext |
| 2749 | cat >>conftest.$ac_ext <<_ACEOF |
| 2750 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2751 | #include <X11/Intrinsic.h> |
| 2752 | int |
| 2753 | main () |
| 2754 | { |
| 2755 | XtMalloc (0) |
| 2756 | ; |
| 2757 | return 0; |
| 2758 | } |
| 2759 | _ACEOF |
| 2760 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2762 | (eval $ac_link) 2>&5 |
| 2763 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2765 | (exit $ac_status); } && |
| 2766 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2768 | (eval $ac_try) 2>&5 |
| 2769 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2771 | (exit $ac_status); }; }; then |
| 2772 | LIBS=$ac_save_LIBS |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2773 | # We can link X programs with no special library path. |
| 2774 | ac_x_libraries= |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2775 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2776 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2777 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2778 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2779 | LIBS=$ac_save_LIBS |
| 2780 | 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] | 2781 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2782 | # 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] | 2783 | for ac_extension in a so sl; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2784 | if test -r $ac_dir/libXt.$ac_extension; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2785 | ac_x_libraries=$ac_dir |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2786 | break 2 |
| 2787 | fi |
| 2788 | done |
| 2789 | done |
| 2790 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2791 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 2792 | fi # $ac_x_libraries = no |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2793 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2794 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2795 | # Didn't find X anywhere. Cache the known absence of X. |
| 2796 | ac_cv_have_x="have_x=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2797 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2798 | # Record where we found X for the cache. |
| 2799 | ac_cv_have_x="have_x=yes \ |
| 2800 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2801 | fi |
| 2802 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2803 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2804 | fi |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2805 | eval "$ac_cv_have_x" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2806 | fi # $with_x != no |
| 2807 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2808 | if test "$have_x" != yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2809 | echo "$as_me:$LINENO: result: $have_x" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2810 | echo "${ECHO_T}$have_x" >&6 |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2811 | no_x=yes |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2812 | else |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2813 | # 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] | 2814 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 2815 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2816 | # Update the cache value to reflect the command line values. |
| 2817 | ac_cv_have_x="have_x=yes \ |
| 2818 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2819 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2820 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 2821 | fi |
| 2822 | |
Alexandre Julliard | b817f4f | 1996-03-14 18:08:34 +0000 | [diff] [blame] | 2823 | if test "$no_x" = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2824 | # 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] | 2825 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2826 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2827 | #define X_DISPLAY_MISSING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2828 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2829 | |
| 2830 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2831 | else |
| 2832 | if test -n "$x_includes"; then |
| 2833 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 2834 | fi |
| 2835 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2836 | # It would also be nice to do this for all -L options, not just this one. |
| 2837 | if test -n "$x_libraries"; then |
| 2838 | X_LIBS="$X_LIBS -L$x_libraries" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2839 | # For Solaris; some versions of Sun CC require a space after -R and |
| 2840 | # others require no space. Words are not sufficient . . . . |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2841 | case `(uname -sr) 2>/dev/null` in |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2842 | "SunOS 5"*) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2843 | 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] | 2844 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 2845 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 2846 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2847 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2848 | /* confdefs.h. */ |
| 2849 | _ACEOF |
| 2850 | cat confdefs.h >>conftest.$ac_ext |
| 2851 | cat >>conftest.$ac_ext <<_ACEOF |
| 2852 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2853 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2854 | int |
| 2855 | main () |
| 2856 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2857 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2858 | ; |
| 2859 | return 0; |
| 2860 | } |
| 2861 | _ACEOF |
| 2862 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2864 | (eval $ac_link) 2>&5 |
| 2865 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2867 | (exit $ac_status); } && |
| 2868 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2870 | (eval $ac_try) 2>&5 |
| 2871 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2873 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2874 | ac_R_nospace=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2875 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2876 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2878 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2879 | ac_R_nospace=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2880 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2881 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2882 | if test $ac_R_nospace = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2883 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2884 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2885 | X_LIBS="$X_LIBS -R$x_libraries" |
| 2886 | else |
| 2887 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2888 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2889 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2890 | /* confdefs.h. */ |
| 2891 | _ACEOF |
| 2892 | cat confdefs.h >>conftest.$ac_ext |
| 2893 | cat >>conftest.$ac_ext <<_ACEOF |
| 2894 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2895 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2896 | int |
| 2897 | main () |
| 2898 | { |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2899 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2900 | ; |
| 2901 | return 0; |
| 2902 | } |
| 2903 | _ACEOF |
| 2904 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2906 | (eval $ac_link) 2>&5 |
| 2907 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2909 | (exit $ac_status); } && |
| 2910 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2912 | (eval $ac_try) 2>&5 |
| 2913 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2915 | (exit $ac_status); }; }; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2916 | ac_R_space=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2917 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2918 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2920 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2921 | ac_R_space=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2922 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2923 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2924 | if test $ac_R_space = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2925 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2926 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2927 | X_LIBS="$X_LIBS -R $x_libraries" |
| 2928 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2929 | echo "$as_me:$LINENO: result: neither works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2930 | echo "${ECHO_T}neither works" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2931 | fi |
| 2932 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2933 | LIBS=$ac_xsave_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2934 | esac |
| 2935 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2936 | |
| 2937 | # Check for system-dependent libraries X programs must link with. |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 2938 | # Do this before checking for the system-independent R6 libraries |
| 2939 | # (-lICE), since we may need -lsocket or whatever for X linking. |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2940 | |
| 2941 | if test "$ISC" = yes; then |
| 2942 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 2943 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2944 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 2945 | # libraries were built with DECnet support. And Karl Berry says |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2946 | # the Alpha needs dnet_stub (dnet does not exist). |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2947 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 2948 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2949 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2950 | /* confdefs.h. */ |
| 2951 | _ACEOF |
| 2952 | cat confdefs.h >>conftest.$ac_ext |
| 2953 | cat >>conftest.$ac_ext <<_ACEOF |
| 2954 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2955 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 2956 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2957 | #ifdef __cplusplus |
| 2958 | extern "C" |
| 2959 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 2960 | /* 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] | 2961 | builtin and then its argument prototype would still apply. */ |
| 2962 | char XOpenDisplay (); |
| 2963 | int |
| 2964 | main () |
| 2965 | { |
| 2966 | XOpenDisplay (); |
| 2967 | ; |
| 2968 | return 0; |
| 2969 | } |
| 2970 | _ACEOF |
| 2971 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2973 | (eval $ac_link) 2>&5 |
| 2974 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2976 | (exit $ac_status); } && |
| 2977 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2979 | (eval $ac_try) 2>&5 |
| 2980 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2982 | (exit $ac_status); }; }; then |
| 2983 | : |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 2984 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2985 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2987 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2988 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 2989 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 2990 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 2991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2992 | else |
| 2993 | ac_check_lib_save_LIBS=$LIBS |
| 2994 | LIBS="-ldnet $LIBS" |
| 2995 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 2996 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 2997 | /* confdefs.h. */ |
| 2998 | _ACEOF |
| 2999 | cat confdefs.h >>conftest.$ac_ext |
| 3000 | cat >>conftest.$ac_ext <<_ACEOF |
| 3001 | /* end confdefs.h. */ |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3002 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3003 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3004 | #ifdef __cplusplus |
| 3005 | extern "C" |
| 3006 | #endif |
| 3007 | /* We use char because int might match the return type of a gcc2 |
| 3008 | builtin and then its argument prototype would still apply. */ |
| 3009 | char dnet_ntoa (); |
| 3010 | int |
| 3011 | main () |
| 3012 | { |
| 3013 | dnet_ntoa (); |
| 3014 | ; |
| 3015 | return 0; |
| 3016 | } |
| 3017 | _ACEOF |
| 3018 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3020 | (eval $ac_link) 2>&5 |
| 3021 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3023 | (exit $ac_status); } && |
| 3024 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3026 | (eval $ac_try) 2>&5 |
| 3027 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3029 | (exit $ac_status); }; }; then |
| 3030 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 3031 | else |
| 3032 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3034 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3035 | ac_cv_lib_dnet_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3036 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3037 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3038 | LIBS=$ac_check_lib_save_LIBS |
| 3039 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3040 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3041 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 3042 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3043 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3044 | fi |
| 3045 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3046 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3047 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3048 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 3049 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 3050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3051 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3052 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3053 | LIBS="-ldnet_stub $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3054 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3055 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3056 | /* confdefs.h. */ |
| 3057 | _ACEOF |
| 3058 | cat confdefs.h >>conftest.$ac_ext |
| 3059 | cat >>conftest.$ac_ext <<_ACEOF |
| 3060 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3061 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3062 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3063 | #ifdef __cplusplus |
| 3064 | extern "C" |
| 3065 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3066 | /* 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] | 3067 | builtin and then its argument prototype would still apply. */ |
| 3068 | char dnet_ntoa (); |
| 3069 | int |
| 3070 | main () |
| 3071 | { |
| 3072 | dnet_ntoa (); |
| 3073 | ; |
| 3074 | return 0; |
| 3075 | } |
| 3076 | _ACEOF |
| 3077 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3079 | (eval $ac_link) 2>&5 |
| 3080 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3082 | (exit $ac_status); } && |
| 3083 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3085 | (eval $ac_try) 2>&5 |
| 3086 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3088 | (exit $ac_status); }; }; then |
| 3089 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3090 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3091 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3093 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3094 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3095 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3096 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3097 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3098 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3099 | 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] | 3100 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 3101 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3102 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3103 | fi |
| 3104 | |
| 3105 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3106 | fi |
| 3107 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3108 | LIBS="$ac_xsave_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3109 | |
| 3110 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 3111 | # to get the SysV transport functions. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3112 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3113 | # needs -lnsl. |
| 3114 | # The nsl library prevents programs from opening the X display |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3115 | # on Irix 5.2, according to T.E. Dickey. |
| 3116 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 3117 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3118 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3119 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 3120 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 3121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3122 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3123 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3124 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3125 | /* confdefs.h. */ |
| 3126 | _ACEOF |
| 3127 | cat confdefs.h >>conftest.$ac_ext |
| 3128 | cat >>conftest.$ac_ext <<_ACEOF |
| 3129 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3130 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3131 | which can conflict with char gethostbyname (); below. |
| 3132 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3133 | <limits.h> exists even on freestanding compilers. */ |
| 3134 | #ifdef __STDC__ |
| 3135 | # include <limits.h> |
| 3136 | #else |
| 3137 | # include <assert.h> |
| 3138 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3139 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3140 | #ifdef __cplusplus |
| 3141 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3142 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3143 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3144 | /* 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] | 3145 | builtin and then its argument prototype would still apply. */ |
| 3146 | char gethostbyname (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3147 | /* The GNU C library defines this for functions which it implements |
| 3148 | to always fail with ENOSYS. Some functions are actually named |
| 3149 | something starting with __ and the normal name is an alias. */ |
| 3150 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 3151 | choke me |
| 3152 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3153 | char (*f) () = gethostbyname; |
| 3154 | #endif |
| 3155 | #ifdef __cplusplus |
| 3156 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3157 | #endif |
| 3158 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3159 | int |
| 3160 | main () |
| 3161 | { |
| 3162 | return f != gethostbyname; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3163 | ; |
| 3164 | return 0; |
| 3165 | } |
| 3166 | _ACEOF |
| 3167 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3169 | (eval $ac_link) 2>&5 |
| 3170 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3172 | (exit $ac_status); } && |
| 3173 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3175 | (eval $ac_try) 2>&5 |
| 3176 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3178 | (exit $ac_status); }; }; then |
| 3179 | ac_cv_func_gethostbyname=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3180 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3181 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3183 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3184 | ac_cv_func_gethostbyname=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3185 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3186 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3187 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3188 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3189 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3190 | |
| 3191 | if test $ac_cv_func_gethostbyname = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3192 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3193 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 3194 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 3195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3196 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3197 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3198 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3199 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3200 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3201 | /* confdefs.h. */ |
| 3202 | _ACEOF |
| 3203 | cat confdefs.h >>conftest.$ac_ext |
| 3204 | cat >>conftest.$ac_ext <<_ACEOF |
| 3205 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3206 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3207 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3208 | #ifdef __cplusplus |
| 3209 | extern "C" |
| 3210 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3211 | /* 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] | 3212 | builtin and then its argument prototype would still apply. */ |
| 3213 | char gethostbyname (); |
| 3214 | int |
| 3215 | main () |
| 3216 | { |
| 3217 | gethostbyname (); |
| 3218 | ; |
| 3219 | return 0; |
| 3220 | } |
| 3221 | _ACEOF |
| 3222 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3224 | (eval $ac_link) 2>&5 |
| 3225 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3227 | (exit $ac_status); } && |
| 3228 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3230 | (eval $ac_try) 2>&5 |
| 3231 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3233 | (exit $ac_status); }; }; then |
| 3234 | ac_cv_lib_nsl_gethostbyname=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3235 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3236 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3238 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3239 | ac_cv_lib_nsl_gethostbyname=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3240 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3241 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3242 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3243 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3244 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3245 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 3246 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3247 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3248 | fi |
| 3249 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3250 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3251 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3252 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 3253 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 3254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3255 | else |
| 3256 | ac_check_lib_save_LIBS=$LIBS |
| 3257 | LIBS="-lbsd $LIBS" |
| 3258 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3259 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3260 | /* confdefs.h. */ |
| 3261 | _ACEOF |
| 3262 | cat confdefs.h >>conftest.$ac_ext |
| 3263 | cat >>conftest.$ac_ext <<_ACEOF |
| 3264 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3265 | |
| 3266 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3267 | #ifdef __cplusplus |
| 3268 | extern "C" |
| 3269 | #endif |
| 3270 | /* We use char because int might match the return type of a gcc2 |
| 3271 | builtin and then its argument prototype would still apply. */ |
| 3272 | char gethostbyname (); |
| 3273 | int |
| 3274 | main () |
| 3275 | { |
| 3276 | gethostbyname (); |
| 3277 | ; |
| 3278 | return 0; |
| 3279 | } |
| 3280 | _ACEOF |
| 3281 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3283 | (eval $ac_link) 2>&5 |
| 3284 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3286 | (exit $ac_status); } && |
| 3287 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3289 | (eval $ac_try) 2>&5 |
| 3290 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3292 | (exit $ac_status); }; }; then |
| 3293 | ac_cv_lib_bsd_gethostbyname=yes |
| 3294 | else |
| 3295 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3297 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3298 | ac_cv_lib_bsd_gethostbyname=no |
| 3299 | fi |
| 3300 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3301 | LIBS=$ac_check_lib_save_LIBS |
| 3302 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3303 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3304 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 3305 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 3306 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 3307 | fi |
| 3308 | |
| 3309 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3310 | fi |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3311 | |
| 3312 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3313 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 3314 | # 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] | 3315 | # on later versions), says Simon Leinen: it contains gethostby* |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 3316 | # variants that don't use the name server (or something). -lsocket |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3317 | # must be given before -lnsl if both are needed. We assume that |
| 3318 | # if connect needs -lnsl, so does gethostbyname. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3319 | echo "$as_me:$LINENO: checking for connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3320 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 3321 | if test "${ac_cv_func_connect+set}" = set; then |
| 3322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3323 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3324 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3325 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3326 | /* confdefs.h. */ |
| 3327 | _ACEOF |
| 3328 | cat confdefs.h >>conftest.$ac_ext |
| 3329 | cat >>conftest.$ac_ext <<_ACEOF |
| 3330 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3331 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3332 | which can conflict with char connect (); below. |
| 3333 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3334 | <limits.h> exists even on freestanding compilers. */ |
| 3335 | #ifdef __STDC__ |
| 3336 | # include <limits.h> |
| 3337 | #else |
| 3338 | # include <assert.h> |
| 3339 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3340 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3341 | #ifdef __cplusplus |
| 3342 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3343 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3344 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3345 | /* 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] | 3346 | builtin and then its argument prototype would still apply. */ |
| 3347 | char connect (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3348 | /* The GNU C library defines this for functions which it implements |
| 3349 | to always fail with ENOSYS. Some functions are actually named |
| 3350 | something starting with __ and the normal name is an alias. */ |
| 3351 | #if defined (__stub_connect) || defined (__stub___connect) |
| 3352 | choke me |
| 3353 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3354 | char (*f) () = connect; |
| 3355 | #endif |
| 3356 | #ifdef __cplusplus |
| 3357 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3358 | #endif |
| 3359 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3360 | int |
| 3361 | main () |
| 3362 | { |
| 3363 | return f != connect; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3364 | ; |
| 3365 | return 0; |
| 3366 | } |
| 3367 | _ACEOF |
| 3368 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3370 | (eval $ac_link) 2>&5 |
| 3371 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3373 | (exit $ac_status); } && |
| 3374 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3376 | (eval $ac_try) 2>&5 |
| 3377 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3379 | (exit $ac_status); }; }; then |
| 3380 | ac_cv_func_connect=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3381 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3382 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3384 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3385 | ac_cv_func_connect=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3386 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3387 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3388 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3389 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3390 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3391 | |
| 3392 | if test $ac_cv_func_connect = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3393 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3394 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 3395 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 3396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3397 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3398 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3399 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3400 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3401 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3402 | /* confdefs.h. */ |
| 3403 | _ACEOF |
| 3404 | cat confdefs.h >>conftest.$ac_ext |
| 3405 | cat >>conftest.$ac_ext <<_ACEOF |
| 3406 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3407 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3408 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3409 | #ifdef __cplusplus |
| 3410 | extern "C" |
| 3411 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3412 | /* 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] | 3413 | builtin and then its argument prototype would still apply. */ |
| 3414 | char connect (); |
| 3415 | int |
| 3416 | main () |
| 3417 | { |
| 3418 | connect (); |
| 3419 | ; |
| 3420 | return 0; |
| 3421 | } |
| 3422 | _ACEOF |
| 3423 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3425 | (eval $ac_link) 2>&5 |
| 3426 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3428 | (exit $ac_status); } && |
| 3429 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3431 | (eval $ac_try) 2>&5 |
| 3432 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3434 | (exit $ac_status); }; }; then |
| 3435 | ac_cv_lib_socket_connect=yes |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3436 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3437 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3439 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3440 | ac_cv_lib_socket_connect=no |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3441 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3442 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3443 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3444 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3445 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3446 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 3447 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3448 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3449 | fi |
| 3450 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3451 | fi |
| 3452 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3453 | # Guillermo Gomez says -lposix is necessary on A/UX. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3454 | echo "$as_me:$LINENO: checking for remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3455 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 3456 | if test "${ac_cv_func_remove+set}" = set; then |
| 3457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3458 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3459 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3460 | #line $LINENO "configure" |
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 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3467 | which can conflict with char remove (); below. |
| 3468 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3469 | <limits.h> exists even on freestanding compilers. */ |
| 3470 | #ifdef __STDC__ |
| 3471 | # include <limits.h> |
| 3472 | #else |
| 3473 | # include <assert.h> |
| 3474 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3475 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3476 | #ifdef __cplusplus |
| 3477 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3478 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3479 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3480 | /* 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] | 3481 | builtin and then its argument prototype would still apply. */ |
| 3482 | char remove (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3483 | /* The GNU C library defines this for functions which it implements |
| 3484 | to always fail with ENOSYS. Some functions are actually named |
| 3485 | something starting with __ and the normal name is an alias. */ |
| 3486 | #if defined (__stub_remove) || defined (__stub___remove) |
| 3487 | choke me |
| 3488 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3489 | char (*f) () = remove; |
| 3490 | #endif |
| 3491 | #ifdef __cplusplus |
| 3492 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3493 | #endif |
| 3494 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3495 | int |
| 3496 | main () |
| 3497 | { |
| 3498 | return f != remove; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3499 | ; |
| 3500 | return 0; |
| 3501 | } |
| 3502 | _ACEOF |
| 3503 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3505 | (eval $ac_link) 2>&5 |
| 3506 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3508 | (exit $ac_status); } && |
| 3509 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3511 | (eval $ac_try) 2>&5 |
| 3512 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3514 | (exit $ac_status); }; }; then |
| 3515 | ac_cv_func_remove=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3516 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3517 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3519 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3520 | ac_cv_func_remove=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3521 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3522 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3523 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3524 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3525 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3526 | |
| 3527 | if test $ac_cv_func_remove = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3528 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3529 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 3530 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 3531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3532 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3533 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3534 | LIBS="-lposix $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3535 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3536 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3537 | /* confdefs.h. */ |
| 3538 | _ACEOF |
| 3539 | cat confdefs.h >>conftest.$ac_ext |
| 3540 | cat >>conftest.$ac_ext <<_ACEOF |
| 3541 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3542 | |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3543 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3544 | #ifdef __cplusplus |
| 3545 | extern "C" |
| 3546 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3547 | /* 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] | 3548 | builtin and then its argument prototype would still apply. */ |
| 3549 | char remove (); |
| 3550 | int |
| 3551 | main () |
| 3552 | { |
| 3553 | remove (); |
| 3554 | ; |
| 3555 | return 0; |
| 3556 | } |
| 3557 | _ACEOF |
| 3558 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3560 | (eval $ac_link) 2>&5 |
| 3561 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3563 | (exit $ac_status); } && |
| 3564 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3566 | (eval $ac_try) 2>&5 |
| 3567 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3569 | (exit $ac_status); }; }; then |
| 3570 | ac_cv_lib_posix_remove=yes |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3571 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3572 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3574 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3575 | ac_cv_lib_posix_remove=no |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3576 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3577 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3578 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3579 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3580 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3581 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 3582 | if test $ac_cv_lib_posix_remove = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3583 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3584 | fi |
| 3585 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3586 | fi |
| 3587 | |
| 3588 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3589 | echo "$as_me:$LINENO: checking for shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3590 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 3591 | if test "${ac_cv_func_shmat+set}" = set; then |
| 3592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3593 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3594 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3595 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3596 | /* confdefs.h. */ |
| 3597 | _ACEOF |
| 3598 | cat confdefs.h >>conftest.$ac_ext |
| 3599 | cat >>conftest.$ac_ext <<_ACEOF |
| 3600 | /* end confdefs.h. */ |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3601 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3602 | which can conflict with char shmat (); below. |
| 3603 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3604 | <limits.h> exists even on freestanding compilers. */ |
| 3605 | #ifdef __STDC__ |
| 3606 | # include <limits.h> |
| 3607 | #else |
| 3608 | # include <assert.h> |
| 3609 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3610 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3611 | #ifdef __cplusplus |
| 3612 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3613 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3614 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3615 | /* 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] | 3616 | builtin and then its argument prototype would still apply. */ |
| 3617 | char shmat (); |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3618 | /* The GNU C library defines this for functions which it implements |
| 3619 | to always fail with ENOSYS. Some functions are actually named |
| 3620 | something starting with __ and the normal name is an alias. */ |
| 3621 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 3622 | choke me |
| 3623 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3624 | char (*f) () = shmat; |
| 3625 | #endif |
| 3626 | #ifdef __cplusplus |
| 3627 | } |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3628 | #endif |
| 3629 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3630 | int |
| 3631 | main () |
| 3632 | { |
| 3633 | return f != shmat; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3634 | ; |
| 3635 | return 0; |
| 3636 | } |
| 3637 | _ACEOF |
| 3638 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3640 | (eval $ac_link) 2>&5 |
| 3641 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3643 | (exit $ac_status); } && |
| 3644 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3646 | (eval $ac_try) 2>&5 |
| 3647 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3649 | (exit $ac_status); }; }; then |
| 3650 | ac_cv_func_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3651 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3652 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3654 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3655 | ac_cv_func_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3656 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3657 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3658 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3659 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3660 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3661 | |
| 3662 | if test $ac_cv_func_shmat = no; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3663 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3664 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 3665 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 3666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3667 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3668 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3669 | LIBS="-lipc $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3670 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3671 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3672 | /* confdefs.h. */ |
| 3673 | _ACEOF |
| 3674 | cat confdefs.h >>conftest.$ac_ext |
| 3675 | cat >>conftest.$ac_ext <<_ACEOF |
| 3676 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3677 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3678 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3679 | #ifdef __cplusplus |
| 3680 | extern "C" |
| 3681 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3682 | /* 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] | 3683 | builtin and then its argument prototype would still apply. */ |
| 3684 | char shmat (); |
| 3685 | int |
| 3686 | main () |
| 3687 | { |
| 3688 | shmat (); |
| 3689 | ; |
| 3690 | return 0; |
| 3691 | } |
| 3692 | _ACEOF |
| 3693 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3695 | (eval $ac_link) 2>&5 |
| 3696 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3698 | (exit $ac_status); } && |
| 3699 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3701 | (eval $ac_try) 2>&5 |
| 3702 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3704 | (exit $ac_status); }; }; then |
| 3705 | ac_cv_lib_ipc_shmat=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3706 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3707 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3709 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3710 | ac_cv_lib_ipc_shmat=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3711 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3712 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3713 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3714 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3715 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3716 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 3717 | if test $ac_cv_lib_ipc_shmat = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3718 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3719 | fi |
| 3720 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3721 | fi |
| 3722 | fi |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3723 | |
| 3724 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3725 | ac_save_LDFLAGS=$LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3726 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 3727 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 3728 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 3729 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 3730 | # These have to be linked with before -lX11, unlike the other |
| 3731 | # libraries we check for below, so use a different variable. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3732 | # John Interrante, Karl Berry |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3733 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3734 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 3735 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 3736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3737 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3738 | ac_check_lib_save_LIBS=$LIBS |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 3739 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3740 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3741 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3742 | /* confdefs.h. */ |
| 3743 | _ACEOF |
| 3744 | cat confdefs.h >>conftest.$ac_ext |
| 3745 | cat >>conftest.$ac_ext <<_ACEOF |
| 3746 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3747 | |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3748 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3749 | #ifdef __cplusplus |
| 3750 | extern "C" |
| 3751 | #endif |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3752 | /* 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] | 3753 | builtin and then its argument prototype would still apply. */ |
| 3754 | char IceConnectionNumber (); |
| 3755 | int |
| 3756 | main () |
| 3757 | { |
| 3758 | IceConnectionNumber (); |
| 3759 | ; |
| 3760 | return 0; |
| 3761 | } |
| 3762 | _ACEOF |
| 3763 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3765 | (eval $ac_link) 2>&5 |
| 3766 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3768 | (exit $ac_status); } && |
| 3769 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3771 | (eval $ac_try) 2>&5 |
| 3772 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3774 | (exit $ac_status); }; }; then |
| 3775 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3776 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3777 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3779 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3780 | ac_cv_lib_ICE_IceConnectionNumber=no |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3781 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3782 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3783 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3784 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3785 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3786 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 3787 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3788 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3789 | fi |
| 3790 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3791 | LDFLAGS=$ac_save_LDFLAGS |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 3792 | |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 3793 | fi |
| 3794 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3795 | for ac_prog in 'bison -y' byacc |
| 3796 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3797 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3798 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3801 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 3802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3803 | else |
| 3804 | if test -n "$YACC"; then |
| 3805 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 3806 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3808 | for as_dir in $PATH |
| 3809 | do |
| 3810 | IFS=$as_save_IFS |
| 3811 | test -z "$as_dir" && as_dir=. |
| 3812 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3814 | ac_cv_prog_YACC="$ac_prog" |
| 3815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3816 | break 2 |
| 3817 | fi |
| 3818 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3819 | done |
| 3820 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3821 | fi |
| 3822 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3823 | YACC=$ac_cv_prog_YACC |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3824 | if test -n "$YACC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3825 | echo "$as_me:$LINENO: result: $YACC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3826 | echo "${ECHO_T}$YACC" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3827 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3828 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3829 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3830 | fi |
| 3831 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3832 | test -n "$YACC" && break |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3833 | done |
| 3834 | test -n "$YACC" || YACC="yacc" |
| 3835 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3836 | for ac_prog in flex lex |
| 3837 | do |
| 3838 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3839 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3840 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3842 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 3843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3844 | else |
| 3845 | if test -n "$LEX"; then |
| 3846 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 3847 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3849 | for as_dir in $PATH |
| 3850 | do |
| 3851 | IFS=$as_save_IFS |
| 3852 | test -z "$as_dir" && as_dir=. |
| 3853 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3855 | ac_cv_prog_LEX="$ac_prog" |
| 3856 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3857 | break 2 |
| 3858 | fi |
| 3859 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3860 | done |
| 3861 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3862 | fi |
| 3863 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3864 | LEX=$ac_cv_prog_LEX |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3865 | if test -n "$LEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3866 | echo "$as_me:$LINENO: result: $LEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3867 | echo "${ECHO_T}$LEX" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3868 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3869 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3870 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3871 | fi |
| 3872 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3873 | test -n "$LEX" && break |
| 3874 | done |
| 3875 | test -n "$LEX" || LEX=":" |
| 3876 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3877 | if test -z "$LEXLIB" |
| 3878 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3879 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3880 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 3881 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 3882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3883 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3884 | ac_check_lib_save_LIBS=$LIBS |
| 3885 | LIBS="-lfl $LIBS" |
| 3886 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3887 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3888 | /* confdefs.h. */ |
| 3889 | _ACEOF |
| 3890 | cat confdefs.h >>conftest.$ac_ext |
| 3891 | cat >>conftest.$ac_ext <<_ACEOF |
| 3892 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3893 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 3894 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3895 | #ifdef __cplusplus |
| 3896 | extern "C" |
| 3897 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 3898 | /* 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] | 3899 | builtin and then its argument prototype would still apply. */ |
| 3900 | char yywrap (); |
| 3901 | int |
| 3902 | main () |
| 3903 | { |
| 3904 | yywrap (); |
| 3905 | ; |
| 3906 | return 0; |
| 3907 | } |
| 3908 | _ACEOF |
| 3909 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3911 | (eval $ac_link) 2>&5 |
| 3912 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3914 | (exit $ac_status); } && |
| 3915 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3917 | (eval $ac_try) 2>&5 |
| 3918 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3920 | (exit $ac_status); }; }; then |
| 3921 | ac_cv_lib_fl_yywrap=yes |
| 3922 | else |
| 3923 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3925 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3926 | ac_cv_lib_fl_yywrap=no |
| 3927 | fi |
| 3928 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3929 | LIBS=$ac_check_lib_save_LIBS |
| 3930 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3931 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3932 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 3933 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 3934 | LEXLIB="-lfl" |
| 3935 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3936 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3937 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 3938 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 3939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3940 | else |
| 3941 | ac_check_lib_save_LIBS=$LIBS |
| 3942 | LIBS="-ll $LIBS" |
| 3943 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3944 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3945 | /* confdefs.h. */ |
| 3946 | _ACEOF |
| 3947 | cat confdefs.h >>conftest.$ac_ext |
| 3948 | cat >>conftest.$ac_ext <<_ACEOF |
| 3949 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 3950 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3951 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3952 | #ifdef __cplusplus |
| 3953 | extern "C" |
| 3954 | #endif |
| 3955 | /* We use char because int might match the return type of a gcc2 |
| 3956 | builtin and then its argument prototype would still apply. */ |
| 3957 | char yywrap (); |
| 3958 | int |
| 3959 | main () |
| 3960 | { |
| 3961 | yywrap (); |
| 3962 | ; |
| 3963 | return 0; |
| 3964 | } |
| 3965 | _ACEOF |
| 3966 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3968 | (eval $ac_link) 2>&5 |
| 3969 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3971 | (exit $ac_status); } && |
| 3972 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3974 | (eval $ac_try) 2>&5 |
| 3975 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3977 | (exit $ac_status); }; }; then |
| 3978 | ac_cv_lib_l_yywrap=yes |
| 3979 | else |
| 3980 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 3981 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3982 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3983 | ac_cv_lib_l_yywrap=no |
| 3984 | fi |
| 3985 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3986 | LIBS=$ac_check_lib_save_LIBS |
| 3987 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3988 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 3989 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 3990 | if test $ac_cv_lib_l_yywrap = yes; then |
| 3991 | LEXLIB="-ll" |
| 3992 | fi |
| 3993 | |
| 3994 | fi |
| 3995 | |
| 3996 | fi |
| 3997 | |
| 3998 | if test "x$LEX" != "x:"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 3999 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4000 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 4001 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 4002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4003 | else |
| 4004 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 4005 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4006 | cat >conftest.l <<_ACEOF |
| 4007 | %% |
| 4008 | %% |
| 4009 | _ACEOF |
| 4010 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 4011 | (eval $LEX conftest.l) 2>&5 |
| 4012 | ac_status=$? |
| 4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4014 | (exit $ac_status); } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4015 | if test -f lex.yy.c; then |
| 4016 | ac_cv_prog_lex_root=lex.yy |
| 4017 | elif test -f lexyy.c; then |
| 4018 | ac_cv_prog_lex_root=lexyy |
| 4019 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4020 | { { 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] | 4021 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 4022 | { (exit 1); exit 1; }; } |
| 4023 | fi |
| 4024 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4025 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4026 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4027 | rm -f conftest.l |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4028 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 4029 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4030 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4031 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 4032 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 4033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4034 | else |
| 4035 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 4036 | # default is implementation-dependent. Figure out which it is, since |
| 4037 | # not all implementations provide the %pointer and %array declarations. |
| 4038 | ac_cv_prog_lex_yytext_pointer=no |
| 4039 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 4040 | ac_save_LIBS=$LIBS |
| 4041 | LIBS="$LIBS $LEXLIB" |
| 4042 | cat >conftest.$ac_ext <<_ACEOF |
| 4043 | `cat $LEX_OUTPUT_ROOT.c` |
| 4044 | _ACEOF |
| 4045 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4047 | (eval $ac_link) 2>&5 |
| 4048 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4050 | (exit $ac_status); } && |
| 4051 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4053 | (eval $ac_try) 2>&5 |
| 4054 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4056 | (exit $ac_status); }; }; then |
| 4057 | ac_cv_prog_lex_yytext_pointer=yes |
| 4058 | else |
| 4059 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4061 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4062 | fi |
| 4063 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4064 | LIBS=$ac_save_LIBS |
| 4065 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 4066 | |
| 4067 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4068 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4069 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 4070 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 4071 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4072 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4073 | #define YYTEXT_POINTER 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4074 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4075 | |
| 4076 | fi |
| 4077 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4078 | fi |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4079 | |
| 4080 | for ac_prog in $YACC bison yacc |
| 4081 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4082 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4083 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4084 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4085 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4086 | if test "${ac_cv_prog_XYACC+set}" = set; then |
| 4087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4088 | else |
| 4089 | if test -n "$XYACC"; then |
| 4090 | ac_cv_prog_XYACC="$XYACC" # Let the user override the test. |
| 4091 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4092 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4093 | for as_dir in $PATH |
| 4094 | do |
| 4095 | IFS=$as_save_IFS |
| 4096 | test -z "$as_dir" && as_dir=. |
| 4097 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4098 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4099 | ac_cv_prog_XYACC="$ac_prog" |
| 4100 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4101 | break 2 |
| 4102 | fi |
| 4103 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4104 | done |
| 4105 | |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4106 | fi |
| 4107 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4108 | XYACC=$ac_cv_prog_XYACC |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4109 | if test -n "$XYACC"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4110 | echo "$as_me:$LINENO: result: $XYACC" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4111 | echo "${ECHO_T}$XYACC" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4112 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4113 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4114 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4115 | fi |
| 4116 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4117 | test -n "$XYACC" && break |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4118 | done |
| 4119 | test -n "$XYACC" || XYACC="none" |
| 4120 | |
| 4121 | if test "$XYACC" = "none" |
| 4122 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4123 | { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4124 | echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;} |
| 4125 | { (exit 1); exit 1; }; } |
Marcus Meissner | 5c5a621 | 2002-01-22 18:28:25 +0000 | [diff] [blame] | 4126 | fi |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4127 | for ac_prog in $LEX flex lex |
| 4128 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4129 | # 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] | 4130 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4131 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4132 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4133 | if test "${ac_cv_prog_XLEX+set}" = set; then |
| 4134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4135 | else |
| 4136 | if test -n "$XLEX"; then |
| 4137 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. |
| 4138 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4139 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4140 | for as_dir in $PATH |
| 4141 | do |
| 4142 | IFS=$as_save_IFS |
| 4143 | test -z "$as_dir" && as_dir=. |
| 4144 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4145 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4146 | ac_cv_prog_XLEX="$ac_prog" |
| 4147 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4148 | break 2 |
| 4149 | fi |
| 4150 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4151 | done |
| 4152 | |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4153 | fi |
| 4154 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4155 | XLEX=$ac_cv_prog_XLEX |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4156 | if test -n "$XLEX"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4157 | echo "$as_me:$LINENO: result: $XLEX" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4158 | echo "${ECHO_T}$XLEX" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4159 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4160 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4161 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4162 | fi |
| 4163 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4164 | test -n "$XLEX" && break |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4165 | done |
| 4166 | test -n "$XLEX" || XLEX="none" |
| 4167 | |
| 4168 | if test "$XLEX" = "none" |
| 4169 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4170 | { { 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] | 4171 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
| 4172 | { (exit 1); exit 1; }; } |
Marcus Meissner | b53bb41 | 2000-07-23 13:41:51 +0000 | [diff] [blame] | 4173 | fi |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4174 | |
| 4175 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 4176 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. |
| 4177 | set dummy ${ac_tool_prefix}ld; ac_word=$2 |
| 4178 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4179 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4180 | if test "${ac_cv_prog_LD+set}" = set; then |
| 4181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4182 | else |
| 4183 | if test -n "$LD"; then |
| 4184 | ac_cv_prog_LD="$LD" # Let the user override the test. |
| 4185 | else |
| 4186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4187 | for as_dir in $PATH |
| 4188 | do |
| 4189 | IFS=$as_save_IFS |
| 4190 | test -z "$as_dir" && as_dir=. |
| 4191 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4192 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4193 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
| 4194 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4195 | break 2 |
| 4196 | fi |
| 4197 | done |
| 4198 | done |
| 4199 | |
| 4200 | fi |
| 4201 | fi |
| 4202 | LD=$ac_cv_prog_LD |
| 4203 | if test -n "$LD"; then |
| 4204 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 4205 | echo "${ECHO_T}$LD" >&6 |
| 4206 | else |
| 4207 | echo "$as_me:$LINENO: result: no" >&5 |
| 4208 | echo "${ECHO_T}no" >&6 |
| 4209 | fi |
| 4210 | |
| 4211 | fi |
| 4212 | if test -z "$ac_cv_prog_LD"; then |
| 4213 | ac_ct_LD=$LD |
| 4214 | # Extract the first word of "ld", so it can be a program name with args. |
| 4215 | set dummy ld; ac_word=$2 |
| 4216 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4217 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4218 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
| 4219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4220 | else |
| 4221 | if test -n "$ac_ct_LD"; then |
| 4222 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. |
| 4223 | else |
| 4224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4225 | for as_dir in $PATH |
| 4226 | do |
| 4227 | IFS=$as_save_IFS |
| 4228 | test -z "$as_dir" && as_dir=. |
| 4229 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4230 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4231 | ac_cv_prog_ac_ct_LD="ld" |
| 4232 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4233 | break 2 |
| 4234 | fi |
| 4235 | done |
| 4236 | done |
| 4237 | |
| 4238 | test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld" |
| 4239 | fi |
| 4240 | fi |
| 4241 | ac_ct_LD=$ac_cv_prog_ac_ct_LD |
| 4242 | if test -n "$ac_ct_LD"; then |
| 4243 | echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
| 4244 | echo "${ECHO_T}$ac_ct_LD" >&6 |
| 4245 | else |
| 4246 | echo "$as_me:$LINENO: result: no" >&5 |
| 4247 | echo "${ECHO_T}no" >&6 |
| 4248 | fi |
| 4249 | |
| 4250 | LD=$ac_ct_LD |
| 4251 | else |
| 4252 | LD="$ac_cv_prog_LD" |
| 4253 | fi |
| 4254 | |
| 4255 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4256 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 4257 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 4258 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4259 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4260 | if test "${ac_cv_prog_AR+set}" = set; then |
| 4261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4262 | else |
| 4263 | if test -n "$AR"; then |
| 4264 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4265 | else |
| 4266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4267 | for as_dir in $PATH |
| 4268 | do |
| 4269 | IFS=$as_save_IFS |
| 4270 | test -z "$as_dir" && as_dir=. |
| 4271 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4272 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4273 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 4274 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4275 | break 2 |
| 4276 | fi |
| 4277 | done |
| 4278 | done |
| 4279 | |
| 4280 | fi |
| 4281 | fi |
| 4282 | AR=$ac_cv_prog_AR |
| 4283 | if test -n "$AR"; then |
| 4284 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 4285 | echo "${ECHO_T}$AR" >&6 |
| 4286 | else |
| 4287 | echo "$as_me:$LINENO: result: no" >&5 |
| 4288 | echo "${ECHO_T}no" >&6 |
| 4289 | fi |
| 4290 | |
| 4291 | fi |
| 4292 | if test -z "$ac_cv_prog_AR"; then |
| 4293 | ac_ct_AR=$AR |
| 4294 | # Extract the first word of "ar", so it can be a program name with args. |
| 4295 | set dummy ar; ac_word=$2 |
| 4296 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4298 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 4299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4300 | else |
| 4301 | if test -n "$ac_ct_AR"; then |
| 4302 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4303 | else |
| 4304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4305 | for as_dir in $PATH |
| 4306 | do |
| 4307 | IFS=$as_save_IFS |
| 4308 | test -z "$as_dir" && as_dir=. |
| 4309 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4310 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4311 | ac_cv_prog_ac_ct_AR="ar" |
| 4312 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4313 | break 2 |
| 4314 | fi |
| 4315 | done |
| 4316 | done |
| 4317 | |
| 4318 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" |
| 4319 | fi |
| 4320 | fi |
| 4321 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4322 | if test -n "$ac_ct_AR"; then |
| 4323 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 4324 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 4325 | else |
| 4326 | echo "$as_me:$LINENO: result: no" >&5 |
| 4327 | echo "${ECHO_T}no" >&6 |
| 4328 | fi |
| 4329 | |
| 4330 | AR=$ac_ct_AR |
| 4331 | else |
| 4332 | AR="$ac_cv_prog_AR" |
| 4333 | fi |
| 4334 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4335 | if test -n "$ac_tool_prefix"; then |
| 4336 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4337 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4338 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4340 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4342 | else |
| 4343 | if test -n "$RANLIB"; then |
| 4344 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4345 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4347 | for as_dir in $PATH |
| 4348 | do |
| 4349 | IFS=$as_save_IFS |
| 4350 | test -z "$as_dir" && as_dir=. |
| 4351 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4352 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4353 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4355 | break 2 |
| 4356 | fi |
| 4357 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4358 | done |
| 4359 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4360 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4361 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4362 | RANLIB=$ac_cv_prog_RANLIB |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4363 | if test -n "$RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4364 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4365 | echo "${ECHO_T}$RANLIB" >&6 |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4366 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4367 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4368 | echo "${ECHO_T}no" >&6 |
| 4369 | fi |
| 4370 | |
| 4371 | fi |
| 4372 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4373 | ac_ct_RANLIB=$RANLIB |
| 4374 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4375 | set dummy ranlib; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4376 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4378 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4379 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4380 | else |
| 4381 | if test -n "$ac_ct_RANLIB"; then |
| 4382 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4383 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4385 | for as_dir in $PATH |
| 4386 | do |
| 4387 | IFS=$as_save_IFS |
| 4388 | test -z "$as_dir" && as_dir=. |
| 4389 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4390 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4391 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4392 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4393 | break 2 |
| 4394 | fi |
| 4395 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4396 | done |
| 4397 | |
| 4398 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 4399 | fi |
| 4400 | fi |
| 4401 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4402 | if test -n "$ac_ct_RANLIB"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4403 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4404 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 4405 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4406 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4407 | echo "${ECHO_T}no" >&6 |
| 4408 | fi |
| 4409 | |
| 4410 | RANLIB=$ac_ct_RANLIB |
| 4411 | else |
| 4412 | RANLIB="$ac_cv_prog_RANLIB" |
Alexandre Julliard | ff8331e | 1995-09-18 11:19:54 +0000 | [diff] [blame] | 4413 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 4414 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 4415 | if test -n "$ac_tool_prefix"; then |
| 4416 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 4417 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 4418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4420 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 4421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4422 | else |
| 4423 | if test -n "$STRIP"; then |
| 4424 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 4425 | else |
| 4426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4427 | for as_dir in $PATH |
| 4428 | do |
| 4429 | IFS=$as_save_IFS |
| 4430 | test -z "$as_dir" && as_dir=. |
| 4431 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4433 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 4434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4435 | break 2 |
| 4436 | fi |
| 4437 | done |
| 4438 | done |
| 4439 | |
| 4440 | fi |
| 4441 | fi |
| 4442 | STRIP=$ac_cv_prog_STRIP |
| 4443 | if test -n "$STRIP"; then |
| 4444 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 4445 | echo "${ECHO_T}$STRIP" >&6 |
| 4446 | else |
| 4447 | echo "$as_me:$LINENO: result: no" >&5 |
| 4448 | echo "${ECHO_T}no" >&6 |
| 4449 | fi |
| 4450 | |
| 4451 | fi |
| 4452 | if test -z "$ac_cv_prog_STRIP"; then |
| 4453 | ac_ct_STRIP=$STRIP |
| 4454 | # Extract the first word of "strip", so it can be a program name with args. |
| 4455 | set dummy strip; ac_word=$2 |
| 4456 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4458 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 4459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4460 | else |
| 4461 | if test -n "$ac_ct_STRIP"; then |
| 4462 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 4463 | else |
| 4464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4465 | for as_dir in $PATH |
| 4466 | do |
| 4467 | IFS=$as_save_IFS |
| 4468 | test -z "$as_dir" && as_dir=. |
| 4469 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4470 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4471 | ac_cv_prog_ac_ct_STRIP="strip" |
| 4472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4473 | break 2 |
| 4474 | fi |
| 4475 | done |
| 4476 | done |
| 4477 | |
| 4478 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip" |
| 4479 | fi |
| 4480 | fi |
| 4481 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 4482 | if test -n "$ac_ct_STRIP"; then |
| 4483 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 4484 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 4485 | else |
| 4486 | echo "$as_me:$LINENO: result: no" >&5 |
| 4487 | echo "${ECHO_T}no" >&6 |
| 4488 | fi |
| 4489 | |
| 4490 | STRIP=$ac_ct_STRIP |
| 4491 | else |
| 4492 | STRIP="$ac_cv_prog_STRIP" |
| 4493 | fi |
| 4494 | |
| 4495 | if test -n "$ac_tool_prefix"; then |
| 4496 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 4497 | set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 4498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4500 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
| 4501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4502 | else |
| 4503 | if test -n "$WINDRES"; then |
| 4504 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 4505 | else |
| 4506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4507 | for as_dir in $PATH |
| 4508 | do |
| 4509 | IFS=$as_save_IFS |
| 4510 | test -z "$as_dir" && as_dir=. |
| 4511 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4513 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 4514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4515 | break 2 |
| 4516 | fi |
| 4517 | done |
| 4518 | done |
| 4519 | |
| 4520 | fi |
| 4521 | fi |
| 4522 | WINDRES=$ac_cv_prog_WINDRES |
| 4523 | if test -n "$WINDRES"; then |
| 4524 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
| 4525 | echo "${ECHO_T}$WINDRES" >&6 |
| 4526 | else |
| 4527 | echo "$as_me:$LINENO: result: no" >&5 |
| 4528 | echo "${ECHO_T}no" >&6 |
| 4529 | fi |
| 4530 | |
| 4531 | fi |
| 4532 | if test -z "$ac_cv_prog_WINDRES"; then |
| 4533 | ac_ct_WINDRES=$WINDRES |
| 4534 | # Extract the first word of "windres", so it can be a program name with args. |
| 4535 | set dummy windres; ac_word=$2 |
| 4536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4538 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
| 4539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4540 | else |
| 4541 | if test -n "$ac_ct_WINDRES"; then |
| 4542 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 4543 | else |
| 4544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4545 | for as_dir in $PATH |
| 4546 | do |
| 4547 | IFS=$as_save_IFS |
| 4548 | test -z "$as_dir" && as_dir=. |
| 4549 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4551 | ac_cv_prog_ac_ct_WINDRES="windres" |
| 4552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4553 | break 2 |
| 4554 | fi |
| 4555 | done |
| 4556 | done |
| 4557 | |
| 4558 | test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false" |
| 4559 | fi |
| 4560 | fi |
| 4561 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 4562 | if test -n "$ac_ct_WINDRES"; then |
| 4563 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
| 4564 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 |
| 4565 | else |
| 4566 | echo "$as_me:$LINENO: result: no" >&5 |
| 4567 | echo "${ECHO_T}no" >&6 |
| 4568 | fi |
| 4569 | |
| 4570 | WINDRES=$ac_ct_WINDRES |
| 4571 | else |
| 4572 | WINDRES="$ac_cv_prog_WINDRES" |
| 4573 | fi |
| 4574 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4575 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4576 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4577 | LN_S=$as_ln_s |
| 4578 | if test "$LN_S" = "ln -s"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4579 | echo "$as_me:$LINENO: result: yes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4580 | echo "${ECHO_T}yes" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4581 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4582 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4583 | echo "${ECHO_T}no, using $LN_S" >&6 |
Alexandre Julliard | 641ee76 | 1997-08-04 16:34:36 +0000 | [diff] [blame] | 4584 | fi |
| 4585 | |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 4586 | echo "$as_me:$LINENO: checking whether ln works" >&5 |
| 4587 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 |
| 4588 | rm -f conf$$ conf$$.file |
| 4589 | echo >conf$$.file |
| 4590 | if ln conf$$.file conf$$ 2>/dev/null; then |
| 4591 | LN=ln |
| 4592 | |
| 4593 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4594 | echo "${ECHO_T}yes" >&6 |
| 4595 | else |
| 4596 | LN="cp -p" |
| 4597 | |
| 4598 | echo "$as_me:$LINENO: result: no, using $LN" >&5 |
| 4599 | echo "${ECHO_T}no, using $LN" >&6 |
| 4600 | fi |
| 4601 | rm -f conf$$ conf$$.file |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4602 | # Extract the first word of "c2man", so it can be a program name with args. |
| 4603 | set dummy c2man; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4604 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4606 | if test "${ac_cv_prog_C2MAN+set}" = set; then |
| 4607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4608 | else |
| 4609 | if test -n "$C2MAN"; then |
| 4610 | ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test. |
| 4611 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4613 | for as_dir in $PATH |
| 4614 | do |
| 4615 | IFS=$as_save_IFS |
| 4616 | test -z "$as_dir" && as_dir=. |
| 4617 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4618 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4619 | ac_cv_prog_C2MAN="c2man" |
| 4620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4621 | break 2 |
| 4622 | fi |
| 4623 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4624 | done |
| 4625 | |
Mike McCormack | e0df32f | 2000-08-11 21:15:21 +0000 | [diff] [blame] | 4626 | test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4627 | fi |
| 4628 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4629 | C2MAN=$ac_cv_prog_C2MAN |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4630 | if test -n "$C2MAN"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4631 | echo "$as_me:$LINENO: result: $C2MAN" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4632 | echo "${ECHO_T}$C2MAN" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4633 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4634 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4635 | echo "${ECHO_T}no" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 4636 | fi |
| 4637 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4638 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4639 | set dummy ldconfig; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4640 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4641 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4642 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 4643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4644 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4645 | case $LDCONFIG in |
| 4646 | [\\/]* | ?:[\\/]*) |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4647 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4648 | ;; |
| 4649 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Bill Medland | 91372b3 | 2002-04-20 21:00:42 +0000 | [diff] [blame] | 4651 | for as_dir in /sbin /usr/sbin $PATH |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4652 | do |
| 4653 | IFS=$as_save_IFS |
| 4654 | test -z "$as_dir" && as_dir=. |
| 4655 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4657 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4659 | break 2 |
| 4660 | fi |
| 4661 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4662 | done |
| 4663 | |
Alexandre Julliard | 318f4ce | 2000-01-31 05:02:49 +0000 | [diff] [blame] | 4664 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4665 | ;; |
| 4666 | esac |
| 4667 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4668 | LDCONFIG=$ac_cv_path_LDCONFIG |
| 4669 | |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4670 | if test -n "$LDCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4671 | echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4672 | echo "${ECHO_T}$LDCONFIG" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4673 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4674 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4675 | echo "${ECHO_T}no" >&6 |
James Juran | ffe6b76 | 1999-06-12 08:21:57 +0000 | [diff] [blame] | 4676 | fi |
| 4677 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4678 | # Find a good install program. We prefer a C program (faster), |
| 4679 | # so one script is as good as another. But avoid the broken or |
| 4680 | # incompatible versions: |
| 4681 | # SysV /etc/install, /usr/sbin/install |
| 4682 | # SunOS /usr/etc/install |
| 4683 | # IRIX /sbin/install |
| 4684 | # AIX /bin/install |
| 4685 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4686 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4687 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4688 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4689 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4690 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4691 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 4692 | if test -z "$INSTALL"; then |
| 4693 | if test "${ac_cv_path_install+set}" = set; then |
| 4694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4695 | else |
| 4696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4697 | for as_dir in $PATH |
| 4698 | do |
| 4699 | IFS=$as_save_IFS |
| 4700 | test -z "$as_dir" && as_dir=. |
| 4701 | # Account for people who put trailing slashes in PATH elements. |
| 4702 | case $as_dir/ in |
| 4703 | ./ | .// | /cC/* | \ |
| 4704 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4705 | /usr/ucb/* ) ;; |
| 4706 | *) |
| 4707 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4708 | # Don't use installbsd from OSF since it installs stuff as root |
| 4709 | # by default. |
| 4710 | for ac_prog in ginstall scoinst install; do |
| 4711 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4712 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 4713 | if test $ac_prog = install && |
| 4714 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4715 | # AIX install. It has an incompatible calling convention. |
| 4716 | : |
| 4717 | elif test $ac_prog = install && |
| 4718 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4719 | # program-specific install script used by HP pwplus--don't use. |
| 4720 | : |
| 4721 | else |
| 4722 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4723 | break 3 |
| 4724 | fi |
| 4725 | fi |
| 4726 | done |
| 4727 | done |
| 4728 | ;; |
| 4729 | esac |
| 4730 | done |
| 4731 | |
| 4732 | |
| 4733 | fi |
| 4734 | if test "${ac_cv_path_install+set}" = set; then |
| 4735 | INSTALL=$ac_cv_path_install |
| 4736 | else |
| 4737 | # As a last resort, use the slow shell script. We don't cache a |
| 4738 | # path for INSTALL within a source directory, because that will |
| 4739 | # break other packages using the cache if that directory is |
| 4740 | # removed, or if the path is relative. |
| 4741 | INSTALL=$ac_install_sh |
| 4742 | fi |
| 4743 | fi |
| 4744 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4745 | echo "${ECHO_T}$INSTALL" >&6 |
| 4746 | |
| 4747 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4748 | # It thinks the first close brace ends the variable substitution. |
| 4749 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4750 | |
| 4751 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4752 | |
| 4753 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4754 | |
| 4755 | case "$INSTALL" in |
Alexandre Julliard | 8418d8f | 2002-12-24 02:39:47 +0000 | [diff] [blame] | 4756 | [\\/$]* | ?:[\\/]* ) ;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4757 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
| 4758 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4759 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4760 | for ac_prog in lclint lint |
| 4761 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4762 | # 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] | 4763 | set dummy $ac_prog; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4764 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4766 | if test "${ac_cv_prog_LINT+set}" = set; then |
| 4767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4768 | else |
| 4769 | if test -n "$LINT"; then |
| 4770 | ac_cv_prog_LINT="$LINT" # Let the user override the test. |
| 4771 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4773 | for as_dir in $PATH |
| 4774 | do |
| 4775 | IFS=$as_save_IFS |
| 4776 | test -z "$as_dir" && as_dir=. |
| 4777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4778 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4779 | ac_cv_prog_LINT="$ac_prog" |
| 4780 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4781 | break 2 |
| 4782 | fi |
| 4783 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4784 | done |
| 4785 | |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4786 | fi |
| 4787 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4788 | LINT=$ac_cv_prog_LINT |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4789 | if test -n "$LINT"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4790 | echo "$as_me:$LINENO: result: $LINT" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4791 | echo "${ECHO_T}$LINT" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4792 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4793 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4794 | echo "${ECHO_T}no" >&6 |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4795 | fi |
| 4796 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4797 | test -n "$LINT" && break |
Patrik Stridvall | a9be64e | 1999-07-31 17:39:44 +0000 | [diff] [blame] | 4798 | done |
| 4799 | |
| 4800 | if test "$LINT" = "lint" |
| 4801 | then |
| 4802 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" |
| 4803 | fi |
| 4804 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4805 | |
| 4806 | |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 4807 | for ac_prog in docbook2html db2html |
| 4808 | do |
| 4809 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4810 | set dummy $ac_prog; ac_word=$2 |
| 4811 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4813 | if test "${ac_cv_prog_DB2HTML+set}" = set; then |
| 4814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4815 | else |
| 4816 | if test -n "$DB2HTML"; then |
| 4817 | ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test. |
| 4818 | else |
| 4819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4820 | for as_dir in $PATH |
| 4821 | do |
| 4822 | IFS=$as_save_IFS |
| 4823 | test -z "$as_dir" && as_dir=. |
| 4824 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4825 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4826 | ac_cv_prog_DB2HTML="$ac_prog" |
| 4827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4828 | break 2 |
| 4829 | fi |
| 4830 | done |
| 4831 | done |
| 4832 | |
| 4833 | fi |
| 4834 | fi |
| 4835 | DB2HTML=$ac_cv_prog_DB2HTML |
| 4836 | if test -n "$DB2HTML"; then |
| 4837 | echo "$as_me:$LINENO: result: $DB2HTML" >&5 |
| 4838 | echo "${ECHO_T}$DB2HTML" >&6 |
| 4839 | else |
| 4840 | echo "$as_me:$LINENO: result: no" >&5 |
| 4841 | echo "${ECHO_T}no" >&6 |
| 4842 | fi |
| 4843 | |
| 4844 | test -n "$DB2HTML" && break |
| 4845 | done |
| 4846 | test -n "$DB2HTML" || DB2HTML="false" |
| 4847 | |
| 4848 | |
| 4849 | |
| 4850 | for ac_prog in docbook2pdf db2pdf |
| 4851 | do |
| 4852 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4853 | set dummy $ac_prog; ac_word=$2 |
| 4854 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4856 | if test "${ac_cv_prog_DB2PDF+set}" = set; then |
| 4857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4858 | else |
| 4859 | if test -n "$DB2PDF"; then |
| 4860 | ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test. |
| 4861 | else |
| 4862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4863 | for as_dir in $PATH |
| 4864 | do |
| 4865 | IFS=$as_save_IFS |
| 4866 | test -z "$as_dir" && as_dir=. |
| 4867 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4868 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4869 | ac_cv_prog_DB2PDF="$ac_prog" |
| 4870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4871 | break 2 |
| 4872 | fi |
| 4873 | done |
| 4874 | done |
| 4875 | |
| 4876 | fi |
| 4877 | fi |
| 4878 | DB2PDF=$ac_cv_prog_DB2PDF |
| 4879 | if test -n "$DB2PDF"; then |
| 4880 | echo "$as_me:$LINENO: result: $DB2PDF" >&5 |
| 4881 | echo "${ECHO_T}$DB2PDF" >&6 |
| 4882 | else |
| 4883 | echo "$as_me:$LINENO: result: no" >&5 |
| 4884 | echo "${ECHO_T}no" >&6 |
| 4885 | fi |
| 4886 | |
| 4887 | test -n "$DB2PDF" && break |
| 4888 | done |
| 4889 | test -n "$DB2PDF" || DB2PDF="false" |
| 4890 | |
| 4891 | |
| 4892 | |
| 4893 | for ac_prog in docbook2ps db2ps |
| 4894 | do |
| 4895 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4896 | set dummy $ac_prog; ac_word=$2 |
| 4897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4899 | if test "${ac_cv_prog_DB2PS+set}" = set; then |
| 4900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4901 | else |
| 4902 | if test -n "$DB2PS"; then |
| 4903 | ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test. |
| 4904 | else |
| 4905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4906 | for as_dir in $PATH |
| 4907 | do |
| 4908 | IFS=$as_save_IFS |
| 4909 | test -z "$as_dir" && as_dir=. |
| 4910 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4912 | ac_cv_prog_DB2PS="$ac_prog" |
| 4913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4914 | break 2 |
| 4915 | fi |
| 4916 | done |
| 4917 | done |
| 4918 | |
| 4919 | fi |
| 4920 | fi |
| 4921 | DB2PS=$ac_cv_prog_DB2PS |
| 4922 | if test -n "$DB2PS"; then |
| 4923 | echo "$as_me:$LINENO: result: $DB2PS" >&5 |
| 4924 | echo "${ECHO_T}$DB2PS" >&6 |
| 4925 | else |
| 4926 | echo "$as_me:$LINENO: result: no" >&5 |
| 4927 | echo "${ECHO_T}no" >&6 |
| 4928 | fi |
| 4929 | |
| 4930 | test -n "$DB2PS" && break |
| 4931 | done |
| 4932 | test -n "$DB2PS" || DB2PS="false" |
| 4933 | |
| 4934 | |
| 4935 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4936 | |
| 4937 | |
| 4938 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4939 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
| 4940 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
| 4941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | 79e44ab | 2000-12-05 04:13:36 +0000 | [diff] [blame] | 4942 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4943 | ac_check_lib_save_LIBS=$LIBS |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4944 | LIBS="-lm $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4945 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4946 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4947 | /* confdefs.h. */ |
| 4948 | _ACEOF |
| 4949 | cat confdefs.h >>conftest.$ac_ext |
| 4950 | cat >>conftest.$ac_ext <<_ACEOF |
| 4951 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4952 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4953 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4954 | #ifdef __cplusplus |
| 4955 | extern "C" |
| 4956 | #endif |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4957 | /* 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] | 4958 | builtin and then its argument prototype would still apply. */ |
| 4959 | char sqrt (); |
| 4960 | int |
| 4961 | main () |
| 4962 | { |
| 4963 | sqrt (); |
| 4964 | ; |
| 4965 | return 0; |
| 4966 | } |
| 4967 | _ACEOF |
| 4968 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4970 | (eval $ac_link) 2>&5 |
| 4971 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4973 | (exit $ac_status); } && |
| 4974 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4976 | (eval $ac_try) 2>&5 |
| 4977 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4979 | (exit $ac_status); }; }; then |
| 4980 | ac_cv_lib_m_sqrt=yes |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4981 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4982 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 4983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4984 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4985 | ac_cv_lib_m_sqrt=no |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4986 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4987 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4988 | LIBS=$ac_check_lib_save_LIBS |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4989 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4990 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4991 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
| 4992 | if test $ac_cv_lib_m_sqrt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4993 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 4994 | #define HAVE_LIBM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 4995 | _ACEOF |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4996 | |
| 4997 | LIBS="-lm $LIBS" |
| 4998 | |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 4999 | fi |
| 5000 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5001 | |
| 5002 | echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5003 | echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6 |
| 5004 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
| 5005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5006 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5007 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5008 | LIBS="-li386 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5009 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5010 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5011 | /* confdefs.h. */ |
| 5012 | _ACEOF |
| 5013 | cat confdefs.h >>conftest.$ac_ext |
| 5014 | cat >>conftest.$ac_ext <<_ACEOF |
| 5015 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5016 | |
Alexandre Julliard | 59730ae | 1996-03-24 16:20:51 +0000 | [diff] [blame] | 5017 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5018 | #ifdef __cplusplus |
| 5019 | extern "C" |
| 5020 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 5021 | /* 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] | 5022 | builtin and then its argument prototype would still apply. */ |
| 5023 | char i386_set_ldt (); |
| 5024 | int |
| 5025 | main () |
| 5026 | { |
| 5027 | i386_set_ldt (); |
| 5028 | ; |
| 5029 | return 0; |
| 5030 | } |
| 5031 | _ACEOF |
| 5032 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5034 | (eval $ac_link) 2>&5 |
| 5035 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5037 | (exit $ac_status); } && |
| 5038 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5040 | (eval $ac_try) 2>&5 |
| 5041 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5043 | (exit $ac_status); }; }; then |
| 5044 | ac_cv_lib_i386_i386_set_ldt=yes |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5045 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5046 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5048 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5049 | ac_cv_lib_i386_i386_set_ldt=no |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5050 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5051 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5052 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 5053 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5054 | 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] | 5055 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6 |
| 5056 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5057 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5058 | #define HAVE_LIBI386 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5059 | _ACEOF |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5060 | |
| 5061 | LIBS="-li386 $LIBS" |
| 5062 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 5063 | fi |
| 5064 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5065 | |
| 5066 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5067 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
| 5068 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
| 5069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5070 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5071 | ac_check_lib_save_LIBS=$LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5072 | LIBS="-lossaudio $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5073 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5074 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5075 | /* confdefs.h. */ |
| 5076 | _ACEOF |
| 5077 | cat confdefs.h >>conftest.$ac_ext |
| 5078 | cat >>conftest.$ac_ext <<_ACEOF |
| 5079 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5080 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5081 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5082 | #ifdef __cplusplus |
| 5083 | extern "C" |
| 5084 | #endif |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5085 | /* 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] | 5086 | builtin and then its argument prototype would still apply. */ |
| 5087 | char _oss_ioctl (); |
| 5088 | int |
| 5089 | main () |
| 5090 | { |
| 5091 | _oss_ioctl (); |
| 5092 | ; |
| 5093 | return 0; |
| 5094 | } |
| 5095 | _ACEOF |
| 5096 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5098 | (eval $ac_link) 2>&5 |
| 5099 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5101 | (exit $ac_status); } && |
| 5102 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5104 | (eval $ac_try) 2>&5 |
| 5105 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5107 | (exit $ac_status); }; }; then |
| 5108 | ac_cv_lib_ossaudio__oss_ioctl=yes |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5109 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5110 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5111 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5112 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5113 | ac_cv_lib_ossaudio__oss_ioctl=no |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5114 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5115 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5116 | LIBS=$ac_check_lib_save_LIBS |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5117 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5118 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5119 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
| 5120 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5121 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5122 | #define HAVE_LIBOSSAUDIO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5123 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5124 | |
| 5125 | LIBS="-lossaudio $LIBS" |
| 5126 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 5127 | fi |
| 5128 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5129 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5130 | for ac_func in iswalnum |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5131 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5132 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5133 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5134 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5135 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5137 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5138 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5139 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5140 | /* confdefs.h. */ |
| 5141 | _ACEOF |
| 5142 | cat confdefs.h >>conftest.$ac_ext |
| 5143 | cat >>conftest.$ac_ext <<_ACEOF |
| 5144 | /* end confdefs.h. */ |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5145 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5146 | which can conflict with char $ac_func (); below. |
| 5147 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5148 | <limits.h> exists even on freestanding compilers. */ |
| 5149 | #ifdef __STDC__ |
| 5150 | # include <limits.h> |
| 5151 | #else |
| 5152 | # include <assert.h> |
| 5153 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5154 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5155 | #ifdef __cplusplus |
| 5156 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5157 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5158 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5159 | /* 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] | 5160 | builtin and then its argument prototype would still apply. */ |
| 5161 | char $ac_func (); |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5162 | /* The GNU C library defines this for functions which it implements |
| 5163 | to always fail with ENOSYS. Some functions are actually named |
| 5164 | something starting with __ and the normal name is an alias. */ |
| 5165 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5166 | choke me |
| 5167 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5168 | char (*f) () = $ac_func; |
| 5169 | #endif |
| 5170 | #ifdef __cplusplus |
| 5171 | } |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5172 | #endif |
| 5173 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5174 | int |
| 5175 | main () |
| 5176 | { |
| 5177 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5178 | ; |
| 5179 | return 0; |
| 5180 | } |
| 5181 | _ACEOF |
| 5182 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5184 | (eval $ac_link) 2>&5 |
| 5185 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5187 | (exit $ac_status); } && |
| 5188 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5190 | (eval $ac_try) 2>&5 |
| 5191 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5193 | (exit $ac_status); }; }; then |
| 5194 | eval "$as_ac_var=yes" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5195 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5196 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5198 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5199 | eval "$as_ac_var=no" |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5200 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5202 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5203 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5204 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5205 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5206 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5207 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5208 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5209 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5210 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5211 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5212 | echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5213 | echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6 |
| 5214 | if test "${ac_cv_lib_w_iswalnum+set}" = set; then |
| 5215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5216 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5217 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5218 | LIBS="-lw $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5219 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5220 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5221 | /* confdefs.h. */ |
| 5222 | _ACEOF |
| 5223 | cat confdefs.h >>conftest.$ac_ext |
| 5224 | cat >>conftest.$ac_ext <<_ACEOF |
| 5225 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5226 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5227 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5228 | #ifdef __cplusplus |
| 5229 | extern "C" |
| 5230 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5231 | /* 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] | 5232 | builtin and then its argument prototype would still apply. */ |
| 5233 | char iswalnum (); |
| 5234 | int |
| 5235 | main () |
| 5236 | { |
| 5237 | iswalnum (); |
| 5238 | ; |
| 5239 | return 0; |
| 5240 | } |
| 5241 | _ACEOF |
| 5242 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5244 | (eval $ac_link) 2>&5 |
| 5245 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5247 | (exit $ac_status); } && |
| 5248 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5250 | (eval $ac_try) 2>&5 |
| 5251 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5253 | (exit $ac_status); }; }; then |
| 5254 | ac_cv_lib_w_iswalnum=yes |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5255 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5256 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5258 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5259 | ac_cv_lib_w_iswalnum=no |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5260 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5261 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5262 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5263 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5264 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5265 | echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6 |
| 5266 | if test $ac_cv_lib_w_iswalnum = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5267 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5268 | #define HAVE_LIBW 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5269 | _ACEOF |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5270 | |
| 5271 | LIBS="-lw $LIBS" |
| 5272 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5273 | fi |
| 5274 | |
| 5275 | fi |
| 5276 | done |
| 5277 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5278 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5279 | for ac_func in gethostbyname |
| 5280 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5281 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5282 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5283 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5284 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5286 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5287 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5288 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5289 | /* confdefs.h. */ |
| 5290 | _ACEOF |
| 5291 | cat confdefs.h >>conftest.$ac_ext |
| 5292 | cat >>conftest.$ac_ext <<_ACEOF |
| 5293 | /* end confdefs.h. */ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5294 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5295 | which can conflict with char $ac_func (); below. |
| 5296 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5297 | <limits.h> exists even on freestanding compilers. */ |
| 5298 | #ifdef __STDC__ |
| 5299 | # include <limits.h> |
| 5300 | #else |
| 5301 | # include <assert.h> |
| 5302 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5303 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5304 | #ifdef __cplusplus |
| 5305 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5306 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5307 | #endif |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5308 | /* 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] | 5309 | builtin and then its argument prototype would still apply. */ |
| 5310 | char $ac_func (); |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5311 | /* The GNU C library defines this for functions which it implements |
| 5312 | to always fail with ENOSYS. Some functions are actually named |
| 5313 | something starting with __ and the normal name is an alias. */ |
| 5314 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5315 | choke me |
| 5316 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5317 | char (*f) () = $ac_func; |
| 5318 | #endif |
| 5319 | #ifdef __cplusplus |
| 5320 | } |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5321 | #endif |
| 5322 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5323 | int |
| 5324 | main () |
| 5325 | { |
| 5326 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5327 | ; |
| 5328 | return 0; |
| 5329 | } |
| 5330 | _ACEOF |
| 5331 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5333 | (eval $ac_link) 2>&5 |
| 5334 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5336 | (exit $ac_status); } && |
| 5337 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5339 | (eval $ac_try) 2>&5 |
| 5340 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5342 | (exit $ac_status); }; }; then |
| 5343 | eval "$as_ac_var=yes" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5344 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5345 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5347 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5348 | eval "$as_ac_var=no" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5349 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5350 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5351 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5352 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5353 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5354 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5355 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5356 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5357 | _ACEOF |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5358 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5359 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5360 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5361 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5362 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 5363 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 5364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5365 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5366 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5367 | LIBS="-lnsl $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5368 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5369 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5370 | /* confdefs.h. */ |
| 5371 | _ACEOF |
| 5372 | cat confdefs.h >>conftest.$ac_ext |
| 5373 | cat >>conftest.$ac_ext <<_ACEOF |
| 5374 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5375 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5376 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5377 | #ifdef __cplusplus |
| 5378 | extern "C" |
| 5379 | #endif |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5380 | /* 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] | 5381 | builtin and then its argument prototype would still apply. */ |
| 5382 | char gethostbyname (); |
| 5383 | int |
| 5384 | main () |
| 5385 | { |
| 5386 | gethostbyname (); |
| 5387 | ; |
| 5388 | return 0; |
| 5389 | } |
| 5390 | _ACEOF |
| 5391 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5393 | (eval $ac_link) 2>&5 |
| 5394 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5396 | (exit $ac_status); } && |
| 5397 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5399 | (eval $ac_try) 2>&5 |
| 5400 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5402 | (exit $ac_status); }; }; then |
| 5403 | ac_cv_lib_nsl_gethostbyname=yes |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5404 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5405 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5407 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5408 | ac_cv_lib_nsl_gethostbyname=no |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5409 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5410 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5411 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5412 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5413 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5414 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 5415 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5416 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5417 | #define HAVE_LIBNSL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5418 | _ACEOF |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5419 | |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 5420 | LIBS="-lnsl $LIBS" |
| 5421 | |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 5422 | fi |
| 5423 | |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 5424 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 5425 | done |
| 5426 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5427 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5428 | for ac_func in connect |
| 5429 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5430 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5431 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5432 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5433 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5435 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5436 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5437 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5438 | /* confdefs.h. */ |
| 5439 | _ACEOF |
| 5440 | cat confdefs.h >>conftest.$ac_ext |
| 5441 | cat >>conftest.$ac_ext <<_ACEOF |
| 5442 | /* end confdefs.h. */ |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5443 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5444 | which can conflict with char $ac_func (); below. |
| 5445 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5446 | <limits.h> exists even on freestanding compilers. */ |
| 5447 | #ifdef __STDC__ |
| 5448 | # include <limits.h> |
| 5449 | #else |
| 5450 | # include <assert.h> |
| 5451 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5452 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5453 | #ifdef __cplusplus |
| 5454 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5455 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5456 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5457 | /* 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] | 5458 | builtin and then its argument prototype would still apply. */ |
| 5459 | char $ac_func (); |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5460 | /* The GNU C library defines this for functions which it implements |
| 5461 | to always fail with ENOSYS. Some functions are actually named |
| 5462 | something starting with __ and the normal name is an alias. */ |
| 5463 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5464 | choke me |
| 5465 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5466 | char (*f) () = $ac_func; |
| 5467 | #endif |
| 5468 | #ifdef __cplusplus |
| 5469 | } |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5470 | #endif |
| 5471 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5472 | int |
| 5473 | main () |
| 5474 | { |
| 5475 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5476 | ; |
| 5477 | return 0; |
| 5478 | } |
| 5479 | _ACEOF |
| 5480 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5482 | (eval $ac_link) 2>&5 |
| 5483 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5485 | (exit $ac_status); } && |
| 5486 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5488 | (eval $ac_try) 2>&5 |
| 5489 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5491 | (exit $ac_status); }; }; then |
| 5492 | eval "$as_ac_var=yes" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5493 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5494 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5496 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5497 | eval "$as_ac_var=no" |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5498 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5499 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5500 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5501 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5502 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5503 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5504 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5505 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5506 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5507 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5508 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5509 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5510 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5511 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 5512 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 5513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5514 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5515 | ac_check_lib_save_LIBS=$LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5516 | LIBS="-lsocket $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5517 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5518 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5519 | /* confdefs.h. */ |
| 5520 | _ACEOF |
| 5521 | cat confdefs.h >>conftest.$ac_ext |
| 5522 | cat >>conftest.$ac_ext <<_ACEOF |
| 5523 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5524 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5525 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5526 | #ifdef __cplusplus |
| 5527 | extern "C" |
| 5528 | #endif |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5529 | /* 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] | 5530 | builtin and then its argument prototype would still apply. */ |
| 5531 | char connect (); |
| 5532 | int |
| 5533 | main () |
| 5534 | { |
| 5535 | connect (); |
| 5536 | ; |
| 5537 | return 0; |
| 5538 | } |
| 5539 | _ACEOF |
| 5540 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5542 | (eval $ac_link) 2>&5 |
| 5543 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5545 | (exit $ac_status); } && |
| 5546 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5548 | (eval $ac_try) 2>&5 |
| 5549 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5551 | (exit $ac_status); }; }; then |
| 5552 | ac_cv_lib_socket_connect=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5553 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5554 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5556 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5557 | ac_cv_lib_socket_connect=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5558 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5559 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5560 | LIBS=$ac_check_lib_save_LIBS |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5561 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5562 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5563 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 5564 | if test $ac_cv_lib_socket_connect = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5565 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5566 | #define HAVE_LIBSOCKET 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5567 | _ACEOF |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5568 | |
| 5569 | LIBS="-lsocket $LIBS" |
| 5570 | |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 5571 | fi |
| 5572 | |
| 5573 | fi |
Marcus Meissner | f070fda | 1999-04-24 12:02:14 +0000 | [diff] [blame] | 5574 | done |
| 5575 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5576 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5577 | for ac_func in inet_aton |
| 5578 | do |
| 5579 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5580 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5581 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5582 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5584 | else |
| 5585 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5586 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5587 | /* confdefs.h. */ |
| 5588 | _ACEOF |
| 5589 | cat confdefs.h >>conftest.$ac_ext |
| 5590 | cat >>conftest.$ac_ext <<_ACEOF |
| 5591 | /* end confdefs.h. */ |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5592 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5593 | which can conflict with char $ac_func (); below. |
| 5594 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5595 | <limits.h> exists even on freestanding compilers. */ |
| 5596 | #ifdef __STDC__ |
| 5597 | # include <limits.h> |
| 5598 | #else |
| 5599 | # include <assert.h> |
| 5600 | #endif |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5601 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5602 | #ifdef __cplusplus |
| 5603 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5604 | { |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5605 | #endif |
| 5606 | /* We use char because int might match the return type of a gcc2 |
| 5607 | builtin and then its argument prototype would still apply. */ |
| 5608 | char $ac_func (); |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5609 | /* The GNU C library defines this for functions which it implements |
| 5610 | to always fail with ENOSYS. Some functions are actually named |
| 5611 | something starting with __ and the normal name is an alias. */ |
| 5612 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5613 | choke me |
| 5614 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5615 | char (*f) () = $ac_func; |
| 5616 | #endif |
| 5617 | #ifdef __cplusplus |
| 5618 | } |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5619 | #endif |
| 5620 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5621 | int |
| 5622 | main () |
| 5623 | { |
| 5624 | return f != $ac_func; |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5625 | ; |
| 5626 | return 0; |
| 5627 | } |
| 5628 | _ACEOF |
| 5629 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5631 | (eval $ac_link) 2>&5 |
| 5632 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5634 | (exit $ac_status); } && |
| 5635 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5637 | (eval $ac_try) 2>&5 |
| 5638 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5640 | (exit $ac_status); }; }; then |
| 5641 | eval "$as_ac_var=yes" |
| 5642 | else |
| 5643 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5645 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5646 | eval "$as_ac_var=no" |
| 5647 | fi |
| 5648 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5649 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5650 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5651 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5652 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5653 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5654 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5655 | _ACEOF |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5656 | |
| 5657 | else |
| 5658 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5659 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5660 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 5661 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 5662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5663 | else |
| 5664 | ac_check_lib_save_LIBS=$LIBS |
| 5665 | LIBS="-lresolv $LIBS" |
| 5666 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5667 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5668 | /* confdefs.h. */ |
| 5669 | _ACEOF |
| 5670 | cat confdefs.h >>conftest.$ac_ext |
| 5671 | cat >>conftest.$ac_ext <<_ACEOF |
| 5672 | /* end confdefs.h. */ |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5673 | |
| 5674 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5675 | #ifdef __cplusplus |
| 5676 | extern "C" |
| 5677 | #endif |
| 5678 | /* We use char because int might match the return type of a gcc2 |
| 5679 | builtin and then its argument prototype would still apply. */ |
| 5680 | char inet_aton (); |
| 5681 | int |
| 5682 | main () |
| 5683 | { |
| 5684 | inet_aton (); |
| 5685 | ; |
| 5686 | return 0; |
| 5687 | } |
| 5688 | _ACEOF |
| 5689 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5691 | (eval $ac_link) 2>&5 |
| 5692 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5694 | (exit $ac_status); } && |
| 5695 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5697 | (eval $ac_try) 2>&5 |
| 5698 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5700 | (exit $ac_status); }; }; then |
| 5701 | ac_cv_lib_resolv_inet_aton=yes |
| 5702 | else |
| 5703 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5705 | |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5706 | ac_cv_lib_resolv_inet_aton=no |
| 5707 | fi |
| 5708 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5709 | LIBS=$ac_check_lib_save_LIBS |
| 5710 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5711 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5712 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 5713 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5714 | cat >>confdefs.h <<_ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5715 | #define HAVE_LIBRESOLV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5716 | _ACEOF |
Francois Gouget | 3b943bc | 2002-04-01 21:05:15 +0000 | [diff] [blame] | 5717 | |
| 5718 | LIBS="-lresolv $LIBS" |
| 5719 | |
| 5720 | fi |
| 5721 | |
Alexandre Julliard | c555274 | 2002-04-03 20:24:44 +0000 | [diff] [blame] | 5722 | fi |
| 5723 | done |
| 5724 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5725 | |
| 5726 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5727 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 5728 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 5729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5730 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5731 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5732 | LIBS="-lxpg4 $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5733 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5734 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5735 | /* confdefs.h. */ |
| 5736 | _ACEOF |
| 5737 | cat confdefs.h >>conftest.$ac_ext |
| 5738 | cat >>conftest.$ac_ext <<_ACEOF |
| 5739 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5740 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5741 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5742 | #ifdef __cplusplus |
| 5743 | extern "C" |
| 5744 | #endif |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5745 | /* 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] | 5746 | builtin and then its argument prototype would still apply. */ |
| 5747 | char _xpg4_setrunelocale (); |
| 5748 | int |
| 5749 | main () |
| 5750 | { |
| 5751 | _xpg4_setrunelocale (); |
| 5752 | ; |
| 5753 | return 0; |
| 5754 | } |
| 5755 | _ACEOF |
| 5756 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5758 | (eval $ac_link) 2>&5 |
| 5759 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5761 | (exit $ac_status); } && |
| 5762 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5764 | (eval $ac_try) 2>&5 |
| 5765 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5767 | (exit $ac_status); }; }; then |
| 5768 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5769 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5770 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5772 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5773 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5774 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5775 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5776 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5777 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5778 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5779 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 5780 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5781 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5782 | #define HAVE_LIBXPG4 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5783 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5784 | |
| 5785 | LIBS="-lxpg4 $LIBS" |
| 5786 | |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 5787 | fi |
| 5788 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5789 | |
| 5790 | echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5791 | echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6 |
| 5792 | if test "${ac_cv_lib_mmap_mmap+set}" = set; then |
| 5793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5794 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5795 | ac_check_lib_save_LIBS=$LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5796 | LIBS="-lmmap $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5797 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5798 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5799 | /* confdefs.h. */ |
| 5800 | _ACEOF |
| 5801 | cat confdefs.h >>conftest.$ac_ext |
| 5802 | cat >>conftest.$ac_ext <<_ACEOF |
| 5803 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5804 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5805 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5806 | #ifdef __cplusplus |
| 5807 | extern "C" |
| 5808 | #endif |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5809 | /* 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] | 5810 | builtin and then its argument prototype would still apply. */ |
| 5811 | char mmap (); |
| 5812 | int |
| 5813 | main () |
| 5814 | { |
| 5815 | mmap (); |
| 5816 | ; |
| 5817 | return 0; |
| 5818 | } |
| 5819 | _ACEOF |
| 5820 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5822 | (eval $ac_link) 2>&5 |
| 5823 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5825 | (exit $ac_status); } && |
| 5826 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5828 | (eval $ac_try) 2>&5 |
| 5829 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5831 | (exit $ac_status); }; }; then |
| 5832 | ac_cv_lib_mmap_mmap=yes |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5833 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5834 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5835 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5836 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5837 | ac_cv_lib_mmap_mmap=no |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5838 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5839 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5840 | LIBS=$ac_check_lib_save_LIBS |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5841 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5842 | echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5843 | echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6 |
| 5844 | if test $ac_cv_lib_mmap_mmap = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5845 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5846 | #define HAVE_LIBMMAP 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5847 | _ACEOF |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5848 | |
| 5849 | LIBS="-lmmap $LIBS" |
| 5850 | |
Alexandre Julliard | 0e7bd08 | 1999-05-02 11:46:02 +0000 | [diff] [blame] | 5851 | fi |
| 5852 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5853 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 5854 | JPEGLIB="" |
Alexandre Julliard | 562089b | 2001-12-31 22:28:35 +0000 | [diff] [blame] | 5855 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 5856 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 5857 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 5858 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 5859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5860 | else |
| 5861 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 5862 | then ac_cv_prog_egrep='grep -E' |
| 5863 | else ac_cv_prog_egrep='egrep' |
| 5864 | fi |
| 5865 | fi |
| 5866 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 5867 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 5868 | EGREP=$ac_cv_prog_egrep |
| 5869 | |
| 5870 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5871 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5872 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5873 | if test "${ac_cv_header_stdc+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5875 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5876 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5877 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5878 | /* confdefs.h. */ |
| 5879 | _ACEOF |
| 5880 | cat confdefs.h >>conftest.$ac_ext |
| 5881 | cat >>conftest.$ac_ext <<_ACEOF |
| 5882 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5883 | #include <stdlib.h> |
| 5884 | #include <stdarg.h> |
| 5885 | #include <string.h> |
| 5886 | #include <float.h> |
| 5887 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5888 | int |
| 5889 | main () |
| 5890 | { |
| 5891 | |
| 5892 | ; |
| 5893 | return 0; |
| 5894 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5895 | _ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5896 | rm -f conftest.$ac_objext |
| 5897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5898 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5899 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5901 | (exit $ac_status); } && |
| 5902 | { ac_try='test -s conftest.$ac_objext' |
| 5903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5904 | (eval $ac_try) 2>&5 |
| 5905 | ac_status=$? |
| 5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5907 | (exit $ac_status); }; }; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5908 | ac_cv_header_stdc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 5909 | else |
| 5910 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5911 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5912 | |
| 5913 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5914 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5915 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5916 | |
| 5917 | if test $ac_cv_header_stdc = yes; then |
| 5918 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5919 | cat >conftest.$ac_ext <<_ACEOF |
| 5920 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5921 | /* confdefs.h. */ |
| 5922 | _ACEOF |
| 5923 | cat confdefs.h >>conftest.$ac_ext |
| 5924 | cat >>conftest.$ac_ext <<_ACEOF |
| 5925 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5926 | #include <string.h> |
| 5927 | |
| 5928 | _ACEOF |
| 5929 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 5930 | $EGREP "memchr" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5931 | : |
| 5932 | else |
| 5933 | ac_cv_header_stdc=no |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 5934 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5935 | rm -f conftest* |
| 5936 | |
| 5937 | fi |
| 5938 | |
| 5939 | if test $ac_cv_header_stdc = yes; then |
| 5940 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5941 | cat >conftest.$ac_ext <<_ACEOF |
| 5942 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5943 | /* confdefs.h. */ |
| 5944 | _ACEOF |
| 5945 | cat confdefs.h >>conftest.$ac_ext |
| 5946 | cat >>conftest.$ac_ext <<_ACEOF |
| 5947 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5948 | #include <stdlib.h> |
| 5949 | |
| 5950 | _ACEOF |
| 5951 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 5952 | $EGREP "free" >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5953 | : |
| 5954 | else |
| 5955 | ac_cv_header_stdc=no |
| 5956 | fi |
| 5957 | rm -f conftest* |
| 5958 | |
| 5959 | fi |
| 5960 | |
| 5961 | if test $ac_cv_header_stdc = yes; then |
| 5962 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5963 | if test "$cross_compiling" = yes; then |
| 5964 | : |
| 5965 | else |
| 5966 | cat >conftest.$ac_ext <<_ACEOF |
| 5967 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5968 | /* confdefs.h. */ |
| 5969 | _ACEOF |
| 5970 | cat confdefs.h >>conftest.$ac_ext |
| 5971 | cat >>conftest.$ac_ext <<_ACEOF |
| 5972 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5973 | #include <ctype.h> |
| 5974 | #if ((' ' & 0x0FF) == 0x020) |
| 5975 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5976 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5977 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 5978 | # define ISLOWER(c) \ |
| 5979 | (('a' <= (c) && (c) <= 'i') \ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 5980 | || ('j' <= (c) && (c) <= 'r') \ |
| 5981 | || ('s' <= (c) && (c) <= 'z')) |
| 5982 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5983 | #endif |
| 5984 | |
| 5985 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5986 | int |
| 5987 | main () |
| 5988 | { |
| 5989 | int i; |
| 5990 | for (i = 0; i < 256; i++) |
| 5991 | if (XOR (islower (i), ISLOWER (i)) |
| 5992 | || toupper (i) != TOUPPER (i)) |
| 5993 | exit(2); |
| 5994 | exit (0); |
| 5995 | } |
| 5996 | _ACEOF |
| 5997 | rm -f conftest$ac_exeext |
| 5998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5999 | (eval $ac_link) 2>&5 |
| 6000 | ac_status=$? |
| 6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6002 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6004 | (eval $ac_try) 2>&5 |
| 6005 | ac_status=$? |
| 6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6007 | (exit $ac_status); }; }; then |
| 6008 | : |
| 6009 | else |
| 6010 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6011 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6013 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6014 | ( exit $ac_status ) |
| 6015 | ac_cv_header_stdc=no |
| 6016 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6017 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6018 | fi |
| 6019 | fi |
| 6020 | fi |
| 6021 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 6022 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 6023 | if test $ac_cv_header_stdc = yes; then |
| 6024 | |
| 6025 | cat >>confdefs.h <<\_ACEOF |
| 6026 | #define STDC_HEADERS 1 |
| 6027 | _ACEOF |
| 6028 | |
| 6029 | fi |
| 6030 | |
| 6031 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6032 | |
| 6033 | |
| 6034 | |
| 6035 | |
| 6036 | |
| 6037 | |
| 6038 | |
| 6039 | |
| 6040 | |
| 6041 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6042 | inttypes.h stdint.h unistd.h |
| 6043 | do |
| 6044 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6045 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6046 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6047 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6049 | else |
| 6050 | cat >conftest.$ac_ext <<_ACEOF |
| 6051 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6052 | /* confdefs.h. */ |
| 6053 | _ACEOF |
| 6054 | cat confdefs.h >>conftest.$ac_ext |
| 6055 | cat >>conftest.$ac_ext <<_ACEOF |
| 6056 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6057 | $ac_includes_default |
| 6058 | |
| 6059 | #include <$ac_header> |
| 6060 | _ACEOF |
| 6061 | rm -f conftest.$ac_objext |
| 6062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6063 | (eval $ac_compile) 2>&5 |
| 6064 | ac_status=$? |
| 6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6066 | (exit $ac_status); } && |
| 6067 | { ac_try='test -s conftest.$ac_objext' |
| 6068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6069 | (eval $ac_try) 2>&5 |
| 6070 | ac_status=$? |
| 6071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6072 | (exit $ac_status); }; }; then |
| 6073 | eval "$as_ac_Header=yes" |
| 6074 | else |
| 6075 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6077 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6078 | eval "$as_ac_Header=no" |
| 6079 | fi |
| 6080 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6081 | fi |
| 6082 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6083 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6084 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6085 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6086 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6087 | _ACEOF |
| 6088 | |
| 6089 | fi |
| 6090 | |
| 6091 | done |
| 6092 | |
| 6093 | |
| 6094 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6095 | for ac_header in jpeglib.h |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6096 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6097 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6098 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6099 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6100 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6101 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6103 | fi |
| 6104 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6105 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6106 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6107 | # Is the header compilable? |
| 6108 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6109 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6110 | cat >conftest.$ac_ext <<_ACEOF |
| 6111 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6112 | /* confdefs.h. */ |
| 6113 | _ACEOF |
| 6114 | cat confdefs.h >>conftest.$ac_ext |
| 6115 | cat >>conftest.$ac_ext <<_ACEOF |
| 6116 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6117 | $ac_includes_default |
| 6118 | #include <$ac_header> |
| 6119 | _ACEOF |
| 6120 | rm -f conftest.$ac_objext |
| 6121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6122 | (eval $ac_compile) 2>&5 |
| 6123 | ac_status=$? |
| 6124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6125 | (exit $ac_status); } && |
| 6126 | { ac_try='test -s conftest.$ac_objext' |
| 6127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6128 | (eval $ac_try) 2>&5 |
| 6129 | ac_status=$? |
| 6130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6131 | (exit $ac_status); }; }; then |
| 6132 | ac_header_compiler=yes |
| 6133 | else |
| 6134 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6135 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6136 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6137 | ac_header_compiler=no |
| 6138 | fi |
| 6139 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6140 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6141 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6142 | |
| 6143 | # Is the header present? |
| 6144 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6145 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6146 | cat >conftest.$ac_ext <<_ACEOF |
| 6147 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6148 | /* confdefs.h. */ |
| 6149 | _ACEOF |
| 6150 | cat confdefs.h >>conftest.$ac_ext |
| 6151 | cat >>conftest.$ac_ext <<_ACEOF |
| 6152 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6153 | #include <$ac_header> |
| 6154 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6155 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6156 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6157 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6158 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6159 | rm -f conftest.er1 |
| 6160 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6162 | (exit $ac_status); } >/dev/null; then |
| 6163 | if test -s conftest.err; then |
| 6164 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6165 | else |
| 6166 | ac_cpp_err= |
| 6167 | fi |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6168 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6169 | ac_cpp_err=yes |
| 6170 | fi |
| 6171 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6172 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6173 | else |
| 6174 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6175 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6176 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6177 | ac_header_preproc=no |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6178 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6179 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6180 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6181 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6182 | |
| 6183 | # So? What about this header? |
| 6184 | case $ac_header_compiler:$ac_header_preproc in |
| 6185 | yes:no ) |
| 6186 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6187 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6188 | { 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] | 6189 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6190 | ( |
| 6191 | cat <<\_ASBOX |
| 6192 | ## ------------------------------------ ## |
| 6193 | ## Report this to bug-autoconf@gnu.org. ## |
| 6194 | ## ------------------------------------ ## |
| 6195 | _ASBOX |
| 6196 | ) | |
| 6197 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6198 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6199 | no:yes ) |
| 6200 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6201 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6202 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6203 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6204 | { 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] | 6205 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6206 | ( |
| 6207 | cat <<\_ASBOX |
| 6208 | ## ------------------------------------ ## |
| 6209 | ## Report this to bug-autoconf@gnu.org. ## |
| 6210 | ## ------------------------------------ ## |
| 6211 | _ASBOX |
| 6212 | ) | |
| 6213 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6214 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6215 | esac |
| 6216 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6217 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6218 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6220 | else |
| 6221 | eval "$as_ac_Header=$ac_header_preproc" |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6222 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6224 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6225 | |
| 6226 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6227 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6228 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6229 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6230 | _ACEOF |
| 6231 | echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6232 | echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6 |
| 6233 | if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then |
| 6234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6235 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6236 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6237 | LIBS="-ljpeg $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6238 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6239 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6240 | /* confdefs.h. */ |
| 6241 | _ACEOF |
| 6242 | cat confdefs.h >>conftest.$ac_ext |
| 6243 | cat >>conftest.$ac_ext <<_ACEOF |
| 6244 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6245 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6246 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6247 | #ifdef __cplusplus |
| 6248 | extern "C" |
| 6249 | #endif |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6250 | /* 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] | 6251 | builtin and then its argument prototype would still apply. */ |
| 6252 | char jpeg_start_decompress (); |
| 6253 | int |
| 6254 | main () |
| 6255 | { |
| 6256 | jpeg_start_decompress (); |
| 6257 | ; |
| 6258 | return 0; |
| 6259 | } |
| 6260 | _ACEOF |
| 6261 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6263 | (eval $ac_link) 2>&5 |
| 6264 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6266 | (exit $ac_status); } && |
| 6267 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6269 | (eval $ac_try) 2>&5 |
| 6270 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6272 | (exit $ac_status); }; }; then |
| 6273 | ac_cv_lib_jpeg_jpeg_start_decompress=yes |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6274 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6275 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6277 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6278 | ac_cv_lib_jpeg_jpeg_start_decompress=no |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6279 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6280 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6281 | LIBS=$ac_check_lib_save_LIBS |
| 6282 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6283 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6284 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6 |
| 6285 | if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6286 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6287 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6288 | #define HAVE_LIBJPEG 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6289 | _ACEOF |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6290 | |
| 6291 | JPEGLIB="-ljpeg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6292 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6293 | fi |
| 6294 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6295 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6296 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6297 | |
Marcus Meissner | 252b0fe | 2001-08-06 18:52:14 +0000 | [diff] [blame] | 6298 | done |
| 6299 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6300 | |
| 6301 | |
| 6302 | |
| 6303 | |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 6304 | XFILES="" |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 6305 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 6306 | OPENGLFILES="" |
| 6307 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 6308 | GLU32FILES="" |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 6309 | |
| 6310 | OPENGL_LIBS="" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6311 | if test "$have_x" = "yes" |
| 6312 | then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6313 | XLIB="-lXext -lX11" |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 6314 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 6315 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 6316 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6317 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6318 | for ac_header in X11/Xlib.h |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6319 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6320 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6321 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6322 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6323 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6324 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6326 | fi |
| 6327 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6328 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6329 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6330 | # Is the header compilable? |
| 6331 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6332 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6333 | cat >conftest.$ac_ext <<_ACEOF |
| 6334 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6335 | /* confdefs.h. */ |
| 6336 | _ACEOF |
| 6337 | cat confdefs.h >>conftest.$ac_ext |
| 6338 | cat >>conftest.$ac_ext <<_ACEOF |
| 6339 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6340 | $ac_includes_default |
| 6341 | #include <$ac_header> |
| 6342 | _ACEOF |
| 6343 | rm -f conftest.$ac_objext |
| 6344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6345 | (eval $ac_compile) 2>&5 |
| 6346 | ac_status=$? |
| 6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6348 | (exit $ac_status); } && |
| 6349 | { ac_try='test -s conftest.$ac_objext' |
| 6350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6351 | (eval $ac_try) 2>&5 |
| 6352 | ac_status=$? |
| 6353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6354 | (exit $ac_status); }; }; then |
| 6355 | ac_header_compiler=yes |
| 6356 | else |
| 6357 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6359 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6360 | ac_header_compiler=no |
| 6361 | fi |
| 6362 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6363 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6364 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6365 | |
| 6366 | # Is the header present? |
| 6367 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6368 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6369 | cat >conftest.$ac_ext <<_ACEOF |
| 6370 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6371 | /* confdefs.h. */ |
| 6372 | _ACEOF |
| 6373 | cat confdefs.h >>conftest.$ac_ext |
| 6374 | cat >>conftest.$ac_ext <<_ACEOF |
| 6375 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6376 | #include <$ac_header> |
| 6377 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6378 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6379 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6380 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 6381 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6382 | rm -f conftest.er1 |
| 6383 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6385 | (exit $ac_status); } >/dev/null; then |
| 6386 | if test -s conftest.err; then |
| 6387 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6388 | else |
| 6389 | ac_cpp_err= |
| 6390 | fi |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6391 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6392 | ac_cpp_err=yes |
| 6393 | fi |
| 6394 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6395 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6396 | else |
| 6397 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6399 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6400 | ac_header_preproc=no |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6401 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6402 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6403 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6404 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6405 | |
| 6406 | # So? What about this header? |
| 6407 | case $ac_header_compiler:$ac_header_preproc in |
| 6408 | yes:no ) |
| 6409 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6410 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6411 | { 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] | 6412 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6413 | ( |
| 6414 | cat <<\_ASBOX |
| 6415 | ## ------------------------------------ ## |
| 6416 | ## Report this to bug-autoconf@gnu.org. ## |
| 6417 | ## ------------------------------------ ## |
| 6418 | _ASBOX |
| 6419 | ) | |
| 6420 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6421 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6422 | no:yes ) |
| 6423 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6424 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6425 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6426 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6427 | { 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] | 6428 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6429 | ( |
| 6430 | cat <<\_ASBOX |
| 6431 | ## ------------------------------------ ## |
| 6432 | ## Report this to bug-autoconf@gnu.org. ## |
| 6433 | ## ------------------------------------ ## |
| 6434 | _ASBOX |
| 6435 | ) | |
| 6436 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6437 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6438 | esac |
| 6439 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6440 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6441 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6443 | else |
| 6444 | eval "$as_ac_Header=$ac_header_preproc" |
Lionel Ulmer | a1d6d24 | 1999-01-30 15:54:43 +0000 | [diff] [blame] | 6445 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6446 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6447 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6448 | |
| 6449 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6450 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6451 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6452 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6453 | _ACEOF |
| 6454 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6455 | |
| 6456 | for ac_header in X11/XKBlib.h |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6457 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6458 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6459 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6460 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6461 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6463 | else |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6464 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6465 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6466 | /* confdefs.h. */ |
| 6467 | _ACEOF |
| 6468 | cat confdefs.h >>conftest.$ac_ext |
| 6469 | cat >>conftest.$ac_ext <<_ACEOF |
| 6470 | /* end confdefs.h. */ |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6471 | #include <X11/Xlib.h> |
| 6472 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6473 | #include <$ac_header> |
| 6474 | _ACEOF |
| 6475 | rm -f conftest.$ac_objext |
| 6476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6477 | (eval $ac_compile) 2>&5 |
| 6478 | ac_status=$? |
| 6479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6480 | (exit $ac_status); } && |
| 6481 | { ac_try='test -s conftest.$ac_objext' |
| 6482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6483 | (eval $ac_try) 2>&5 |
| 6484 | ac_status=$? |
| 6485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6486 | (exit $ac_status); }; }; then |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6487 | eval "$as_ac_Header=yes" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6488 | else |
| 6489 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6490 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6491 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6492 | eval "$as_ac_Header=no" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6493 | fi |
| 6494 | rm -f conftest.$ac_objext conftest.$ac_ext |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6495 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6496 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6497 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6498 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6499 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6500 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6501 | _ACEOF |
| 6502 | echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6503 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6 |
| 6504 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
| 6505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6506 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6507 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6508 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6509 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6510 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6511 | /* confdefs.h. */ |
| 6512 | _ACEOF |
| 6513 | cat confdefs.h >>conftest.$ac_ext |
| 6514 | cat >>conftest.$ac_ext <<_ACEOF |
| 6515 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6516 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6517 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6518 | #ifdef __cplusplus |
| 6519 | extern "C" |
| 6520 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6521 | /* 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] | 6522 | builtin and then its argument prototype would still apply. */ |
| 6523 | char XkbQueryExtension (); |
| 6524 | int |
| 6525 | main () |
| 6526 | { |
| 6527 | XkbQueryExtension (); |
| 6528 | ; |
| 6529 | return 0; |
| 6530 | } |
| 6531 | _ACEOF |
| 6532 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6533 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6534 | (eval $ac_link) 2>&5 |
| 6535 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6537 | (exit $ac_status); } && |
| 6538 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6540 | (eval $ac_try) 2>&5 |
| 6541 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6543 | (exit $ac_status); }; }; then |
| 6544 | ac_cv_lib_X11_XkbQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6545 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6546 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6548 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6549 | ac_cv_lib_X11_XkbQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6550 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6551 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6552 | LIBS=$ac_check_lib_save_LIBS |
| 6553 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6554 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6555 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6 |
| 6556 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6557 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6558 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6559 | #define HAVE_XKB 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6560 | _ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6561 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6562 | fi |
| 6563 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6564 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6565 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6566 | { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6567 | echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;} |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6568 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6569 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6570 | done |
| 6571 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6572 | |
| 6573 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6574 | for ac_header in X11/extensions/XShm.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6575 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6576 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6577 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6578 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6579 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6581 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6582 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6583 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6584 | /* confdefs.h. */ |
| 6585 | _ACEOF |
| 6586 | cat confdefs.h >>conftest.$ac_ext |
| 6587 | cat >>conftest.$ac_ext <<_ACEOF |
| 6588 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6589 | #include <X11/Xlib.h> |
| 6590 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6591 | #include <$ac_header> |
| 6592 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6593 | rm -f conftest.$ac_objext |
| 6594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6595 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6596 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6598 | (exit $ac_status); } && |
| 6599 | { ac_try='test -s conftest.$ac_objext' |
| 6600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6601 | (eval $ac_try) 2>&5 |
| 6602 | ac_status=$? |
| 6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6604 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6605 | eval "$as_ac_Header=yes" |
| 6606 | else |
| 6607 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6609 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6610 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6611 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6612 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6613 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6614 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6615 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6616 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6617 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6618 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6619 | _ACEOF |
| 6620 | echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6621 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6 |
| 6622 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
| 6623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6624 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6625 | ac_check_lib_save_LIBS=$LIBS |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6626 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6627 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6628 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6629 | /* confdefs.h. */ |
| 6630 | _ACEOF |
| 6631 | cat confdefs.h >>conftest.$ac_ext |
| 6632 | cat >>conftest.$ac_ext <<_ACEOF |
| 6633 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6634 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6635 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6636 | #ifdef __cplusplus |
| 6637 | extern "C" |
| 6638 | #endif |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6639 | /* 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] | 6640 | builtin and then its argument prototype would still apply. */ |
| 6641 | char XShmQueryExtension (); |
| 6642 | int |
| 6643 | main () |
| 6644 | { |
| 6645 | XShmQueryExtension (); |
| 6646 | ; |
| 6647 | return 0; |
| 6648 | } |
| 6649 | _ACEOF |
| 6650 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6652 | (eval $ac_link) 2>&5 |
| 6653 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6655 | (exit $ac_status); } && |
| 6656 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6658 | (eval $ac_try) 2>&5 |
| 6659 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6661 | (exit $ac_status); }; }; then |
| 6662 | ac_cv_lib_Xext_XShmQueryExtension=yes |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6663 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6664 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6665 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6666 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6667 | ac_cv_lib_Xext_XShmQueryExtension=no |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6668 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6669 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6670 | LIBS=$ac_check_lib_save_LIBS |
| 6671 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6672 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6673 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6 |
| 6674 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6675 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6676 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6677 | #define HAVE_LIBXXSHM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6678 | _ACEOF |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6679 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6680 | fi |
| 6681 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6682 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6683 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6684 | { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6685 | echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;} |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6686 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6687 | |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6688 | done |
| 6689 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6690 | |
| 6691 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6692 | for ac_header in X11/Xutil.h |
| 6693 | do |
| 6694 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6695 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6696 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6697 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6699 | else |
| 6700 | cat >conftest.$ac_ext <<_ACEOF |
| 6701 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6702 | /* confdefs.h. */ |
| 6703 | _ACEOF |
| 6704 | cat confdefs.h >>conftest.$ac_ext |
| 6705 | cat >>conftest.$ac_ext <<_ACEOF |
| 6706 | /* end confdefs.h. */ |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6707 | #include <X11/Xlib.h> |
| 6708 | |
| 6709 | #include <$ac_header> |
| 6710 | _ACEOF |
| 6711 | rm -f conftest.$ac_objext |
| 6712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6713 | (eval $ac_compile) 2>&5 |
| 6714 | ac_status=$? |
| 6715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6716 | (exit $ac_status); } && |
| 6717 | { ac_try='test -s conftest.$ac_objext' |
| 6718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6719 | (eval $ac_try) 2>&5 |
| 6720 | ac_status=$? |
| 6721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6722 | (exit $ac_status); }; }; then |
| 6723 | eval "$as_ac_Header=yes" |
| 6724 | else |
| 6725 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6726 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6727 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6728 | eval "$as_ac_Header=no" |
| 6729 | fi |
| 6730 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6731 | fi |
| 6732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6734 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6735 | cat >>confdefs.h <<_ACEOF |
| 6736 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6737 | _ACEOF |
| 6738 | |
| 6739 | fi |
| 6740 | |
| 6741 | done |
| 6742 | |
| 6743 | |
| 6744 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6745 | for ac_header in X11/extensions/shape.h |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6746 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6747 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6748 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6749 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6750 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6752 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6753 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6754 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6755 | /* confdefs.h. */ |
| 6756 | _ACEOF |
| 6757 | cat confdefs.h >>conftest.$ac_ext |
| 6758 | cat >>conftest.$ac_ext <<_ACEOF |
| 6759 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6760 | #include <X11/Xlib.h> |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 6761 | #ifdef HAVE_X11_XUTIL_H |
| 6762 | # include <X11/Xutil.h> |
| 6763 | #endif |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6764 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6765 | #include <$ac_header> |
| 6766 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6767 | rm -f conftest.$ac_objext |
| 6768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6769 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6770 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6772 | (exit $ac_status); } && |
| 6773 | { ac_try='test -s conftest.$ac_objext' |
| 6774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6775 | (eval $ac_try) 2>&5 |
| 6776 | ac_status=$? |
| 6777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6778 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6779 | eval "$as_ac_Header=yes" |
| 6780 | else |
| 6781 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6782 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6783 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6784 | eval "$as_ac_Header=no" |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6785 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6786 | rm -f conftest.$ac_objext conftest.$ac_ext |
Francois Jacques | 5b6879c | 2000-07-28 23:04:54 +0000 | [diff] [blame] | 6787 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6789 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6790 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6791 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6792 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6793 | _ACEOF |
| 6794 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6795 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 6796 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 6797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6798 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6799 | ac_check_lib_save_LIBS=$LIBS |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6800 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6801 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6802 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6803 | /* confdefs.h. */ |
| 6804 | _ACEOF |
| 6805 | cat confdefs.h >>conftest.$ac_ext |
| 6806 | cat >>conftest.$ac_ext <<_ACEOF |
| 6807 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6808 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6809 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6810 | #ifdef __cplusplus |
| 6811 | extern "C" |
| 6812 | #endif |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6813 | /* 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] | 6814 | builtin and then its argument prototype would still apply. */ |
| 6815 | char XShapeQueryExtension (); |
| 6816 | int |
| 6817 | main () |
| 6818 | { |
| 6819 | XShapeQueryExtension (); |
| 6820 | ; |
| 6821 | return 0; |
| 6822 | } |
| 6823 | _ACEOF |
| 6824 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6826 | (eval $ac_link) 2>&5 |
| 6827 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6829 | (exit $ac_status); } && |
| 6830 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6832 | (eval $ac_try) 2>&5 |
| 6833 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6835 | (exit $ac_status); }; }; then |
| 6836 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6837 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6838 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6840 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6841 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6842 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6843 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6844 | LIBS=$ac_check_lib_save_LIBS |
| 6845 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6846 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6847 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 6848 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6849 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6850 | cat >>confdefs.h <<\_ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6851 | #define HAVE_LIBXSHAPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6852 | _ACEOF |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6853 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6854 | fi |
| 6855 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6856 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6857 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6858 | { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6859 | echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;} |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6860 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6861 | |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6862 | done |
| 6863 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6864 | |
| 6865 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6866 | for ac_header in X11/extensions/xf86dga.h |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6867 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6868 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6869 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6871 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6873 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6874 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6875 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6876 | /* confdefs.h. */ |
| 6877 | _ACEOF |
| 6878 | cat confdefs.h >>conftest.$ac_ext |
| 6879 | cat >>conftest.$ac_ext <<_ACEOF |
| 6880 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6881 | #include <X11/Xlib.h> |
| 6882 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6883 | #include <$ac_header> |
| 6884 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6885 | rm -f conftest.$ac_objext |
| 6886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6887 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6888 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6890 | (exit $ac_status); } && |
| 6891 | { ac_try='test -s conftest.$ac_objext' |
| 6892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6893 | (eval $ac_try) 2>&5 |
| 6894 | ac_status=$? |
| 6895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6896 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6897 | eval "$as_ac_Header=yes" |
| 6898 | else |
| 6899 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6901 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6902 | eval "$as_ac_Header=no" |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6903 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6904 | rm -f conftest.$ac_objext conftest.$ac_ext |
Ove Kaaven | c90fb25 | 2001-01-02 22:39:14 +0000 | [diff] [blame] | 6905 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6906 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6907 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6908 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6909 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6910 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6911 | _ACEOF |
| 6912 | echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6913 | echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 6914 | if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then |
| 6915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6916 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6917 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 6918 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6919 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6920 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6921 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6922 | /* confdefs.h. */ |
| 6923 | _ACEOF |
| 6924 | cat confdefs.h >>conftest.$ac_ext |
| 6925 | cat >>conftest.$ac_ext <<_ACEOF |
| 6926 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6927 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6928 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6929 | #ifdef __cplusplus |
| 6930 | extern "C" |
| 6931 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 6932 | /* 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] | 6933 | builtin and then its argument prototype would still apply. */ |
| 6934 | char XDGAQueryExtension (); |
| 6935 | int |
| 6936 | main () |
| 6937 | { |
| 6938 | XDGAQueryExtension (); |
| 6939 | ; |
| 6940 | return 0; |
| 6941 | } |
| 6942 | _ACEOF |
| 6943 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6945 | (eval $ac_link) 2>&5 |
| 6946 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6948 | (exit $ac_status); } && |
| 6949 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6951 | (eval $ac_try) 2>&5 |
| 6952 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6954 | (exit $ac_status); }; }; then |
| 6955 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6956 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6957 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6959 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6960 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=no |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6961 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6962 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6963 | LIBS=$ac_check_lib_save_LIBS |
| 6964 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6965 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6966 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6 |
| 6967 | if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6968 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6969 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6970 | #define HAVE_LIBXXF86DGA2 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6971 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 6972 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6973 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6974 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6975 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6976 | echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6977 | echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
| 6978 | if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then |
| 6979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6980 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6981 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 6982 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 6983 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6984 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 6985 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 6986 | /* confdefs.h. */ |
| 6987 | _ACEOF |
| 6988 | cat confdefs.h >>conftest.$ac_ext |
| 6989 | cat >>conftest.$ac_ext <<_ACEOF |
| 6990 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6991 | |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6992 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 6993 | #ifdef __cplusplus |
| 6994 | extern "C" |
| 6995 | #endif |
Lionel Ulmer | d94475b | 1999-09-20 18:42:46 +0000 | [diff] [blame] | 6996 | /* 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] | 6997 | builtin and then its argument prototype would still apply. */ |
| 6998 | char XF86DGAQueryExtension (); |
| 6999 | int |
| 7000 | main () |
| 7001 | { |
| 7002 | XF86DGAQueryExtension (); |
| 7003 | ; |
| 7004 | return 0; |
| 7005 | } |
| 7006 | _ACEOF |
| 7007 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7009 | (eval $ac_link) 2>&5 |
| 7010 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7012 | (exit $ac_status); } && |
| 7013 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7015 | (eval $ac_try) 2>&5 |
| 7016 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7018 | (exit $ac_status); }; }; then |
| 7019 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7020 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7021 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7023 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7024 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7025 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7026 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7027 | LIBS=$ac_check_lib_save_LIBS |
| 7028 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7029 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7030 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6 |
| 7031 | if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7032 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7033 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7034 | #define HAVE_LIBXXF86DGA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7035 | _ACEOF |
Marcus Meissner | 10ad97c | 2000-04-09 14:30:50 +0000 | [diff] [blame] | 7036 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7037 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7038 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7039 | fi |
| 7040 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7041 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7042 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7043 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7044 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7045 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7046 | { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7047 | echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;} |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7048 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7049 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7050 | done |
| 7051 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7052 | |
| 7053 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7054 | for ac_header in X11/extensions/xf86vmode.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7055 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7056 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7057 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7058 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7059 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7061 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7062 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7063 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7064 | /* confdefs.h. */ |
| 7065 | _ACEOF |
| 7066 | cat confdefs.h >>conftest.$ac_ext |
| 7067 | cat >>conftest.$ac_ext <<_ACEOF |
| 7068 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7069 | #include <X11/Xlib.h> |
| 7070 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7071 | #include <$ac_header> |
| 7072 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7073 | rm -f conftest.$ac_objext |
| 7074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7075 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7076 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7078 | (exit $ac_status); } && |
| 7079 | { ac_try='test -s conftest.$ac_objext' |
| 7080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7081 | (eval $ac_try) 2>&5 |
| 7082 | ac_status=$? |
| 7083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7084 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7085 | eval "$as_ac_Header=yes" |
| 7086 | else |
| 7087 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7088 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7089 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7090 | eval "$as_ac_Header=no" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7091 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7092 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7093 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7094 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7095 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7096 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7097 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7098 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7099 | _ACEOF |
| 7100 | echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7101 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6 |
| 7102 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
| 7103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7104 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7105 | ac_check_lib_save_LIBS=$LIBS |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7106 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 7107 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7108 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7109 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7110 | /* confdefs.h. */ |
| 7111 | _ACEOF |
| 7112 | cat confdefs.h >>conftest.$ac_ext |
| 7113 | cat >>conftest.$ac_ext <<_ACEOF |
| 7114 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7115 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7116 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7117 | #ifdef __cplusplus |
| 7118 | extern "C" |
| 7119 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7120 | /* 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] | 7121 | builtin and then its argument prototype would still apply. */ |
| 7122 | char XF86VidModeQueryExtension (); |
| 7123 | int |
| 7124 | main () |
| 7125 | { |
| 7126 | XF86VidModeQueryExtension (); |
| 7127 | ; |
| 7128 | return 0; |
| 7129 | } |
| 7130 | _ACEOF |
| 7131 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7133 | (eval $ac_link) 2>&5 |
| 7134 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7136 | (exit $ac_status); } && |
| 7137 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7139 | (eval $ac_try) 2>&5 |
| 7140 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7142 | (exit $ac_status); }; }; then |
| 7143 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7144 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7145 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7147 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7148 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7149 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7150 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7151 | LIBS=$ac_check_lib_save_LIBS |
| 7152 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7153 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7154 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6 |
| 7155 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7156 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7157 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7158 | #define HAVE_LIBXXF86VM 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7159 | _ACEOF |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7160 | |
| 7161 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7162 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7163 | fi |
| 7164 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7165 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7166 | else |
| 7167 | { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5 |
| 7168 | echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;} |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7169 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7170 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7171 | done |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7172 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7173 | |
| 7174 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7175 | for ac_header in X11/extensions/Xvlib.h |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7176 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7177 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7178 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7180 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7182 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7183 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7184 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7185 | /* confdefs.h. */ |
| 7186 | _ACEOF |
| 7187 | cat confdefs.h >>conftest.$ac_ext |
| 7188 | cat >>conftest.$ac_ext <<_ACEOF |
| 7189 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7190 | #include <X11/Xlib.h> |
| 7191 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7192 | #include <$ac_header> |
| 7193 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7194 | rm -f conftest.$ac_objext |
| 7195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7196 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7197 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7199 | (exit $ac_status); } && |
| 7200 | { ac_try='test -s conftest.$ac_objext' |
| 7201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7202 | (eval $ac_try) 2>&5 |
| 7203 | ac_status=$? |
| 7204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7205 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7206 | eval "$as_ac_Header=yes" |
| 7207 | else |
| 7208 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7210 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7211 | eval "$as_ac_Header=no" |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7212 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7213 | rm -f conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7214 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7215 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7216 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7217 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7218 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7219 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7220 | _ACEOF |
| 7221 | echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7222 | echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6 |
| 7223 | if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then |
| 7224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7225 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7226 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7227 | LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
| 7228 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7229 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7230 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7231 | /* confdefs.h. */ |
| 7232 | _ACEOF |
| 7233 | cat confdefs.h >>conftest.$ac_ext |
| 7234 | cat >>conftest.$ac_ext <<_ACEOF |
| 7235 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7236 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7237 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7238 | #ifdef __cplusplus |
| 7239 | extern "C" |
| 7240 | #endif |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7241 | /* 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] | 7242 | builtin and then its argument prototype would still apply. */ |
| 7243 | char XvShmCreateImage (); |
| 7244 | int |
| 7245 | main () |
| 7246 | { |
| 7247 | XvShmCreateImage (); |
| 7248 | ; |
| 7249 | return 0; |
| 7250 | } |
| 7251 | _ACEOF |
| 7252 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7254 | (eval $ac_link) 2>&5 |
| 7255 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7257 | (exit $ac_status); } && |
| 7258 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7260 | (eval $ac_try) 2>&5 |
| 7261 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7263 | (exit $ac_status); }; }; then |
| 7264 | ac_cv_lib_Xv_XvShmCreateImage=yes |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7265 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7266 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7268 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7269 | ac_cv_lib_Xv_XvShmCreateImage=no |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7270 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7271 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7272 | LIBS=$ac_check_lib_save_LIBS |
| 7273 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7274 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7275 | echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6 |
| 7276 | if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7277 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7278 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7279 | #define HAVE_XVIDEO 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7280 | _ACEOF |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7281 | |
| 7282 | X_PRE_LIBS="$X_PRE_LIBS -lXv" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7283 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7284 | fi |
| 7285 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7286 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7287 | else |
| 7288 | { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5 |
| 7289 | echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;} |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7290 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7291 | |
Lionel Ulmer | 3d2f32d | 2000-09-06 19:46:59 +0000 | [diff] [blame] | 7292 | done |
| 7293 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7294 | |
| 7295 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7296 | for ac_header in X11/extensions/Xrender.h |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7297 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7298 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7299 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7300 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7301 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7303 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7304 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7305 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7306 | /* confdefs.h. */ |
| 7307 | _ACEOF |
| 7308 | cat confdefs.h >>conftest.$ac_ext |
| 7309 | cat >>conftest.$ac_ext <<_ACEOF |
| 7310 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7311 | #include <X11/Xlib.h> |
| 7312 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7313 | #include <$ac_header> |
| 7314 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7315 | rm -f conftest.$ac_objext |
| 7316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7317 | (eval $ac_compile) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7318 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7320 | (exit $ac_status); } && |
| 7321 | { ac_try='test -s conftest.$ac_objext' |
| 7322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7323 | (eval $ac_try) 2>&5 |
| 7324 | ac_status=$? |
| 7325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7326 | (exit $ac_status); }; }; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7327 | eval "$as_ac_Header=yes" |
| 7328 | else |
| 7329 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7330 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7331 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7332 | eval "$as_ac_Header=no" |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7333 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7334 | rm -f conftest.$ac_objext conftest.$ac_ext |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7335 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7336 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7337 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7338 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7339 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7340 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7341 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7342 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7343 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7344 | |
Huw D M Davies | ff453fc | 2001-09-14 01:04:25 +0000 | [diff] [blame] | 7345 | done |
| 7346 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7347 | |
| 7348 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7349 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7350 | |
John R. Sheets | f2b77cc | 2000-05-23 21:18:51 +0000 | [diff] [blame] | 7351 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7352 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 7353 | if test "x$with_opengl" != "xno" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7354 | then |
Francois Gouget | 42dcd97 | 2002-01-29 17:52:28 +0000 | [diff] [blame] | 7355 | 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] | 7356 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7357 | { { 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] | 7358 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
| 7359 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. |
| 7360 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} |
| 7361 | { (exit 1); exit 1; }; } |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 7362 | fi |
| 7363 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7364 | |
| 7365 | |
| 7366 | for ac_header in GL/gl.h GL/glx.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7367 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7368 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7369 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7370 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7374 | fi |
| 7375 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7376 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7377 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7378 | # Is the header compilable? |
| 7379 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7380 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7381 | cat >conftest.$ac_ext <<_ACEOF |
| 7382 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7383 | /* confdefs.h. */ |
| 7384 | _ACEOF |
| 7385 | cat confdefs.h >>conftest.$ac_ext |
| 7386 | cat >>conftest.$ac_ext <<_ACEOF |
| 7387 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7388 | $ac_includes_default |
| 7389 | #include <$ac_header> |
| 7390 | _ACEOF |
| 7391 | rm -f conftest.$ac_objext |
| 7392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7393 | (eval $ac_compile) 2>&5 |
| 7394 | ac_status=$? |
| 7395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7396 | (exit $ac_status); } && |
| 7397 | { ac_try='test -s conftest.$ac_objext' |
| 7398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7399 | (eval $ac_try) 2>&5 |
| 7400 | ac_status=$? |
| 7401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7402 | (exit $ac_status); }; }; then |
| 7403 | ac_header_compiler=yes |
| 7404 | else |
| 7405 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7407 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7408 | ac_header_compiler=no |
| 7409 | fi |
| 7410 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7411 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7412 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7413 | |
| 7414 | # Is the header present? |
| 7415 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7416 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7417 | cat >conftest.$ac_ext <<_ACEOF |
| 7418 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7419 | /* confdefs.h. */ |
| 7420 | _ACEOF |
| 7421 | cat confdefs.h >>conftest.$ac_ext |
| 7422 | cat >>conftest.$ac_ext <<_ACEOF |
| 7423 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7424 | #include <$ac_header> |
| 7425 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7426 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7427 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7428 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 7429 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7430 | rm -f conftest.er1 |
| 7431 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7433 | (exit $ac_status); } >/dev/null; then |
| 7434 | if test -s conftest.err; then |
| 7435 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7436 | else |
| 7437 | ac_cpp_err= |
| 7438 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7439 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7440 | ac_cpp_err=yes |
| 7441 | fi |
| 7442 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7443 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7444 | else |
| 7445 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7447 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7448 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7449 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7450 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7451 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7452 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7453 | |
| 7454 | # So? What about this header? |
| 7455 | case $ac_header_compiler:$ac_header_preproc in |
| 7456 | yes:no ) |
| 7457 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7458 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7459 | { 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] | 7460 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7461 | ( |
| 7462 | cat <<\_ASBOX |
| 7463 | ## ------------------------------------ ## |
| 7464 | ## Report this to bug-autoconf@gnu.org. ## |
| 7465 | ## ------------------------------------ ## |
| 7466 | _ASBOX |
| 7467 | ) | |
| 7468 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7469 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7470 | no:yes ) |
| 7471 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7472 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7473 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7474 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7475 | { 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] | 7476 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7477 | ( |
| 7478 | cat <<\_ASBOX |
| 7479 | ## ------------------------------------ ## |
| 7480 | ## Report this to bug-autoconf@gnu.org. ## |
| 7481 | ## ------------------------------------ ## |
| 7482 | _ASBOX |
| 7483 | ) | |
| 7484 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7485 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7486 | esac |
| 7487 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7488 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7489 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7491 | else |
| 7492 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7493 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7494 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7495 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7496 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7497 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7498 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7499 | cat >>confdefs.h <<_ACEOF |
| 7500 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7501 | _ACEOF |
| 7502 | |
| 7503 | fi |
| 7504 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7505 | done |
| 7506 | |
Marcus Meissner | 22a969b | 2000-08-08 20:46:50 +0000 | [diff] [blame] | 7507 | 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] | 7508 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7509 | |
| 7510 | for ac_header in GL/glext.h |
| 7511 | do |
| 7512 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7513 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7514 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7517 | else |
| 7518 | cat >conftest.$ac_ext <<_ACEOF |
| 7519 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7520 | /* confdefs.h. */ |
| 7521 | _ACEOF |
| 7522 | cat confdefs.h >>conftest.$ac_ext |
| 7523 | cat >>conftest.$ac_ext <<_ACEOF |
| 7524 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7525 | #include <GL/glx.h> |
| 7526 | |
| 7527 | #include <$ac_header> |
| 7528 | _ACEOF |
| 7529 | rm -f conftest.$ac_objext |
| 7530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7531 | (eval $ac_compile) 2>&5 |
| 7532 | ac_status=$? |
| 7533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7534 | (exit $ac_status); } && |
| 7535 | { ac_try='test -s conftest.$ac_objext' |
| 7536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7537 | (eval $ac_try) 2>&5 |
| 7538 | ac_status=$? |
| 7539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7540 | (exit $ac_status); }; }; then |
| 7541 | eval "$as_ac_Header=yes" |
| 7542 | else |
| 7543 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7545 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7546 | eval "$as_ac_Header=no" |
| 7547 | fi |
| 7548 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7549 | fi |
| 7550 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7551 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7552 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7553 | cat >>confdefs.h <<_ACEOF |
| 7554 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7555 | _ACEOF |
| 7556 | |
| 7557 | fi |
| 7558 | |
| 7559 | done |
| 7560 | |
| 7561 | echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7562 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6 |
| 7563 | if test "${wine_cv_opengl_version_OK+set}" = set; then |
| 7564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7565 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7566 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7567 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7568 | /* confdefs.h. */ |
| 7569 | _ACEOF |
| 7570 | cat confdefs.h >>conftest.$ac_ext |
| 7571 | cat >>conftest.$ac_ext <<_ACEOF |
| 7572 | /* end confdefs.h. */ |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7573 | #include <GL/gl.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7574 | int |
| 7575 | main () |
| 7576 | { |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7577 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7578 | ; |
| 7579 | return 0; |
| 7580 | } |
| 7581 | _ACEOF |
| 7582 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7584 | (eval $ac_compile) 2>&5 |
| 7585 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7587 | (exit $ac_status); } && |
| 7588 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7590 | (eval $ac_try) 2>&5 |
| 7591 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7593 | (exit $ac_status); }; }; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7594 | wine_cv_opengl_version_OK="yes" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7595 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7596 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7598 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7599 | wine_cv_opengl_version_OK="no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7600 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7601 | fi |
| 7602 | rm -f conftest.$ac_objext conftest.$ac_ext |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 7603 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7604 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7605 | echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7606 | echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6 |
| 7607 | |
Alexandre Julliard | b807499 | 2002-11-21 21:51:24 +0000 | [diff] [blame] | 7608 | if test "$wine_cv_opengl_version_OK" = "yes" |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7609 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7610 | echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7611 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6 |
| 7612 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
| 7613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7614 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7615 | ac_check_lib_save_LIBS=$LIBS |
Marcus Meissner | 376ec88 | 2000-01-05 03:24:52 +0000 | [diff] [blame] | 7616 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7617 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7618 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7619 | /* confdefs.h. */ |
| 7620 | _ACEOF |
| 7621 | cat confdefs.h >>conftest.$ac_ext |
| 7622 | cat >>conftest.$ac_ext <<_ACEOF |
| 7623 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7624 | |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7625 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7626 | #ifdef __cplusplus |
| 7627 | extern "C" |
| 7628 | #endif |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7629 | /* 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] | 7630 | builtin and then its argument prototype would still apply. */ |
| 7631 | char glXCreateContext (); |
| 7632 | int |
| 7633 | main () |
| 7634 | { |
| 7635 | glXCreateContext (); |
| 7636 | ; |
| 7637 | return 0; |
| 7638 | } |
| 7639 | _ACEOF |
| 7640 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7642 | (eval $ac_link) 2>&5 |
| 7643 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7645 | (exit $ac_status); } && |
| 7646 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7648 | (eval $ac_try) 2>&5 |
| 7649 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7651 | (exit $ac_status); }; }; then |
| 7652 | ac_cv_lib_GL_glXCreateContext=yes |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7653 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7654 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7656 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7657 | ac_cv_lib_GL_glXCreateContext=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7658 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7659 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7660 | LIBS=$ac_check_lib_save_LIBS |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7661 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7662 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7663 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6 |
| 7664 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 7665 | OPENGL_LIBS="-lGL" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7666 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7667 | fi |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7668 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7669 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 7670 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 7671 | then |
Lionel Ulmer | bd8ede1 | 2000-10-12 20:45:58 +0000 | [diff] [blame] | 7672 | OPENGLFILES='$(OPENGLFILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7673 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7674 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 7675 | #define HAVE_OPENGL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7676 | _ACEOF |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 7677 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7678 | |
| 7679 | echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7680 | echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6 |
| 7681 | if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then |
| 7682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7683 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7684 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7685 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7686 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7687 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7688 | /* confdefs.h. */ |
| 7689 | _ACEOF |
| 7690 | cat confdefs.h >>conftest.$ac_ext |
| 7691 | cat >>conftest.$ac_ext <<_ACEOF |
| 7692 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7693 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7694 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7695 | #ifdef __cplusplus |
| 7696 | extern "C" |
| 7697 | #endif |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7698 | /* 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] | 7699 | builtin and then its argument prototype would still apply. */ |
| 7700 | char glXGetProcAddressARB (); |
| 7701 | int |
| 7702 | main () |
| 7703 | { |
| 7704 | glXGetProcAddressARB (); |
| 7705 | ; |
| 7706 | return 0; |
| 7707 | } |
| 7708 | _ACEOF |
| 7709 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7711 | (eval $ac_link) 2>&5 |
| 7712 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7714 | (exit $ac_status); } && |
| 7715 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7717 | (eval $ac_try) 2>&5 |
| 7718 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7720 | (exit $ac_status); }; }; then |
| 7721 | ac_cv_lib_GL_glXGetProcAddressARB=yes |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7722 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7723 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7725 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7726 | ac_cv_lib_GL_glXGetProcAddressARB=no |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7727 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7728 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7729 | LIBS=$ac_check_lib_save_LIBS |
| 7730 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7731 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7732 | echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6 |
| 7733 | if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7734 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7735 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7736 | #define HAVE_GLX_GETPROCADDRESS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7737 | _ACEOF |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7738 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7739 | fi |
| 7740 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7741 | |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 7742 | if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes" |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7743 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7744 | echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7745 | echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6 |
| 7746 | if test "${wine_cv_extension_prototypes+set}" = set; then |
| 7747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7748 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7749 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7750 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7751 | /* confdefs.h. */ |
| 7752 | _ACEOF |
| 7753 | cat confdefs.h >>conftest.$ac_ext |
| 7754 | cat >>conftest.$ac_ext <<_ACEOF |
| 7755 | /* end confdefs.h. */ |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7756 | #include <GL/gl.h> |
Marcus Meissner | 6bb6d4c | 2000-08-09 22:21:08 +0000 | [diff] [blame] | 7757 | #ifdef HAVE_GL_GLEXT_H |
| 7758 | # include <GL/glext.h> |
| 7759 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7760 | |
| 7761 | int |
| 7762 | main () |
| 7763 | { |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7764 | PFNGLCOLORTABLEEXTPROC test_proc; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7765 | ; |
| 7766 | return 0; |
| 7767 | } |
| 7768 | _ACEOF |
| 7769 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7771 | (eval $ac_compile) 2>&5 |
| 7772 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7774 | (exit $ac_status); } && |
| 7775 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7777 | (eval $ac_try) 2>&5 |
| 7778 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7780 | (exit $ac_status); }; }; then |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 7781 | wine_cv_extension_prototypes="yes" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7782 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7783 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7785 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7786 | wine_cv_extension_prototypes="no" |
Lionel Ulmer | 1434d87 | 2000-07-23 14:23:31 +0000 | [diff] [blame] | 7787 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7788 | fi |
| 7789 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7790 | |
| 7791 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7792 | echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7793 | echo "${ECHO_T}$wine_cv_extension_prototypes" >&6 |
Alexandre Julliard | b508a1d | 2002-01-21 18:06:10 +0000 | [diff] [blame] | 7794 | if test "$wine_cv_extension_prototypes" = "yes" |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 7795 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7796 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7797 | cat >>confdefs.h <<\_ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 7798 | #define HAVE_GLEXT_PROTOTYPES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7799 | _ACEOF |
Lionel Ulmer | fe210ef | 2000-07-29 11:30:56 +0000 | [diff] [blame] | 7800 | |
| 7801 | fi |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 7802 | fi |
Alexandre Julliard | d6c0f9f | 2001-01-04 22:44:55 +0000 | [diff] [blame] | 7803 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7804 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7805 | echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7806 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6 |
| 7807 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
| 7808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7809 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7810 | ac_check_lib_save_LIBS=$LIBS |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 7811 | 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] | 7812 | $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7813 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7814 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7815 | /* confdefs.h. */ |
| 7816 | _ACEOF |
| 7817 | cat confdefs.h >>conftest.$ac_ext |
| 7818 | cat >>conftest.$ac_ext <<_ACEOF |
| 7819 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7820 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7821 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7822 | #ifdef __cplusplus |
| 7823 | extern "C" |
| 7824 | #endif |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7825 | /* 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] | 7826 | builtin and then its argument prototype would still apply. */ |
| 7827 | char gluLookAt (); |
| 7828 | int |
| 7829 | main () |
| 7830 | { |
| 7831 | gluLookAt (); |
| 7832 | ; |
| 7833 | return 0; |
| 7834 | } |
| 7835 | _ACEOF |
| 7836 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7838 | (eval $ac_link) 2>&5 |
| 7839 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7841 | (exit $ac_status); } && |
| 7842 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7844 | (eval $ac_try) 2>&5 |
| 7845 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7847 | (exit $ac_status); }; }; then |
| 7848 | ac_cv_lib_GLU_gluLookAt=yes |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7849 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7850 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7852 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7853 | ac_cv_lib_GLU_gluLookAt=no |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7854 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7855 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 7856 | LIBS=$ac_check_lib_save_LIBS |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7857 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 7858 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7859 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6 |
| 7860 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 7861 | OPENGL_LIBS="$OPENGL_LIBS -lGLU" |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7862 | GLU32FILES='$(GLU32FILES)' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 7863 | |
Marcus Meissner | b63ab44 | 2001-06-08 19:02:57 +0000 | [diff] [blame] | 7864 | fi |
| 7865 | |
Lionel Ulmer | fbc15b1 | 2000-04-29 14:23:22 +0000 | [diff] [blame] | 7866 | fi |
| 7867 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 7868 | fi |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 7869 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 7870 | NASLIBS="" |
| 7871 | |
| 7872 | |
| 7873 | for ac_header in audio/audiolib.h |
| 7874 | do |
| 7875 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7877 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7878 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7879 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7881 | fi |
| 7882 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7883 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7884 | else |
| 7885 | # Is the header compilable? |
| 7886 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7887 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7888 | cat >conftest.$ac_ext <<_ACEOF |
| 7889 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7890 | /* confdefs.h. */ |
| 7891 | _ACEOF |
| 7892 | cat confdefs.h >>conftest.$ac_ext |
| 7893 | cat >>conftest.$ac_ext <<_ACEOF |
| 7894 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 7895 | $ac_includes_default |
| 7896 | #include <$ac_header> |
| 7897 | _ACEOF |
| 7898 | rm -f conftest.$ac_objext |
| 7899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7900 | (eval $ac_compile) 2>&5 |
| 7901 | ac_status=$? |
| 7902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7903 | (exit $ac_status); } && |
| 7904 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 7910 | ac_header_compiler=yes |
| 7911 | else |
| 7912 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7914 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 7915 | ac_header_compiler=no |
| 7916 | fi |
| 7917 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7918 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7919 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7920 | |
| 7921 | # Is the header present? |
| 7922 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7923 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7924 | cat >conftest.$ac_ext <<_ACEOF |
| 7925 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7926 | /* confdefs.h. */ |
| 7927 | _ACEOF |
| 7928 | cat confdefs.h >>conftest.$ac_ext |
| 7929 | cat >>conftest.$ac_ext <<_ACEOF |
| 7930 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 7931 | #include <$ac_header> |
| 7932 | _ACEOF |
| 7933 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7934 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7935 | ac_status=$? |
| 7936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7937 | rm -f conftest.er1 |
| 7938 | cat conftest.err >&5 |
| 7939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7940 | (exit $ac_status); } >/dev/null; then |
| 7941 | if test -s conftest.err; then |
| 7942 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7943 | else |
| 7944 | ac_cpp_err= |
| 7945 | fi |
| 7946 | else |
| 7947 | ac_cpp_err=yes |
| 7948 | fi |
| 7949 | if test -z "$ac_cpp_err"; then |
| 7950 | ac_header_preproc=yes |
| 7951 | else |
| 7952 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 7953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7954 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 7955 | ac_header_preproc=no |
| 7956 | fi |
| 7957 | rm -f conftest.err conftest.$ac_ext |
| 7958 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7959 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7960 | |
| 7961 | # So? What about this header? |
| 7962 | case $ac_header_compiler:$ac_header_preproc in |
| 7963 | yes:no ) |
| 7964 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7965 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7966 | { 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] | 7967 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7968 | ( |
| 7969 | cat <<\_ASBOX |
| 7970 | ## ------------------------------------ ## |
| 7971 | ## Report this to bug-autoconf@gnu.org. ## |
| 7972 | ## ------------------------------------ ## |
| 7973 | _ASBOX |
| 7974 | ) | |
| 7975 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7976 | ;; |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 7977 | no:yes ) |
| 7978 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7979 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7980 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7981 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7982 | { 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] | 7983 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7984 | ( |
| 7985 | cat <<\_ASBOX |
| 7986 | ## ------------------------------------ ## |
| 7987 | ## Report this to bug-autoconf@gnu.org. ## |
| 7988 | ## ------------------------------------ ## |
| 7989 | _ASBOX |
| 7990 | ) | |
| 7991 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7992 | ;; |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 7993 | esac |
| 7994 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7996 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7998 | else |
| 7999 | eval "$as_ac_Header=$ac_header_preproc" |
| 8000 | fi |
| 8001 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8002 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8003 | |
| 8004 | fi |
| 8005 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8006 | cat >>confdefs.h <<_ACEOF |
| 8007 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8008 | _ACEOF |
| 8009 | |
| 8010 | for ac_header in audio/soundlib.h |
| 8011 | do |
| 8012 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8013 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8014 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8015 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8017 | else |
| 8018 | cat >conftest.$ac_ext <<_ACEOF |
| 8019 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8020 | /* confdefs.h. */ |
| 8021 | _ACEOF |
| 8022 | cat confdefs.h >>conftest.$ac_ext |
| 8023 | cat >>conftest.$ac_ext <<_ACEOF |
| 8024 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8025 | #include <audio/audiolib.h> |
| 8026 | |
| 8027 | #include <$ac_header> |
| 8028 | _ACEOF |
| 8029 | rm -f conftest.$ac_objext |
| 8030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8031 | (eval $ac_compile) 2>&5 |
| 8032 | ac_status=$? |
| 8033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8034 | (exit $ac_status); } && |
| 8035 | { ac_try='test -s conftest.$ac_objext' |
| 8036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8037 | (eval $ac_try) 2>&5 |
| 8038 | ac_status=$? |
| 8039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8040 | (exit $ac_status); }; }; then |
| 8041 | eval "$as_ac_Header=yes" |
| 8042 | else |
| 8043 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8045 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8046 | eval "$as_ac_Header=no" |
| 8047 | fi |
| 8048 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8049 | fi |
| 8050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8051 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8052 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8053 | cat >>confdefs.h <<_ACEOF |
| 8054 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8055 | _ACEOF |
| 8056 | |
| 8057 | fi |
| 8058 | |
| 8059 | done |
| 8060 | |
| 8061 | echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5 |
| 8062 | echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6 |
| 8063 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then |
| 8064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8065 | else |
| 8066 | ac_check_lib_save_LIBS=$LIBS |
| 8067 | LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 8068 | cat >conftest.$ac_ext <<_ACEOF |
| 8069 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8070 | /* confdefs.h. */ |
| 8071 | _ACEOF |
| 8072 | cat confdefs.h >>conftest.$ac_ext |
| 8073 | cat >>conftest.$ac_ext <<_ACEOF |
| 8074 | /* end confdefs.h. */ |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8075 | |
| 8076 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8077 | #ifdef __cplusplus |
| 8078 | extern "C" |
| 8079 | #endif |
| 8080 | /* We use char because int might match the return type of a gcc2 |
| 8081 | builtin and then its argument prototype would still apply. */ |
| 8082 | char AuCreateFlow (); |
| 8083 | int |
| 8084 | main () |
| 8085 | { |
| 8086 | AuCreateFlow (); |
| 8087 | ; |
| 8088 | return 0; |
| 8089 | } |
| 8090 | _ACEOF |
| 8091 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8093 | (eval $ac_link) 2>&5 |
| 8094 | ac_status=$? |
| 8095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8096 | (exit $ac_status); } && |
| 8097 | { ac_try='test -s conftest$ac_exeext' |
| 8098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8099 | (eval $ac_try) 2>&5 |
| 8100 | ac_status=$? |
| 8101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8102 | (exit $ac_status); }; }; then |
| 8103 | ac_cv_lib_audio_AuCreateFlow=yes |
| 8104 | else |
| 8105 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8107 | |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 8108 | ac_cv_lib_audio_AuCreateFlow=no |
| 8109 | fi |
| 8110 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8111 | LIBS=$ac_check_lib_save_LIBS |
| 8112 | fi |
| 8113 | echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
| 8114 | echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6 |
| 8115 | if test $ac_cv_lib_audio_AuCreateFlow = yes; then |
| 8116 | |
| 8117 | cat >>confdefs.h <<\_ACEOF |
| 8118 | #define HAVE_NAS 1 |
| 8119 | _ACEOF |
| 8120 | |
| 8121 | NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS" |
| 8122 | fi |
| 8123 | |
| 8124 | fi |
| 8125 | |
| 8126 | done |
| 8127 | |
| 8128 | |
Ove Kaaven | 1eb593c | 1999-02-14 09:34:46 +0000 | [diff] [blame] | 8129 | CPPFLAGS="$ac_save_CPPFLAGS" |
Patrik Stridvall | 2941a21 | 2000-04-25 20:34:22 +0000 | [diff] [blame] | 8130 | XFILES='$(XFILES)' |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 8131 | else |
| 8132 | XLIB="" |
| 8133 | X_CFLAGS="" |
| 8134 | X_LIBS="" |
| 8135 | fi |
Alexandre Julliard | 902da69 | 1995-11-05 14:39:02 +0000 | [diff] [blame] | 8136 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8137 | CURSESLIBS="" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8138 | if test "x$with_curses" != "xno" |
Patrik Stridvall | 5e5ad53 | 2000-04-23 20:02:46 +0000 | [diff] [blame] | 8139 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8140 | |
| 8141 | for ac_header in ncurses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8142 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8143 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8144 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8145 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8146 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8147 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8149 | fi |
| 8150 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8151 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8152 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8153 | # Is the header compilable? |
| 8154 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8155 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8156 | cat >conftest.$ac_ext <<_ACEOF |
| 8157 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8158 | /* confdefs.h. */ |
| 8159 | _ACEOF |
| 8160 | cat confdefs.h >>conftest.$ac_ext |
| 8161 | cat >>conftest.$ac_ext <<_ACEOF |
| 8162 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8163 | $ac_includes_default |
| 8164 | #include <$ac_header> |
| 8165 | _ACEOF |
| 8166 | rm -f conftest.$ac_objext |
| 8167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8168 | (eval $ac_compile) 2>&5 |
| 8169 | ac_status=$? |
| 8170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8171 | (exit $ac_status); } && |
| 8172 | { ac_try='test -s conftest.$ac_objext' |
| 8173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8174 | (eval $ac_try) 2>&5 |
| 8175 | ac_status=$? |
| 8176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8177 | (exit $ac_status); }; }; then |
| 8178 | ac_header_compiler=yes |
| 8179 | else |
| 8180 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8182 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8183 | ac_header_compiler=no |
| 8184 | fi |
| 8185 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8186 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8187 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8188 | |
| 8189 | # Is the header present? |
| 8190 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8191 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8192 | cat >conftest.$ac_ext <<_ACEOF |
| 8193 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8194 | /* confdefs.h. */ |
| 8195 | _ACEOF |
| 8196 | cat confdefs.h >>conftest.$ac_ext |
| 8197 | cat >>conftest.$ac_ext <<_ACEOF |
| 8198 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8199 | #include <$ac_header> |
| 8200 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8201 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8202 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8203 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8204 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8205 | rm -f conftest.er1 |
| 8206 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8208 | (exit $ac_status); } >/dev/null; then |
| 8209 | if test -s conftest.err; then |
| 8210 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8211 | else |
| 8212 | ac_cpp_err= |
| 8213 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8214 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8215 | ac_cpp_err=yes |
| 8216 | fi |
| 8217 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8218 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8219 | else |
| 8220 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8222 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8223 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8224 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8225 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8226 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8227 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8228 | |
| 8229 | # So? What about this header? |
| 8230 | case $ac_header_compiler:$ac_header_preproc in |
| 8231 | yes:no ) |
| 8232 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8233 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8234 | { 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] | 8235 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8236 | ( |
| 8237 | cat <<\_ASBOX |
| 8238 | ## ------------------------------------ ## |
| 8239 | ## Report this to bug-autoconf@gnu.org. ## |
| 8240 | ## ------------------------------------ ## |
| 8241 | _ASBOX |
| 8242 | ) | |
| 8243 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8244 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8245 | no:yes ) |
| 8246 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8247 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8248 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8249 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8250 | { 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] | 8251 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8252 | ( |
| 8253 | cat <<\_ASBOX |
| 8254 | ## ------------------------------------ ## |
| 8255 | ## Report this to bug-autoconf@gnu.org. ## |
| 8256 | ## ------------------------------------ ## |
| 8257 | _ASBOX |
| 8258 | ) | |
| 8259 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8260 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8261 | esac |
| 8262 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8263 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8264 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8266 | else |
| 8267 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8268 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8269 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8270 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8271 | |
| 8272 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8273 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8274 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8275 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8276 | _ACEOF |
| 8277 | echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8278 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6 |
| 8279 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
| 8280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8281 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8282 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8283 | LIBS="-lncurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8284 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8285 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8286 | /* confdefs.h. */ |
| 8287 | _ACEOF |
| 8288 | cat confdefs.h >>conftest.$ac_ext |
| 8289 | cat >>conftest.$ac_ext <<_ACEOF |
| 8290 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8291 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8292 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8293 | #ifdef __cplusplus |
| 8294 | extern "C" |
| 8295 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8296 | /* 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] | 8297 | builtin and then its argument prototype would still apply. */ |
| 8298 | char waddch (); |
| 8299 | int |
| 8300 | main () |
| 8301 | { |
| 8302 | waddch (); |
| 8303 | ; |
| 8304 | return 0; |
| 8305 | } |
| 8306 | _ACEOF |
| 8307 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8309 | (eval $ac_link) 2>&5 |
| 8310 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8312 | (exit $ac_status); } && |
| 8313 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8315 | (eval $ac_try) 2>&5 |
| 8316 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8318 | (exit $ac_status); }; }; then |
| 8319 | ac_cv_lib_ncurses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8320 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8321 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8323 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8324 | ac_cv_lib_ncurses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8325 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8326 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8327 | LIBS=$ac_check_lib_save_LIBS |
| 8328 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8329 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8330 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6 |
| 8331 | if test $ac_cv_lib_ncurses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8332 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8333 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8334 | #define HAVE_LIBNCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8335 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8336 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8337 | CURSESLIBS="-lncurses" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8338 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8339 | |
| 8340 | for ac_header in curses.h |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8341 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8342 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8343 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8344 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8345 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8346 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8348 | fi |
| 8349 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8350 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8351 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8352 | # Is the header compilable? |
| 8353 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8354 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8355 | cat >conftest.$ac_ext <<_ACEOF |
| 8356 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8357 | /* confdefs.h. */ |
| 8358 | _ACEOF |
| 8359 | cat confdefs.h >>conftest.$ac_ext |
| 8360 | cat >>conftest.$ac_ext <<_ACEOF |
| 8361 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8362 | $ac_includes_default |
| 8363 | #include <$ac_header> |
| 8364 | _ACEOF |
| 8365 | rm -f conftest.$ac_objext |
| 8366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8367 | (eval $ac_compile) 2>&5 |
| 8368 | ac_status=$? |
| 8369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8370 | (exit $ac_status); } && |
| 8371 | { ac_try='test -s conftest.$ac_objext' |
| 8372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8373 | (eval $ac_try) 2>&5 |
| 8374 | ac_status=$? |
| 8375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8376 | (exit $ac_status); }; }; then |
| 8377 | ac_header_compiler=yes |
| 8378 | else |
| 8379 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8380 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8381 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8382 | ac_header_compiler=no |
| 8383 | fi |
| 8384 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8385 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8386 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8387 | |
| 8388 | # Is the header present? |
| 8389 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8390 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8391 | cat >conftest.$ac_ext <<_ACEOF |
| 8392 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8393 | /* confdefs.h. */ |
| 8394 | _ACEOF |
| 8395 | cat confdefs.h >>conftest.$ac_ext |
| 8396 | cat >>conftest.$ac_ext <<_ACEOF |
| 8397 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8398 | #include <$ac_header> |
| 8399 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8400 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8401 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8402 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8403 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8404 | rm -f conftest.er1 |
| 8405 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8407 | (exit $ac_status); } >/dev/null; then |
| 8408 | if test -s conftest.err; then |
| 8409 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8410 | else |
| 8411 | ac_cpp_err= |
| 8412 | fi |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8413 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8414 | ac_cpp_err=yes |
| 8415 | fi |
| 8416 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8417 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8418 | else |
| 8419 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8421 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8422 | ac_header_preproc=no |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8423 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8424 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8425 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8426 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8427 | |
| 8428 | # So? What about this header? |
| 8429 | case $ac_header_compiler:$ac_header_preproc in |
| 8430 | yes:no ) |
| 8431 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8432 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8433 | { 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] | 8434 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8435 | ( |
| 8436 | cat <<\_ASBOX |
| 8437 | ## ------------------------------------ ## |
| 8438 | ## Report this to bug-autoconf@gnu.org. ## |
| 8439 | ## ------------------------------------ ## |
| 8440 | _ASBOX |
| 8441 | ) | |
| 8442 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8443 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8444 | no:yes ) |
| 8445 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8446 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8447 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8448 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8449 | { 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] | 8450 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8451 | ( |
| 8452 | cat <<\_ASBOX |
| 8453 | ## ------------------------------------ ## |
| 8454 | ## Report this to bug-autoconf@gnu.org. ## |
| 8455 | ## ------------------------------------ ## |
| 8456 | _ASBOX |
| 8457 | ) | |
| 8458 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8459 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8460 | esac |
| 8461 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8462 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8463 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8465 | else |
| 8466 | eval "$as_ac_Header=$ac_header_preproc" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 8467 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8469 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8470 | |
| 8471 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8472 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8473 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8474 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8475 | _ACEOF |
| 8476 | echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8477 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6 |
| 8478 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
| 8479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8480 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8481 | ac_check_lib_save_LIBS=$LIBS |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8482 | LIBS="-lcurses $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8483 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8484 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8485 | /* confdefs.h. */ |
| 8486 | _ACEOF |
| 8487 | cat confdefs.h >>conftest.$ac_ext |
| 8488 | cat >>conftest.$ac_ext <<_ACEOF |
| 8489 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8490 | |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8491 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8492 | #ifdef __cplusplus |
| 8493 | extern "C" |
| 8494 | #endif |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8495 | /* 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] | 8496 | builtin and then its argument prototype would still apply. */ |
| 8497 | char waddch (); |
| 8498 | int |
| 8499 | main () |
| 8500 | { |
| 8501 | waddch (); |
| 8502 | ; |
| 8503 | return 0; |
| 8504 | } |
| 8505 | _ACEOF |
| 8506 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8508 | (eval $ac_link) 2>&5 |
| 8509 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8511 | (exit $ac_status); } && |
| 8512 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8514 | (eval $ac_try) 2>&5 |
| 8515 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8517 | (exit $ac_status); }; }; then |
| 8518 | ac_cv_lib_curses_waddch=yes |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8519 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8520 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8521 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8522 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8523 | ac_cv_lib_curses_waddch=no |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8524 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8525 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8526 | LIBS=$ac_check_lib_save_LIBS |
| 8527 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8528 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8529 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6 |
| 8530 | if test $ac_cv_lib_curses_waddch = yes; then |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8531 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8532 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8533 | #define HAVE_LIBCURSES 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8534 | _ACEOF |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8535 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8536 | CURSESLIBS="-lcurses" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8537 | fi |
| 8538 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8539 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8540 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8541 | done |
| 8542 | |
| 8543 | fi |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8544 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8545 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8546 | |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8547 | done |
| 8548 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8549 | saved_libs="$LIBS" |
| 8550 | LIBS="$CURSESLIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8551 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8552 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8553 | for ac_func in getbkgd resizeterm |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8554 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8555 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8556 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8557 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8558 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8560 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8561 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8562 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8563 | /* confdefs.h. */ |
| 8564 | _ACEOF |
| 8565 | cat confdefs.h >>conftest.$ac_ext |
| 8566 | cat >>conftest.$ac_ext <<_ACEOF |
| 8567 | /* end confdefs.h. */ |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8568 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8569 | which can conflict with char $ac_func (); below. |
| 8570 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8571 | <limits.h> exists even on freestanding compilers. */ |
| 8572 | #ifdef __STDC__ |
| 8573 | # include <limits.h> |
| 8574 | #else |
| 8575 | # include <assert.h> |
| 8576 | #endif |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8577 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8578 | #ifdef __cplusplus |
| 8579 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8580 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8581 | #endif |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8582 | /* 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] | 8583 | builtin and then its argument prototype would still apply. */ |
| 8584 | char $ac_func (); |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8585 | /* The GNU C library defines this for functions which it implements |
| 8586 | to always fail with ENOSYS. Some functions are actually named |
| 8587 | something starting with __ and the normal name is an alias. */ |
| 8588 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8589 | choke me |
| 8590 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8591 | char (*f) () = $ac_func; |
| 8592 | #endif |
| 8593 | #ifdef __cplusplus |
| 8594 | } |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8595 | #endif |
| 8596 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8597 | int |
| 8598 | main () |
| 8599 | { |
| 8600 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8601 | ; |
| 8602 | return 0; |
| 8603 | } |
| 8604 | _ACEOF |
| 8605 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8607 | (eval $ac_link) 2>&5 |
| 8608 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8610 | (exit $ac_status); } && |
| 8611 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8613 | (eval $ac_try) 2>&5 |
| 8614 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8616 | (exit $ac_status); }; }; then |
| 8617 | eval "$as_ac_var=yes" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8618 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8619 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8621 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8622 | eval "$as_ac_var=no" |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8623 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8624 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8625 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8627 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8628 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8629 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8630 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8631 | _ACEOF |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8632 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8633 | fi |
Alexandre Julliard | ed2f19a | 2001-06-27 21:42:00 +0000 | [diff] [blame] | 8634 | done |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 8635 | |
Alexandre Julliard | 4895768 | 2001-12-26 23:08:31 +0000 | [diff] [blame] | 8636 | LIBS="$saved_libs" |
Joseph Pranevich | e884f9c | 1999-01-03 16:14:34 +0000 | [diff] [blame] | 8637 | fi |
| 8638 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8639 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8640 | # Extract the first word of "sane-config", so it can be a program name with args. |
| 8641 | set dummy sane-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8644 | if test "${ac_cv_prog_sane_devel+set}" = set; then |
| 8645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8646 | else |
| 8647 | if test -n "$sane_devel"; then |
| 8648 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. |
| 8649 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8651 | for as_dir in $PATH |
| 8652 | do |
| 8653 | IFS=$as_save_IFS |
| 8654 | test -z "$as_dir" && as_dir=. |
| 8655 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8657 | ac_cv_prog_sane_devel="sane-config" |
| 8658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8659 | break 2 |
| 8660 | fi |
| 8661 | done |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8662 | done |
| 8663 | |
| 8664 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" |
| 8665 | fi |
| 8666 | fi |
| 8667 | sane_devel=$ac_cv_prog_sane_devel |
| 8668 | if test -n "$sane_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8669 | echo "$as_me:$LINENO: result: $sane_devel" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8670 | echo "${ECHO_T}$sane_devel" >&6 |
| 8671 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8672 | echo "$as_me:$LINENO: result: no" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8673 | echo "${ECHO_T}no" >&6 |
| 8674 | fi |
| 8675 | |
| 8676 | if test "$sane_devel" = "no" |
| 8677 | then |
| 8678 | SANELIBS="" |
| 8679 | SANEINCL="" |
| 8680 | else |
| 8681 | SANELIBS="`$sane_devel --libs`" |
| 8682 | SANEINCL="`$sane_devel --cflags`" |
| 8683 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 8684 | ac_save_LIBS="$LIBS" |
| 8685 | CPPFLAGS="$CPPFLAGS $SANEINCL" |
| 8686 | LIBS="$LIBS $SANELIBS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8687 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 8688 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8689 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 8690 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 8691 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8692 | fi |
| 8693 | echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
| 8694 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8695 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8696 | # Is the header compilable? |
| 8697 | echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 |
| 8698 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6 |
| 8699 | cat >conftest.$ac_ext <<_ACEOF |
| 8700 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8701 | /* confdefs.h. */ |
| 8702 | _ACEOF |
| 8703 | cat confdefs.h >>conftest.$ac_ext |
| 8704 | cat >>conftest.$ac_ext <<_ACEOF |
| 8705 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8706 | $ac_includes_default |
| 8707 | #include <sane/sane.h> |
| 8708 | _ACEOF |
| 8709 | rm -f conftest.$ac_objext |
| 8710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8711 | (eval $ac_compile) 2>&5 |
| 8712 | ac_status=$? |
| 8713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8714 | (exit $ac_status); } && |
| 8715 | { ac_try='test -s conftest.$ac_objext' |
| 8716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8717 | (eval $ac_try) 2>&5 |
| 8718 | ac_status=$? |
| 8719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8720 | (exit $ac_status); }; }; then |
| 8721 | ac_header_compiler=yes |
| 8722 | else |
| 8723 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8725 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8726 | ac_header_compiler=no |
| 8727 | fi |
| 8728 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8729 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8730 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8731 | |
| 8732 | # Is the header present? |
| 8733 | echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 |
| 8734 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6 |
| 8735 | cat >conftest.$ac_ext <<_ACEOF |
| 8736 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8737 | /* confdefs.h. */ |
| 8738 | _ACEOF |
| 8739 | cat confdefs.h >>conftest.$ac_ext |
| 8740 | cat >>conftest.$ac_ext <<_ACEOF |
| 8741 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8742 | #include <sane/sane.h> |
| 8743 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8744 | 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] | 8745 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8746 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 8747 | grep -v '^ *+' conftest.er1 >conftest.err |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8748 | rm -f conftest.er1 |
| 8749 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8751 | (exit $ac_status); } >/dev/null; then |
| 8752 | if test -s conftest.err; then |
| 8753 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8754 | else |
| 8755 | ac_cpp_err= |
| 8756 | fi |
| 8757 | else |
| 8758 | ac_cpp_err=yes |
| 8759 | fi |
| 8760 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8761 | ac_header_preproc=yes |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8762 | else |
| 8763 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8765 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8766 | ac_header_preproc=no |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8767 | fi |
| 8768 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8769 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8770 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8771 | |
| 8772 | # So? What about this header? |
| 8773 | case $ac_header_compiler:$ac_header_preproc in |
| 8774 | yes:no ) |
| 8775 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8776 | echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8777 | { 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] | 8778 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;} |
| 8779 | ( |
| 8780 | cat <<\_ASBOX |
| 8781 | ## ------------------------------------ ## |
| 8782 | ## Report this to bug-autoconf@gnu.org. ## |
| 8783 | ## ------------------------------------ ## |
| 8784 | _ASBOX |
| 8785 | ) | |
| 8786 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8787 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8788 | no:yes ) |
| 8789 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 |
| 8790 | echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;} |
| 8791 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 |
| 8792 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} |
| 8793 | { 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] | 8794 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;} |
| 8795 | ( |
| 8796 | cat <<\_ASBOX |
| 8797 | ## ------------------------------------ ## |
| 8798 | ## Report this to bug-autoconf@gnu.org. ## |
| 8799 | ## ------------------------------------ ## |
| 8800 | _ASBOX |
| 8801 | ) | |
| 8802 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8803 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8804 | esac |
| 8805 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
| 8806 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
| 8807 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
| 8808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8809 | else |
| 8810 | ac_cv_header_sane_sane_h=$ac_header_preproc |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8811 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8812 | 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] | 8813 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8814 | |
| 8815 | fi |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8816 | if test $ac_cv_header_sane_sane_h = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8817 | echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8818 | echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6 |
| 8819 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then |
| 8820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8821 | else |
| 8822 | ac_check_lib_save_LIBS=$LIBS |
| 8823 | LIBS="-lsane $LIBS" |
| 8824 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8825 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8826 | /* confdefs.h. */ |
| 8827 | _ACEOF |
| 8828 | cat confdefs.h >>conftest.$ac_ext |
| 8829 | cat >>conftest.$ac_ext <<_ACEOF |
| 8830 | /* end confdefs.h. */ |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8831 | |
| 8832 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 8833 | #ifdef __cplusplus |
| 8834 | extern "C" |
| 8835 | #endif |
| 8836 | /* We use char because int might match the return type of a gcc2 |
| 8837 | builtin and then its argument prototype would still apply. */ |
| 8838 | char sane_open (); |
| 8839 | int |
| 8840 | main () |
| 8841 | { |
| 8842 | sane_open (); |
| 8843 | ; |
| 8844 | return 0; |
| 8845 | } |
| 8846 | _ACEOF |
| 8847 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8849 | (eval $ac_link) 2>&5 |
| 8850 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8852 | (exit $ac_status); } && |
| 8853 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8855 | (eval $ac_try) 2>&5 |
| 8856 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8858 | (exit $ac_status); }; }; then |
| 8859 | ac_cv_lib_sane_sane_open=yes |
| 8860 | else |
| 8861 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8863 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8864 | ac_cv_lib_sane_sane_open=no |
| 8865 | fi |
| 8866 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8867 | LIBS=$ac_check_lib_save_LIBS |
| 8868 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8869 | 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] | 8870 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6 |
| 8871 | if test $ac_cv_lib_sane_sane_open = yes; then |
| 8872 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8873 | cat >>confdefs.h <<\_ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8874 | #define HAVE_SANE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8875 | _ACEOF |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8876 | |
| 8877 | else |
| 8878 | SANELIBS="" |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 8879 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8880 | fi |
| 8881 | |
Alexandre Julliard | 96328b3 | 2002-03-31 19:23:41 +0000 | [diff] [blame] | 8882 | else |
| 8883 | SANELIBS="" |
| 8884 | SANEINCL="" |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8885 | fi |
| 8886 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8887 | |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 8888 | LIBS="$ac_save_LIBS" |
| 8889 | CPPFLAGS="$ac_save_CPPFLAGS" |
| 8890 | fi |
| 8891 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8892 | |
| 8893 | |
| 8894 | echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8895 | echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6 |
| 8896 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
| 8897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8898 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8899 | ac_check_lib_save_LIBS=$LIBS |
Dmitry Timoshkov | 8871a11 | 2001-11-06 22:26:53 +0000 | [diff] [blame] | 8900 | LIBS="-lfreetype $X_LIBS $LIBS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8901 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8902 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8903 | /* confdefs.h. */ |
| 8904 | _ACEOF |
| 8905 | cat confdefs.h >>conftest.$ac_ext |
| 8906 | cat >>conftest.$ac_ext <<_ACEOF |
| 8907 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8908 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8909 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8910 | #ifdef __cplusplus |
| 8911 | extern "C" |
| 8912 | #endif |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8913 | /* 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] | 8914 | builtin and then its argument prototype would still apply. */ |
| 8915 | char FT_Init_FreeType (); |
| 8916 | int |
| 8917 | main () |
| 8918 | { |
| 8919 | FT_Init_FreeType (); |
| 8920 | ; |
| 8921 | return 0; |
| 8922 | } |
| 8923 | _ACEOF |
| 8924 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8926 | (eval $ac_link) 2>&5 |
| 8927 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8929 | (exit $ac_status); } && |
| 8930 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8932 | (eval $ac_try) 2>&5 |
| 8933 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8935 | (exit $ac_status); }; }; then |
| 8936 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8937 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8938 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 8939 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8940 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8941 | ac_cv_lib_freetype_FT_Init_FreeType=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8942 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8943 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8944 | LIBS=$ac_check_lib_save_LIBS |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8945 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8946 | 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] | 8947 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6 |
| 8948 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8949 | ft_lib=yes |
| 8950 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8951 | ft_lib=no |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8952 | fi |
| 8953 | |
| 8954 | if test "$ft_lib" = "no" |
| 8955 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8956 | FREETYPEINCL="" |
| 8957 | wine_cv_msg_freetype=no |
| 8958 | else |
| 8959 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 8960 | set dummy freetype-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8961 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8962 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8963 | if test "${ac_cv_prog_ft_devel+set}" = set; then |
| 8964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8965 | else |
| 8966 | if test -n "$ft_devel"; then |
| 8967 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. |
| 8968 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8970 | for as_dir in $PATH |
| 8971 | do |
| 8972 | IFS=$as_save_IFS |
| 8973 | test -z "$as_dir" && as_dir=. |
| 8974 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8975 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8976 | ac_cv_prog_ft_devel="freetype-config" |
| 8977 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8978 | break 2 |
| 8979 | fi |
| 8980 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8981 | done |
| 8982 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8983 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
| 8984 | fi |
| 8985 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8986 | ft_devel=$ac_cv_prog_ft_devel |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8987 | if test -n "$ft_devel"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8988 | echo "$as_me:$LINENO: result: $ft_devel" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8989 | echo "${ECHO_T}$ft_devel" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8990 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8991 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 8992 | echo "${ECHO_T}no" >&6 |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 8993 | fi |
| 8994 | |
| 8995 | if test "$ft_devel" = "no" |
| 8996 | then |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 8997 | # Extract the first word of "freetype2-config", so it can be a program name with args. |
| 8998 | set dummy freetype2-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 8999 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9000 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9001 | if test "${ac_cv_prog_ft_devel2+set}" = set; then |
| 9002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9003 | else |
| 9004 | if test -n "$ft_devel2"; then |
| 9005 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. |
| 9006 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9007 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9008 | for as_dir in $PATH |
| 9009 | do |
| 9010 | IFS=$as_save_IFS |
| 9011 | test -z "$as_dir" && as_dir=. |
| 9012 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9013 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9014 | ac_cv_prog_ft_devel2="freetype2-config" |
| 9015 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9016 | break 2 |
| 9017 | fi |
| 9018 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9019 | done |
| 9020 | |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9021 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
| 9022 | fi |
| 9023 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9024 | ft_devel2=$ac_cv_prog_ft_devel2 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9025 | if test -n "$ft_devel2"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9026 | echo "$as_me:$LINENO: result: $ft_devel2" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9027 | echo "${ECHO_T}$ft_devel2" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9028 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9029 | echo "$as_me:$LINENO: result: no" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9030 | echo "${ECHO_T}no" >&6 |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9031 | fi |
| 9032 | |
| 9033 | if test "$ft_devel2" = "freetype2-config" |
| 9034 | then |
| 9035 | ft_devel=$ft_devel2 |
| 9036 | fi |
| 9037 | fi |
| 9038 | if test "$ft_devel" = "no" |
| 9039 | then |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9040 | FREETYPEINCL="" |
| 9041 | wine_cv_msg_freetype=yes |
| 9042 | else |
Marcus Meissner | d28955d | 2001-05-31 21:35:15 +0000 | [diff] [blame] | 9043 | FREETYPEINCL=`$ft_devel --cflags` |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9044 | ac_save_CPPFLAGS="$CPPFLAGS" |
| 9045 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9046 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9047 | |
| 9048 | |
| 9049 | |
| 9050 | |
| 9051 | |
| 9052 | |
| 9053 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9054 | for ac_header in freetype/freetype.h \ |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9055 | freetype/ftglyph.h \ |
| 9056 | freetype/tttables.h \ |
| 9057 | freetype/ftnames.h \ |
| 9058 | freetype/ftsnames.h \ |
Huw D M Davies | 814654e | 2001-09-12 20:21:06 +0000 | [diff] [blame] | 9059 | freetype/ttnameid.h \ |
Huw D M Davies | 4e2024e | 2001-10-23 20:06:32 +0000 | [diff] [blame] | 9060 | freetype/ftoutln.h \ |
| 9061 | freetype/internal/sfnt.h |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9062 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9063 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9064 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9065 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9066 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9069 | fi |
| 9070 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9071 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9072 | else |
| 9073 | # Is the header compilable? |
| 9074 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9075 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9076 | cat >conftest.$ac_ext <<_ACEOF |
| 9077 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9078 | /* confdefs.h. */ |
| 9079 | _ACEOF |
| 9080 | cat confdefs.h >>conftest.$ac_ext |
| 9081 | cat >>conftest.$ac_ext <<_ACEOF |
| 9082 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9083 | $ac_includes_default |
| 9084 | #include <$ac_header> |
| 9085 | _ACEOF |
| 9086 | rm -f conftest.$ac_objext |
| 9087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9088 | (eval $ac_compile) 2>&5 |
| 9089 | ac_status=$? |
| 9090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9091 | (exit $ac_status); } && |
| 9092 | { ac_try='test -s conftest.$ac_objext' |
| 9093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9094 | (eval $ac_try) 2>&5 |
| 9095 | ac_status=$? |
| 9096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9097 | (exit $ac_status); }; }; then |
| 9098 | ac_header_compiler=yes |
| 9099 | else |
| 9100 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9102 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9103 | ac_header_compiler=no |
| 9104 | fi |
| 9105 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9106 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9107 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9108 | |
| 9109 | # Is the header present? |
| 9110 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9111 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9112 | cat >conftest.$ac_ext <<_ACEOF |
| 9113 | #line $LINENO "configure" |
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 | #include <$ac_header> |
| 9120 | _ACEOF |
| 9121 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9122 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9123 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9124 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9125 | rm -f conftest.er1 |
| 9126 | cat conftest.err >&5 |
| 9127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9128 | (exit $ac_status); } >/dev/null; then |
| 9129 | if test -s conftest.err; then |
| 9130 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9131 | else |
| 9132 | ac_cpp_err= |
| 9133 | fi |
| 9134 | else |
| 9135 | ac_cpp_err=yes |
| 9136 | fi |
| 9137 | if test -z "$ac_cpp_err"; then |
| 9138 | ac_header_preproc=yes |
| 9139 | else |
| 9140 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9142 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9143 | ac_header_preproc=no |
| 9144 | fi |
| 9145 | rm -f conftest.err conftest.$ac_ext |
| 9146 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9147 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9148 | |
| 9149 | # So? What about this header? |
| 9150 | case $ac_header_compiler:$ac_header_preproc in |
| 9151 | yes:no ) |
| 9152 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9153 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9154 | { 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] | 9155 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9156 | ( |
| 9157 | cat <<\_ASBOX |
| 9158 | ## ------------------------------------ ## |
| 9159 | ## Report this to bug-autoconf@gnu.org. ## |
| 9160 | ## ------------------------------------ ## |
| 9161 | _ASBOX |
| 9162 | ) | |
| 9163 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9164 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9165 | no:yes ) |
| 9166 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9167 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9168 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9169 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9170 | { 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] | 9171 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9172 | ( |
| 9173 | cat <<\_ASBOX |
| 9174 | ## ------------------------------------ ## |
| 9175 | ## Report this to bug-autoconf@gnu.org. ## |
| 9176 | ## ------------------------------------ ## |
| 9177 | _ASBOX |
| 9178 | ) | |
| 9179 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9180 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9181 | esac |
| 9182 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9183 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9184 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9186 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9187 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9188 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9189 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9190 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9191 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9192 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9193 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9194 | cat >>confdefs.h <<_ACEOF |
| 9195 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9196 | _ACEOF |
| 9197 | |
| 9198 | fi |
| 9199 | |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9200 | done |
| 9201 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9202 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9203 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9204 | /* confdefs.h. */ |
| 9205 | _ACEOF |
| 9206 | cat confdefs.h >>conftest.$ac_ext |
| 9207 | cat >>conftest.$ac_ext <<_ACEOF |
| 9208 | /* end confdefs.h. */ |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9209 | #include <ft2build.h> |
| 9210 | #include <freetype/fttrigon.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9211 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9212 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9213 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9214 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9215 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9216 | rm -f conftest.er1 |
| 9217 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9219 | (exit $ac_status); } >/dev/null; then |
| 9220 | if test -s conftest.err; then |
| 9221 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9222 | else |
| 9223 | ac_cpp_err= |
| 9224 | fi |
| 9225 | else |
| 9226 | ac_cpp_err=yes |
| 9227 | fi |
| 9228 | if test -z "$ac_cpp_err"; then |
| 9229 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9230 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9231 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9232 | _ACEOF |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9233 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 9234 | wine_cv_fttrigon=yes |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9235 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9236 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9238 | |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 9239 | wine_cv_fttrigon=no |
Alexandre Julliard | 18d7573 | 2002-01-29 03:02:50 +0000 | [diff] [blame] | 9240 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9241 | rm -f conftest.err conftest.$ac_ext |
Ian Pilcher | 40432fe | 2001-06-06 21:05:23 +0000 | [diff] [blame] | 9242 | CPPFLAGS="$ac_save_CPPFLAGS" |
Huw D M Davies | c1d3813 | 2002-02-08 17:09:50 +0000 | [diff] [blame] | 9243 | 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] | 9244 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9245 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9246 | cat >>confdefs.h <<\_ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 9247 | #define HAVE_FREETYPE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9248 | _ACEOF |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 9249 | |
| 9250 | wine_cv_msg_freetype=no |
| 9251 | else |
Huw D M Davies | 9b1d372 | 2002-01-29 17:09:28 +0000 | [diff] [blame] | 9252 | FREETYPEINCL="" |
| 9253 | wine_cv_msg_freetype=yes |
| 9254 | fi |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 9255 | fi |
| 9256 | fi |
| 9257 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9258 | |
| 9259 | echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9260 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6 |
| 9261 | if test "${ac_cv_c_ppdev+set}" = set; then |
| 9262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9263 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9264 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9265 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9266 | /* confdefs.h. */ |
| 9267 | _ACEOF |
| 9268 | cat confdefs.h >>conftest.$ac_ext |
| 9269 | cat >>conftest.$ac_ext <<_ACEOF |
| 9270 | /* end confdefs.h. */ |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9271 | #include <linux/ppdev.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9272 | int |
| 9273 | main () |
| 9274 | { |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9275 | ioctl (1,PPCLAIM,0) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9276 | ; |
| 9277 | return 0; |
| 9278 | } |
| 9279 | _ACEOF |
| 9280 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9282 | (eval $ac_compile) 2>&5 |
| 9283 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9285 | (exit $ac_status); } && |
| 9286 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9288 | (eval $ac_try) 2>&5 |
| 9289 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9291 | (exit $ac_status); }; }; then |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9292 | ac_cv_c_ppdev="yes" |
| 9293 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9294 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9296 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9297 | ac_cv_c_ppdev="no" |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9298 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9299 | rm -f conftest.$ac_objext conftest.$ac_ext |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9300 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9301 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9302 | echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9303 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9304 | if test "$ac_cv_c_ppdev" = "yes" |
| 9305 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9306 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9307 | cat >>confdefs.h <<\_ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9308 | #define HAVE_PPDEV 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9309 | _ACEOF |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9310 | |
| 9311 | fi |
| 9312 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9313 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
| 9314 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 |
| 9315 | if test "${ac_cv_c_va_copy+set}" = set; then |
| 9316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9317 | else |
| 9318 | cat >conftest.$ac_ext <<_ACEOF |
| 9319 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9320 | /* confdefs.h. */ |
| 9321 | _ACEOF |
| 9322 | cat confdefs.h >>conftest.$ac_ext |
| 9323 | cat >>conftest.$ac_ext <<_ACEOF |
| 9324 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9325 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9326 | int |
| 9327 | main () |
| 9328 | { |
| 9329 | va_list ap1, ap2; |
| 9330 | va_copy(ap1,ap2); |
| 9331 | |
| 9332 | ; |
| 9333 | return 0; |
| 9334 | } |
| 9335 | _ACEOF |
| 9336 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9338 | (eval $ac_link) 2>&5 |
| 9339 | ac_status=$? |
| 9340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9341 | (exit $ac_status); } && |
| 9342 | { ac_try='test -s conftest$ac_exeext' |
| 9343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9344 | (eval $ac_try) 2>&5 |
| 9345 | ac_status=$? |
| 9346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9347 | (exit $ac_status); }; }; then |
| 9348 | ac_cv_c_va_copy="yes" |
| 9349 | else |
| 9350 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9352 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9353 | ac_cv_c_va_copy="no" |
| 9354 | fi |
| 9355 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9356 | |
| 9357 | fi |
| 9358 | echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
| 9359 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6 |
| 9360 | if test "$ac_cv_c_va_copy" = "yes" |
| 9361 | then |
| 9362 | |
| 9363 | cat >>confdefs.h <<\_ACEOF |
| 9364 | #define HAVE_VA_COPY 1 |
| 9365 | _ACEOF |
| 9366 | |
| 9367 | fi |
| 9368 | echo "$as_me:$LINENO: checking for __va_copy" >&5 |
| 9369 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6 |
| 9370 | if test "${ac_cv_c___va_copy+set}" = set; then |
| 9371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9372 | else |
| 9373 | cat >conftest.$ac_ext <<_ACEOF |
| 9374 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9375 | /* confdefs.h. */ |
| 9376 | _ACEOF |
| 9377 | cat confdefs.h >>conftest.$ac_ext |
| 9378 | cat >>conftest.$ac_ext <<_ACEOF |
| 9379 | /* end confdefs.h. */ |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9380 | #include <stdarg.h> |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9381 | int |
| 9382 | main () |
| 9383 | { |
| 9384 | va_list ap1, ap2; |
| 9385 | __va_copy(ap1,ap2); |
| 9386 | |
| 9387 | ; |
| 9388 | return 0; |
| 9389 | } |
| 9390 | _ACEOF |
| 9391 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9393 | (eval $ac_link) 2>&5 |
| 9394 | ac_status=$? |
| 9395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9396 | (exit $ac_status); } && |
| 9397 | { ac_try='test -s conftest$ac_exeext' |
| 9398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9399 | (eval $ac_try) 2>&5 |
| 9400 | ac_status=$? |
| 9401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9402 | (exit $ac_status); }; }; then |
| 9403 | ac_cv_c___va_copy="yes" |
| 9404 | else |
| 9405 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9407 | |
Marcus Meissner | 5ee517a | 2002-08-09 19:49:31 +0000 | [diff] [blame] | 9408 | ac_cv_c___va_copy="no" |
| 9409 | fi |
| 9410 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9411 | |
| 9412 | fi |
| 9413 | echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
| 9414 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6 |
| 9415 | if test "$ac_cv_c___va_copy" = "yes" |
| 9416 | then |
| 9417 | |
| 9418 | cat >>confdefs.h <<\_ACEOF |
| 9419 | #define HAVE___VA_COPY 1 |
| 9420 | _ACEOF |
| 9421 | |
| 9422 | fi |
| 9423 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9424 | echo "$as_me:$LINENO: checking for GNU style IPX support" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9425 | echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6 |
| 9426 | if test "${ac_cv_c_ipx_gnu+set}" = set; then |
| 9427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Uwe Bonnes | 6509fa9 | 2001-06-26 21:06:07 +0000 | [diff] [blame] | 9428 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9429 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9430 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9431 | /* confdefs.h. */ |
| 9432 | _ACEOF |
| 9433 | cat confdefs.h >>conftest.$ac_ext |
| 9434 | cat >>conftest.$ac_ext <<_ACEOF |
| 9435 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 9436 | #include <sys/types.h> |
| 9437 | #ifdef HAVE_SYS_SOCKET_H |
| 9438 | # include <sys/socket.h> |
| 9439 | #endif |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9440 | #include <netipx/ipx.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9441 | int |
| 9442 | main () |
| 9443 | { |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9444 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9445 | ; |
| 9446 | return 0; |
| 9447 | } |
| 9448 | _ACEOF |
| 9449 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9451 | (eval $ac_compile) 2>&5 |
| 9452 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9454 | (exit $ac_status); } && |
| 9455 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9457 | (eval $ac_try) 2>&5 |
| 9458 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9460 | (exit $ac_status); }; }; then |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 9461 | ac_cv_c_ipx_gnu="yes" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9462 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9463 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9465 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9466 | ac_cv_c_ipx_gnu="no" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9467 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9468 | rm -f conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9469 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9470 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9471 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9472 | echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6 |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 9473 | if test "$ac_cv_c_ipx_gnu" = "yes" |
| 9474 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9475 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9476 | cat >>confdefs.h <<\_ACEOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 9477 | #define HAVE_IPX_GNU 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9478 | _ACEOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 9479 | |
| 9480 | fi |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9481 | |
| 9482 | if test "$ac_cv_c_ipx_gnu" = "no" |
| 9483 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9484 | echo "$as_me:$LINENO: checking for linux style IPX support" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9485 | echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6 |
| 9486 | if test "${ac_cv_c_ipx_linux+set}" = set; then |
| 9487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9488 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9489 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9490 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9491 | /* confdefs.h. */ |
| 9492 | _ACEOF |
| 9493 | cat confdefs.h >>conftest.$ac_ext |
| 9494 | cat >>conftest.$ac_ext <<_ACEOF |
| 9495 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 9496 | #include <sys/types.h> |
| 9497 | #ifdef HAVE_SYS_SOCKET_H |
| 9498 | # include <sys/socket.h> |
| 9499 | #endif |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9500 | #include <asm/types.h> |
| 9501 | #include <linux/ipx.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9502 | int |
| 9503 | main () |
| 9504 | { |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9505 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9506 | ; |
| 9507 | return 0; |
| 9508 | } |
| 9509 | _ACEOF |
| 9510 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9512 | (eval $ac_compile) 2>&5 |
| 9513 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9515 | (exit $ac_status); } && |
| 9516 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9518 | (eval $ac_try) 2>&5 |
| 9519 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9521 | (exit $ac_status); }; }; then |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 9522 | ac_cv_c_ipx_linux="yes" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9523 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9524 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9526 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9527 | ac_cv_c_ipx_linux="no" |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9528 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9529 | rm -f conftest.$ac_objext conftest.$ac_ext |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9530 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9531 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9532 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9533 | echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6 |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 9534 | if test "$ac_cv_c_ipx_linux" = "yes" |
| 9535 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9536 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9537 | cat >>confdefs.h <<\_ACEOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 9538 | #define HAVE_IPX_LINUX 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9539 | _ACEOF |
Aaron Hope | c23872d | 2000-01-15 23:43:21 +0000 | [diff] [blame] | 9540 | |
| 9541 | fi |
Pavel Roskin | 94d9964 | 1998-12-26 11:52:51 +0000 | [diff] [blame] | 9542 | fi |
| 9543 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9544 | |
| 9545 | |
| 9546 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9547 | for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9548 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9549 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9550 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9551 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9552 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9553 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9555 | fi |
| 9556 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9557 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9558 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9559 | # Is the header compilable? |
| 9560 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9561 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9562 | cat >conftest.$ac_ext <<_ACEOF |
| 9563 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9564 | /* confdefs.h. */ |
| 9565 | _ACEOF |
| 9566 | cat confdefs.h >>conftest.$ac_ext |
| 9567 | cat >>conftest.$ac_ext <<_ACEOF |
| 9568 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9569 | $ac_includes_default |
| 9570 | #include <$ac_header> |
| 9571 | _ACEOF |
| 9572 | rm -f conftest.$ac_objext |
| 9573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9574 | (eval $ac_compile) 2>&5 |
| 9575 | ac_status=$? |
| 9576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9577 | (exit $ac_status); } && |
| 9578 | { ac_try='test -s conftest.$ac_objext' |
| 9579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9580 | (eval $ac_try) 2>&5 |
| 9581 | ac_status=$? |
| 9582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9583 | (exit $ac_status); }; }; then |
| 9584 | ac_header_compiler=yes |
| 9585 | else |
| 9586 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9588 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9589 | ac_header_compiler=no |
| 9590 | fi |
| 9591 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9592 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9593 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9594 | |
| 9595 | # Is the header present? |
| 9596 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9597 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9598 | cat >conftest.$ac_ext <<_ACEOF |
| 9599 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9600 | /* confdefs.h. */ |
| 9601 | _ACEOF |
| 9602 | cat confdefs.h >>conftest.$ac_ext |
| 9603 | cat >>conftest.$ac_ext <<_ACEOF |
| 9604 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9605 | #include <$ac_header> |
| 9606 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9607 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9608 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9609 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 9610 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9611 | rm -f conftest.er1 |
| 9612 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9614 | (exit $ac_status); } >/dev/null; then |
| 9615 | if test -s conftest.err; then |
| 9616 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9617 | else |
| 9618 | ac_cpp_err= |
| 9619 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9620 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9621 | ac_cpp_err=yes |
| 9622 | fi |
| 9623 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9624 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9625 | else |
| 9626 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9628 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9629 | ac_header_preproc=no |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9630 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9631 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9632 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9633 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9634 | |
| 9635 | # So? What about this header? |
| 9636 | case $ac_header_compiler:$ac_header_preproc in |
| 9637 | yes:no ) |
| 9638 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9639 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9640 | { 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] | 9641 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9642 | ( |
| 9643 | cat <<\_ASBOX |
| 9644 | ## ------------------------------------ ## |
| 9645 | ## Report this to bug-autoconf@gnu.org. ## |
| 9646 | ## ------------------------------------ ## |
| 9647 | _ASBOX |
| 9648 | ) | |
| 9649 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9650 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9651 | no:yes ) |
| 9652 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9653 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9654 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9655 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9656 | { 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] | 9657 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9658 | ( |
| 9659 | cat <<\_ASBOX |
| 9660 | ## ------------------------------------ ## |
| 9661 | ## Report this to bug-autoconf@gnu.org. ## |
| 9662 | ## ------------------------------------ ## |
| 9663 | _ASBOX |
| 9664 | ) | |
| 9665 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9666 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9667 | esac |
| 9668 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9669 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9670 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9672 | else |
| 9673 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9674 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9676 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9677 | |
| 9678 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9679 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9680 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9681 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9682 | _ACEOF |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 9683 | break |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9684 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9685 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9686 | done |
| 9687 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9688 | |
| 9689 | echo "$as_me:$LINENO: checking for Open Sound System" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9690 | echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6 |
| 9691 | if test "${ac_cv_c_opensoundsystem+set}" = set; then |
| 9692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9693 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9694 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9695 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9696 | /* confdefs.h. */ |
| 9697 | _ACEOF |
| 9698 | cat confdefs.h >>conftest.$ac_ext |
| 9699 | cat >>conftest.$ac_ext <<_ACEOF |
| 9700 | /* end confdefs.h. */ |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9701 | |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 9702 | #if defined(HAVE_SYS_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9703 | #include <sys/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 9704 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9705 | #include <machine/soundcard.h> |
Todd Vierling | ecc7669 | 1998-12-15 17:49:02 +0000 | [diff] [blame] | 9706 | #elif defined(HAVE_SOUNDCARD_H) |
| 9707 | #include <soundcard.h> |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9708 | #endif |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9709 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9710 | int |
| 9711 | main () |
| 9712 | { |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 9713 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9714 | |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 9715 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
| 9716 | #if !defined(SNDCTL_DSP_STEREO) |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9717 | #error No open sound system |
| 9718 | #endif |
| 9719 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9720 | ; |
| 9721 | return 0; |
| 9722 | } |
| 9723 | _ACEOF |
| 9724 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9726 | (eval $ac_compile) 2>&5 |
| 9727 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9729 | (exit $ac_status); } && |
| 9730 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9732 | (eval $ac_try) 2>&5 |
| 9733 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9735 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9736 | ac_cv_c_opensoundsystem="yes" |
| 9737 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9738 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9739 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9740 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9741 | ac_cv_c_opensoundsystem="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9742 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9743 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9744 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9745 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9746 | echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 9747 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9748 | if test "$ac_cv_c_opensoundsystem" = "yes" |
| 9749 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9750 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9751 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9752 | #define HAVE_OSS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9753 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 9754 | |
| 9755 | fi |
| 9756 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9757 | echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9758 | echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6 |
| 9759 | if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then |
| 9760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 9761 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9762 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9763 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9764 | /* confdefs.h. */ |
| 9765 | _ACEOF |
| 9766 | cat confdefs.h >>conftest.$ac_ext |
| 9767 | cat >>conftest.$ac_ext <<_ACEOF |
| 9768 | /* end confdefs.h. */ |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 9769 | |
| 9770 | #if defined(HAVE_SYS_SOUNDCARD_H) |
| 9771 | #include <sys/soundcard.h> |
| 9772 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
| 9773 | #include <machine/soundcard.h> |
| 9774 | #elif defined(HAVE_SOUNDCARD_H) |
| 9775 | #include <soundcard.h> |
| 9776 | #endif |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 9777 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9778 | int |
| 9779 | main () |
| 9780 | { |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 9781 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9782 | |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 9783 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ |
| 9784 | #if !defined(SNDCTL_SEQ_SYNC) |
| 9785 | #error No open sound system MIDI interface |
| 9786 | #endif |
| 9787 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9788 | ; |
| 9789 | return 0; |
| 9790 | } |
| 9791 | _ACEOF |
| 9792 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9794 | (eval $ac_compile) 2>&5 |
| 9795 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9797 | (exit $ac_status); } && |
| 9798 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9800 | (eval $ac_try) 2>&5 |
| 9801 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9803 | (exit $ac_status); }; }; then |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 9804 | ac_cv_c_opensoundsystem_midi="yes" |
| 9805 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9806 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9807 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9808 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9809 | ac_cv_c_opensoundsystem_midi="no" |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 9810 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9811 | rm -f conftest.$ac_objext conftest.$ac_ext |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 9812 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9813 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9814 | echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6 |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 9815 | |
| 9816 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" |
| 9817 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 9818 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9819 | cat >>confdefs.h <<\_ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 9820 | #define HAVE_OSS_MIDI 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9821 | _ACEOF |
Eric Pouech | 338d3b2 | 1999-05-22 18:52:21 +0000 | [diff] [blame] | 9822 | |
| 9823 | fi |
| 9824 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9825 | # Extract the first word of "artsc-config", so it can be a program name with args. |
| 9826 | set dummy artsc-config; ac_word=$2 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9827 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9829 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then |
| 9830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9831 | else |
| 9832 | case $ARTSCCONFIG in |
| 9833 | [\\/]* | ?:[\\/]*) |
| 9834 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. |
| 9835 | ;; |
| 9836 | *) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9838 | for as_dir in $PATH |
| 9839 | do |
| 9840 | IFS=$as_save_IFS |
| 9841 | test -z "$as_dir" && as_dir=. |
| 9842 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9843 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9844 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 9845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9846 | break 2 |
| 9847 | fi |
| 9848 | done |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9849 | done |
| 9850 | |
| 9851 | ;; |
| 9852 | esac |
| 9853 | fi |
| 9854 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG |
| 9855 | |
| 9856 | if test -n "$ARTSCCONFIG"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9857 | echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9858 | echo "${ECHO_T}$ARTSCCONFIG" >&6 |
| 9859 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9860 | echo "$as_me:$LINENO: result: no" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9861 | echo "${ECHO_T}no" >&6 |
| 9862 | fi |
| 9863 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9864 | echo "$as_me:$LINENO: checking for aRts Sound server" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9865 | echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6 |
| 9866 | if test "${ac_cv_c_artsserver+set}" = set; then |
| 9867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9868 | else |
| 9869 | if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"'; |
| 9870 | then |
| 9871 | ac_cv_c_artsserver=no |
| 9872 | else |
| 9873 | ARTSC_CFLAGS=`$ARTSCCONFIG --cflags` |
| 9874 | ARTSC_LIBS=`$ARTSCCONFIG --libs` |
| 9875 | ac_cv_c_artsserver=no |
| 9876 | save_CFLAGS="$CFLAGS" |
| 9877 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" |
| 9878 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9879 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9880 | /* confdefs.h. */ |
| 9881 | _ACEOF |
| 9882 | cat confdefs.h >>conftest.$ac_ext |
| 9883 | cat >>conftest.$ac_ext <<_ACEOF |
| 9884 | /* end confdefs.h. */ |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9885 | |
| 9886 | #include <artsc.h> |
| 9887 | |
| 9888 | int |
| 9889 | main () |
| 9890 | { |
| 9891 | |
| 9892 | arts_stream_t stream; |
| 9893 | |
| 9894 | ; |
| 9895 | return 0; |
| 9896 | } |
| 9897 | _ACEOF |
| 9898 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9900 | (eval $ac_compile) 2>&5 |
| 9901 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9903 | (exit $ac_status); } && |
| 9904 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9906 | (eval $ac_try) 2>&5 |
| 9907 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9909 | (exit $ac_status); }; }; then |
| 9910 | |
| 9911 | ac_cv_c_artsserver=yes |
| 9912 | |
| 9913 | else |
| 9914 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9916 | |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9917 | fi |
| 9918 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9919 | CFLAGS="$save_CFLAGS" |
| 9920 | fi |
| 9921 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9922 | echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5 |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9923 | echo "${ECHO_T}$ac_cv_c_artsserver" >&6 |
| 9924 | |
| 9925 | if test "$ac_cv_c_artsserver" = "yes" |
| 9926 | then |
| 9927 | ARTSLIBS=$ARTSC_LIBS |
| 9928 | |
| 9929 | ARTSINCL=$ARTSC_CFLAGS |
| 9930 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9931 | |
| 9932 | |
| 9933 | cat >>confdefs.h <<\_ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9934 | #define HAVE_ARTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 9935 | _ACEOF |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 9936 | |
| 9937 | fi |
| 9938 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 9939 | ALSALIBS="" |
| 9940 | |
| 9941 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 9942 | |
| 9943 | for ac_header in alsa/asoundlib.h sys/asoundlib.h |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 9944 | do |
| 9945 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9947 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9951 | fi |
| 9952 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9953 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9954 | else |
| 9955 | # Is the header compilable? |
| 9956 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9957 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9958 | cat >conftest.$ac_ext <<_ACEOF |
| 9959 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9960 | /* confdefs.h. */ |
| 9961 | _ACEOF |
| 9962 | cat confdefs.h >>conftest.$ac_ext |
| 9963 | cat >>conftest.$ac_ext <<_ACEOF |
| 9964 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 9965 | $ac_includes_default |
| 9966 | #include <$ac_header> |
| 9967 | _ACEOF |
| 9968 | rm -f conftest.$ac_objext |
| 9969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9970 | (eval $ac_compile) 2>&5 |
| 9971 | ac_status=$? |
| 9972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9973 | (exit $ac_status); } && |
| 9974 | { ac_try='test -s conftest.$ac_objext' |
| 9975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9976 | (eval $ac_try) 2>&5 |
| 9977 | ac_status=$? |
| 9978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9979 | (exit $ac_status); }; }; then |
| 9980 | ac_header_compiler=yes |
| 9981 | else |
| 9982 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9984 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 9985 | ac_header_compiler=no |
| 9986 | fi |
| 9987 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9988 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9989 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9990 | |
| 9991 | # Is the header present? |
| 9992 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9993 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9994 | cat >conftest.$ac_ext <<_ACEOF |
| 9995 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 9996 | /* confdefs.h. */ |
| 9997 | _ACEOF |
| 9998 | cat confdefs.h >>conftest.$ac_ext |
| 9999 | cat >>conftest.$ac_ext <<_ACEOF |
| 10000 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10001 | #include <$ac_header> |
| 10002 | _ACEOF |
| 10003 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10004 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10005 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10006 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10007 | rm -f conftest.er1 |
| 10008 | cat conftest.err >&5 |
| 10009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10010 | (exit $ac_status); } >/dev/null; then |
| 10011 | if test -s conftest.err; then |
| 10012 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10013 | else |
| 10014 | ac_cpp_err= |
| 10015 | fi |
| 10016 | else |
| 10017 | ac_cpp_err=yes |
| 10018 | fi |
| 10019 | if test -z "$ac_cpp_err"; then |
| 10020 | ac_header_preproc=yes |
| 10021 | else |
| 10022 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10024 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10025 | ac_header_preproc=no |
| 10026 | fi |
| 10027 | rm -f conftest.err conftest.$ac_ext |
| 10028 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10029 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10030 | |
| 10031 | # So? What about this header? |
| 10032 | case $ac_header_compiler:$ac_header_preproc in |
| 10033 | yes:no ) |
| 10034 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10035 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10036 | { 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] | 10037 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10038 | ( |
| 10039 | cat <<\_ASBOX |
| 10040 | ## ------------------------------------ ## |
| 10041 | ## Report this to bug-autoconf@gnu.org. ## |
| 10042 | ## ------------------------------------ ## |
| 10043 | _ASBOX |
| 10044 | ) | |
| 10045 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10046 | ;; |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10047 | no:yes ) |
| 10048 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10049 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10050 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10051 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10052 | { 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] | 10053 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10054 | ( |
| 10055 | cat <<\_ASBOX |
| 10056 | ## ------------------------------------ ## |
| 10057 | ## Report this to bug-autoconf@gnu.org. ## |
| 10058 | ## ------------------------------------ ## |
| 10059 | _ASBOX |
| 10060 | ) | |
| 10061 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10062 | ;; |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10063 | esac |
| 10064 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10068 | else |
| 10069 | eval "$as_ac_Header=$ac_header_preproc" |
| 10070 | fi |
| 10071 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10072 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10073 | |
| 10074 | fi |
| 10075 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10076 | cat >>confdefs.h <<_ACEOF |
| 10077 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10078 | _ACEOF |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 10079 | break |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10080 | fi |
| 10081 | |
| 10082 | done |
| 10083 | |
Marco Pietrobono | 0e79a41 | 2002-08-29 01:51:31 +0000 | [diff] [blame] | 10084 | 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] | 10085 | then |
| 10086 | echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5 |
| 10087 | echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6 |
| 10088 | if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then |
| 10089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10090 | else |
| 10091 | ac_check_lib_save_LIBS=$LIBS |
| 10092 | LIBS="-lasound $LIBS" |
| 10093 | cat >conftest.$ac_ext <<_ACEOF |
| 10094 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10095 | /* confdefs.h. */ |
| 10096 | _ACEOF |
| 10097 | cat confdefs.h >>conftest.$ac_ext |
| 10098 | cat >>conftest.$ac_ext <<_ACEOF |
| 10099 | /* end confdefs.h. */ |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10100 | |
| 10101 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10102 | #ifdef __cplusplus |
| 10103 | extern "C" |
| 10104 | #endif |
| 10105 | /* We use char because int might match the return type of a gcc2 |
| 10106 | builtin and then its argument prototype would still apply. */ |
| 10107 | char snd_pcm_open (); |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10108 | int |
| 10109 | main () |
| 10110 | { |
| 10111 | snd_pcm_open (); |
| 10112 | ; |
| 10113 | return 0; |
| 10114 | } |
| 10115 | _ACEOF |
| 10116 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10118 | (eval $ac_link) 2>&5 |
| 10119 | ac_status=$? |
| 10120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10121 | (exit $ac_status); } && |
| 10122 | { ac_try='test -s conftest$ac_exeext' |
| 10123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10124 | (eval $ac_try) 2>&5 |
| 10125 | ac_status=$? |
| 10126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10127 | (exit $ac_status); }; }; then |
| 10128 | ac_cv_lib_asound_snd_pcm_open=yes |
| 10129 | else |
| 10130 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10131 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10132 | |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 10133 | ac_cv_lib_asound_snd_pcm_open=no |
| 10134 | fi |
| 10135 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10136 | LIBS=$ac_check_lib_save_LIBS |
| 10137 | fi |
| 10138 | echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5 |
| 10139 | echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6 |
| 10140 | if test $ac_cv_lib_asound_snd_pcm_open = yes; then |
| 10141 | |
| 10142 | cat >>confdefs.h <<\_ACEOF |
| 10143 | #define HAVE_ALSA 1 |
| 10144 | _ACEOF |
| 10145 | |
| 10146 | ALSALIBS="-lasound" |
| 10147 | fi |
| 10148 | |
| 10149 | fi |
| 10150 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10151 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10152 | AUDIOIOLIBS="" |
| 10153 | |
| 10154 | |
| 10155 | for ac_header in libaudioio.h |
| 10156 | do |
| 10157 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10158 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10159 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10160 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10161 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10163 | fi |
| 10164 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10165 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10166 | else |
| 10167 | # Is the header compilable? |
| 10168 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10169 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10170 | cat >conftest.$ac_ext <<_ACEOF |
| 10171 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10172 | /* confdefs.h. */ |
| 10173 | _ACEOF |
| 10174 | cat confdefs.h >>conftest.$ac_ext |
| 10175 | cat >>conftest.$ac_ext <<_ACEOF |
| 10176 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10177 | $ac_includes_default |
| 10178 | #include <$ac_header> |
| 10179 | _ACEOF |
| 10180 | rm -f conftest.$ac_objext |
| 10181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10182 | (eval $ac_compile) 2>&5 |
| 10183 | ac_status=$? |
| 10184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10185 | (exit $ac_status); } && |
| 10186 | { ac_try='test -s conftest.$ac_objext' |
| 10187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10188 | (eval $ac_try) 2>&5 |
| 10189 | ac_status=$? |
| 10190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10191 | (exit $ac_status); }; }; then |
| 10192 | ac_header_compiler=yes |
| 10193 | else |
| 10194 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10196 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10197 | ac_header_compiler=no |
| 10198 | fi |
| 10199 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10200 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10201 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10202 | |
| 10203 | # Is the header present? |
| 10204 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10205 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10206 | cat >conftest.$ac_ext <<_ACEOF |
| 10207 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10208 | /* confdefs.h. */ |
| 10209 | _ACEOF |
| 10210 | cat confdefs.h >>conftest.$ac_ext |
| 10211 | cat >>conftest.$ac_ext <<_ACEOF |
| 10212 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10213 | #include <$ac_header> |
| 10214 | _ACEOF |
| 10215 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10216 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10217 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10218 | grep -v '^ *+' conftest.er1 >conftest.err |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10219 | rm -f conftest.er1 |
| 10220 | cat conftest.err >&5 |
| 10221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10222 | (exit $ac_status); } >/dev/null; then |
| 10223 | if test -s conftest.err; then |
| 10224 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10225 | else |
| 10226 | ac_cpp_err= |
| 10227 | fi |
| 10228 | else |
| 10229 | ac_cpp_err=yes |
| 10230 | fi |
| 10231 | if test -z "$ac_cpp_err"; then |
| 10232 | ac_header_preproc=yes |
| 10233 | else |
| 10234 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10236 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10237 | ac_header_preproc=no |
| 10238 | fi |
| 10239 | rm -f conftest.err conftest.$ac_ext |
| 10240 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10241 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10242 | |
| 10243 | # So? What about this header? |
| 10244 | case $ac_header_compiler:$ac_header_preproc in |
| 10245 | yes:no ) |
| 10246 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10247 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10248 | { 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] | 10249 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10250 | ( |
| 10251 | cat <<\_ASBOX |
| 10252 | ## ------------------------------------ ## |
| 10253 | ## Report this to bug-autoconf@gnu.org. ## |
| 10254 | ## ------------------------------------ ## |
| 10255 | _ASBOX |
| 10256 | ) | |
| 10257 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10258 | ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10259 | no:yes ) |
| 10260 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10261 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10262 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10263 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10264 | { 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] | 10265 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10266 | ( |
| 10267 | cat <<\_ASBOX |
| 10268 | ## ------------------------------------ ## |
| 10269 | ## Report this to bug-autoconf@gnu.org. ## |
| 10270 | ## ------------------------------------ ## |
| 10271 | _ASBOX |
| 10272 | ) | |
| 10273 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10274 | ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10275 | esac |
| 10276 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10277 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10278 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10280 | else |
| 10281 | eval "$as_ac_Header=$ac_header_preproc" |
| 10282 | fi |
| 10283 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10284 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10285 | |
| 10286 | fi |
| 10287 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10288 | cat >>confdefs.h <<_ACEOF |
| 10289 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10290 | _ACEOF |
| 10291 | echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5 |
| 10292 | echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6 |
| 10293 | if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then |
| 10294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10295 | else |
| 10296 | ac_check_lib_save_LIBS=$LIBS |
| 10297 | LIBS="-laudioio $LIBS" |
| 10298 | cat >conftest.$ac_ext <<_ACEOF |
| 10299 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10300 | /* confdefs.h. */ |
| 10301 | _ACEOF |
| 10302 | cat confdefs.h >>conftest.$ac_ext |
| 10303 | cat >>conftest.$ac_ext <<_ACEOF |
| 10304 | /* end confdefs.h. */ |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10305 | |
| 10306 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10307 | #ifdef __cplusplus |
| 10308 | extern "C" |
| 10309 | #endif |
| 10310 | /* We use char because int might match the return type of a gcc2 |
| 10311 | builtin and then its argument prototype would still apply. */ |
| 10312 | char AudioIOGetVersion (); |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10313 | int |
| 10314 | main () |
| 10315 | { |
| 10316 | AudioIOGetVersion (); |
| 10317 | ; |
| 10318 | return 0; |
| 10319 | } |
| 10320 | _ACEOF |
| 10321 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10323 | (eval $ac_link) 2>&5 |
| 10324 | ac_status=$? |
| 10325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10326 | (exit $ac_status); } && |
| 10327 | { ac_try='test -s conftest$ac_exeext' |
| 10328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10329 | (eval $ac_try) 2>&5 |
| 10330 | ac_status=$? |
| 10331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10332 | (exit $ac_status); }; }; then |
| 10333 | ac_cv_lib_audioio_AudioIOGetVersion=yes |
| 10334 | else |
| 10335 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10337 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 10338 | ac_cv_lib_audioio_AudioIOGetVersion=no |
| 10339 | fi |
| 10340 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10341 | LIBS=$ac_check_lib_save_LIBS |
| 10342 | fi |
| 10343 | echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5 |
| 10344 | echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6 |
| 10345 | if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then |
| 10346 | AUDIOIOLIBS="-laudioio" |
| 10347 | |
| 10348 | cat >>confdefs.h <<\_ACEOF |
| 10349 | #define HAVE_LIBAUDIOIO 1 |
| 10350 | _ACEOF |
| 10351 | |
| 10352 | fi |
| 10353 | |
| 10354 | fi |
| 10355 | |
| 10356 | done |
| 10357 | |
| 10358 | |
| 10359 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10360 | echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10361 | echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6 |
| 10362 | if test "${ac_cv_mmap64_works+set}" = set; then |
| 10363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10364 | else |
| 10365 | if test "$cross_compiling" = yes; then |
| 10366 | ac_cv_mmap64_works="no" |
| 10367 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10368 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10369 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10370 | /* confdefs.h. */ |
| 10371 | _ACEOF |
| 10372 | cat confdefs.h >>conftest.$ac_ext |
| 10373 | cat >>conftest.$ac_ext <<_ACEOF |
| 10374 | /* end confdefs.h. */ |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10375 | |
| 10376 | #define _FILE_OFFSET_BITS 64 |
| 10377 | #include <stdio.h> |
| 10378 | #include <unistd.h> |
| 10379 | #include <fcntl.h> |
| 10380 | #include <sys/mman.h> |
| 10381 | #include <errno.h> |
| 10382 | |
| 10383 | int main(int argc,char **argv) { |
| 10384 | int fd = open("conftest.map",O_CREAT|O_RDWR,0600); |
| 10385 | if (fd == -1) exit(1); |
| 10386 | |
| 10387 | unlink("conftest.map"); |
| 10388 | |
| 10389 | write(fd,"test",4); |
| 10390 | |
| 10391 | if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) && |
| 10392 | (errno == EINVAL) |
| 10393 | ) { |
| 10394 | exit(1); |
| 10395 | } |
| 10396 | close(fd); |
| 10397 | fprintf(stderr,"success!\n"); |
| 10398 | exit(0); |
| 10399 | } |
| 10400 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10401 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10402 | _ACEOF |
| 10403 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10405 | (eval $ac_link) 2>&5 |
| 10406 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10408 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10410 | (eval $ac_try) 2>&5 |
| 10411 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10413 | (exit $ac_status); }; }; then |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10414 | ac_cv_mmap64_works="yes" |
| 10415 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10416 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10417 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10419 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10420 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10421 | ac_cv_mmap64_works="no" |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10422 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10423 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10424 | fi |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10425 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10426 | echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10427 | echo "${ECHO_T}$ac_cv_mmap64_works" >&6 |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10428 | |
| 10429 | if test "$ac_cv_mmap64_works" = "yes" |
| 10430 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10431 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10432 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10433 | #define _FILE_OFFSET_BITS 64 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10434 | _ACEOF |
Marcus Meissner | 0f6cfbc | 2001-06-08 19:34:56 +0000 | [diff] [blame] | 10435 | |
| 10436 | fi |
| 10437 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10438 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10439 | if test "x${GCC}" = "xyes" |
| 10440 | then |
| 10441 | CFLAGS="$CFLAGS -Wall" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10442 | echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10443 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6 |
| 10444 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
| 10445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10446 | else |
| 10447 | if test "$cross_compiling" = yes; then |
| 10448 | ac_cv_c_gcc_strength_bug="yes" |
| 10449 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10450 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10451 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10452 | /* confdefs.h. */ |
| 10453 | _ACEOF |
| 10454 | cat confdefs.h >>conftest.$ac_ext |
| 10455 | cat >>conftest.$ac_ext <<_ACEOF |
| 10456 | /* end confdefs.h. */ |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10457 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 10458 | int L[4] = {0,1,2,3}; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10459 | int main(void) { |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 10460 | static int Array[3]; |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10461 | unsigned int B = 3; |
| 10462 | int i; |
Alexandre Julliard | d2e1c1a | 1996-03-09 16:12:43 +0000 | [diff] [blame] | 10463 | for(i=0; i<B; i++) Array[i] = i - 3; |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 10464 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
| 10465 | L[i] = 4; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10466 | |
Eric Pouech | 5aee80f | 2000-11-11 00:31:39 +0000 | [diff] [blame] | 10467 | exit( Array[1] != -2 || L[2] != 3); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10468 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10469 | _ACEOF |
| 10470 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10472 | (eval $ac_link) 2>&5 |
| 10473 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10475 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10477 | (eval $ac_try) 2>&5 |
| 10478 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10480 | (exit $ac_status); }; }; then |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10481 | ac_cv_c_gcc_strength_bug="no" |
| 10482 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10483 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10484 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10486 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10487 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10488 | ac_cv_c_gcc_strength_bug="yes" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10489 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 10490 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10491 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10492 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10493 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10494 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10495 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
| 10496 | then |
| 10497 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 10498 | fi |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10499 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10500 | 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] | 10501 | echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6 |
| 10502 | if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then |
| 10503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10504 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10505 | ac_wine_try_cflags_saved=$CFLAGS |
| 10506 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 10507 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10508 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10509 | /* confdefs.h. */ |
| 10510 | _ACEOF |
| 10511 | cat confdefs.h >>conftest.$ac_ext |
| 10512 | cat >>conftest.$ac_ext <<_ACEOF |
| 10513 | /* end confdefs.h. */ |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10514 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10515 | int |
| 10516 | main () |
| 10517 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10518 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10519 | ; |
| 10520 | return 0; |
| 10521 | } |
| 10522 | _ACEOF |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10523 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10525 | (eval $ac_link) 2>&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10526 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10528 | (exit $ac_status); } && |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10529 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10531 | (eval $ac_try) 2>&5 |
| 10532 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10534 | (exit $ac_status); }; }; then |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10535 | ac_cv_c_gcc_stack_boundary="yes" |
| 10536 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10537 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10538 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10539 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10540 | ac_cv_c_gcc_stack_boundary="no" |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10541 | fi |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 10542 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10543 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10544 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10545 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10546 | echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6 |
Alexandre Julliard | f9b94cb | 2000-12-06 03:50:22 +0000 | [diff] [blame] | 10547 | if test "$ac_cv_c_gcc_stack_boundary" = "yes" |
| 10548 | then |
| 10549 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" |
| 10550 | fi |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 10551 | fi |
| 10552 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10553 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10554 | echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5 |
| 10555 | echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6 |
| 10556 | if test "${ac_cv_asm_func_def+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 10558 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10559 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10560 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10561 | /* confdefs.h. */ |
| 10562 | _ACEOF |
| 10563 | cat confdefs.h >>conftest.$ac_ext |
| 10564 | cat >>conftest.$ac_ext <<_ACEOF |
| 10565 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 10566 | 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] | 10567 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10568 | int |
| 10569 | main () |
| 10570 | { |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 10571 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10572 | ; |
| 10573 | return 0; |
| 10574 | } |
| 10575 | _ACEOF |
| 10576 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10578 | (eval $ac_link) 2>&5 |
| 10579 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10581 | (exit $ac_status); } && |
| 10582 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10584 | (eval $ac_try) 2>&5 |
| 10585 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10587 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10588 | ac_cv_asm_func_def=".def" |
Dimitrie O. Paun | c77cbbc | 2000-11-27 23:32:55 +0000 | [diff] [blame] | 10589 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10590 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10592 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 10593 | cat >conftest.$ac_ext <<_ACEOF |
| 10594 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10595 | /* confdefs.h. */ |
| 10596 | _ACEOF |
| 10597 | cat confdefs.h >>conftest.$ac_ext |
| 10598 | cat >>conftest.$ac_ext <<_ACEOF |
| 10599 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 10600 | 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] | 10601 | |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 10602 | int |
| 10603 | main () |
| 10604 | { |
| 10605 | |
| 10606 | ; |
| 10607 | return 0; |
| 10608 | } |
| 10609 | _ACEOF |
| 10610 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10612 | (eval $ac_link) 2>&5 |
| 10613 | ac_status=$? |
| 10614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10615 | (exit $ac_status); } && |
| 10616 | { ac_try='test -s conftest$ac_exeext' |
| 10617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10618 | (eval $ac_try) 2>&5 |
| 10619 | ac_status=$? |
| 10620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10621 | (exit $ac_status); }; }; then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10622 | ac_cv_asm_func_def=".type @function" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 10623 | else |
| 10624 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10626 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10627 | cat >conftest.$ac_ext <<_ACEOF |
| 10628 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10629 | /* confdefs.h. */ |
| 10630 | _ACEOF |
| 10631 | cat confdefs.h >>conftest.$ac_ext |
| 10632 | cat >>conftest.$ac_ext <<_ACEOF |
| 10633 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 10634 | 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] | 10635 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10636 | int |
| 10637 | main () |
| 10638 | { |
| 10639 | |
| 10640 | ; |
| 10641 | return 0; |
| 10642 | } |
| 10643 | _ACEOF |
| 10644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10646 | (eval $ac_link) 2>&5 |
| 10647 | ac_status=$? |
| 10648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10649 | (exit $ac_status); } && |
| 10650 | { ac_try='test -s conftest$ac_exeext' |
| 10651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10652 | (eval $ac_try) 2>&5 |
| 10653 | ac_status=$? |
| 10654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10655 | (exit $ac_status); }; }; then |
| 10656 | ac_cv_asm_func_def=".type 2" |
| 10657 | else |
| 10658 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10660 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10661 | ac_cv_asm_func_def="unknown" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 10662 | fi |
| 10663 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 10664 | fi |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10665 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10666 | fi |
| 10667 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10668 | fi |
| 10669 | echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5 |
| 10670 | echo "${ECHO_T}$ac_cv_asm_func_def" >&6 |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 10671 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10672 | |
| 10673 | |
| 10674 | case "$ac_cv_asm_func_def" in |
| 10675 | ".def") |
| 10676 | cat >>confdefs.h <<\_ACEOF |
| 10677 | #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] | 10678 | _ACEOF |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10679 | ;; |
| 10680 | ".type @function") |
| 10681 | cat >>confdefs.h <<\_ACEOF |
| 10682 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function" |
| 10683 | _ACEOF |
| 10684 | ;; |
| 10685 | ".type 2") |
| 10686 | cat >>confdefs.h <<\_ACEOF |
| 10687 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2" |
| 10688 | _ACEOF |
| 10689 | ;; |
| 10690 | *) |
| 10691 | cat >>confdefs.h <<\_ACEOF |
| 10692 | #define __ASM_FUNC(name) "" |
| 10693 | _ACEOF |
| 10694 | ;; |
| 10695 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 10696 | |
| 10697 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10698 | 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] | 10699 | echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6 |
| 10700 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
| 10701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10702 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10703 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10704 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10705 | /* confdefs.h. */ |
| 10706 | _ACEOF |
| 10707 | cat confdefs.h >>conftest.$ac_ext |
| 10708 | cat >>conftest.$ac_ext <<_ACEOF |
| 10709 | /* end confdefs.h. */ |
Alexandre Julliard | 520852c | 2002-08-07 00:04:44 +0000 | [diff] [blame] | 10710 | 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] | 10711 | extern int ac_test; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10712 | int |
| 10713 | main () |
| 10714 | { |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10715 | if (ac_test) return 1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10716 | ; |
| 10717 | return 0; |
| 10718 | } |
| 10719 | _ACEOF |
| 10720 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10722 | (eval $ac_link) 2>&5 |
| 10723 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10725 | (exit $ac_status); } && |
| 10726 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10728 | (eval $ac_try) 2>&5 |
| 10729 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10731 | (exit $ac_status); }; }; then |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10732 | ac_cv_c_extern_prefix="yes" |
| 10733 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10734 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10736 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10737 | ac_cv_c_extern_prefix="no" |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10738 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10739 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10740 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10741 | echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10742 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6 |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10743 | |
| 10744 | |
| 10745 | |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10746 | if test "$ac_cv_c_extern_prefix" = "yes" |
| 10747 | then |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10748 | cat >>confdefs.h <<\_ACEOF |
| 10749 | #define __ASM_NAME(name) "_" name |
| 10750 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10751 | |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10752 | else |
| 10753 | cat >>confdefs.h <<\_ACEOF |
| 10754 | #define __ASM_NAME(name) name |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10755 | _ACEOF |
Alexandre Julliard | 8cc3a5e | 1996-08-11 15:49:51 +0000 | [diff] [blame] | 10756 | |
| 10757 | fi |
| 10758 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10759 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10760 | echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10761 | echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6 |
| 10762 | if test "${ac_cv_c_asm_string+set}" = set; then |
| 10763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10764 | else |
Alexandre Julliard | 84555cc | 2002-07-22 20:51:02 +0000 | [diff] [blame] | 10765 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10766 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10767 | /* confdefs.h. */ |
| 10768 | _ACEOF |
| 10769 | cat confdefs.h >>conftest.$ac_ext |
| 10770 | cat >>conftest.$ac_ext <<_ACEOF |
| 10771 | /* end confdefs.h. */ |
Marcus Meissner | 49163d5 | 2002-08-20 00:26:40 +0000 | [diff] [blame] | 10772 | 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] | 10773 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10774 | int |
| 10775 | main () |
| 10776 | { |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10777 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10778 | ; |
| 10779 | return 0; |
| 10780 | } |
| 10781 | _ACEOF |
| 10782 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10784 | (eval $ac_link) 2>&5 |
| 10785 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10787 | (exit $ac_status); } && |
| 10788 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10790 | (eval $ac_try) 2>&5 |
| 10791 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10793 | (exit $ac_status); }; }; then |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10794 | ac_cv_c_asm_string="yes" |
| 10795 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10796 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 10797 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10798 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10799 | ac_cv_c_asm_string="no" |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10800 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10801 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10802 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10803 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10804 | echo "${ECHO_T}$ac_cv_c_asm_string" >&6 |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10805 | if test "$ac_cv_c_asm_string" = "yes" |
| 10806 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 10807 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10808 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10809 | #define HAVE_ASM_STRING 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10810 | _ACEOF |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 10811 | |
| 10812 | fi |
| 10813 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 10814 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 10815 | DLLEXT="" |
| 10816 | |
| 10817 | DLLFLAGS="" |
| 10818 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10819 | DLLIBS="" |
| 10820 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 10821 | LDDLLFLAGS="" |
| 10822 | |
| 10823 | LDSHARED="" |
| 10824 | |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 10825 | LIBEXT="so" |
| 10826 | |
| 10827 | IMPLIBEXT="def" |
| 10828 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 10829 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10830 | case $host_os in |
| 10831 | cygwin*|mingw32*) |
| 10832 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 10833 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 10834 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 10835 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10837 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 10838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10839 | else |
| 10840 | if test -n "$DLLTOOL"; then |
| 10841 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 10842 | else |
| 10843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10844 | for as_dir in $PATH |
| 10845 | do |
| 10846 | IFS=$as_save_IFS |
| 10847 | test -z "$as_dir" && as_dir=. |
| 10848 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10849 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10850 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 10851 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10852 | break 2 |
| 10853 | fi |
| 10854 | done |
| 10855 | done |
| 10856 | |
| 10857 | fi |
| 10858 | fi |
| 10859 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 10860 | if test -n "$DLLTOOL"; then |
| 10861 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 10862 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 10863 | else |
| 10864 | echo "$as_me:$LINENO: result: no" >&5 |
| 10865 | echo "${ECHO_T}no" >&6 |
| 10866 | fi |
| 10867 | |
| 10868 | fi |
| 10869 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 10870 | ac_ct_DLLTOOL=$DLLTOOL |
| 10871 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 10872 | set dummy dlltool; ac_word=$2 |
| 10873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10875 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
| 10876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10877 | else |
| 10878 | if test -n "$ac_ct_DLLTOOL"; then |
| 10879 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 10880 | else |
| 10881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10882 | for as_dir in $PATH |
| 10883 | do |
| 10884 | IFS=$as_save_IFS |
| 10885 | test -z "$as_dir" && as_dir=. |
| 10886 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10888 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 10889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10890 | break 2 |
| 10891 | fi |
| 10892 | done |
| 10893 | done |
| 10894 | |
| 10895 | test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" |
| 10896 | fi |
| 10897 | fi |
| 10898 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 10899 | if test -n "$ac_ct_DLLTOOL"; then |
| 10900 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
| 10901 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 |
| 10902 | else |
| 10903 | echo "$as_me:$LINENO: result: no" >&5 |
| 10904 | echo "${ECHO_T}no" >&6 |
| 10905 | fi |
| 10906 | |
| 10907 | DLLTOOL=$ac_ct_DLLTOOL |
| 10908 | else |
| 10909 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 10910 | fi |
| 10911 | |
| 10912 | if test -n "$ac_tool_prefix"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10913 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 10914 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 10915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10917 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
| 10918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10919 | else |
| 10920 | if test -n "$DLLWRAP"; then |
| 10921 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 10922 | else |
| 10923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10924 | for as_dir in $PATH |
| 10925 | do |
| 10926 | IFS=$as_save_IFS |
| 10927 | test -z "$as_dir" && as_dir=. |
| 10928 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10930 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 10931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10932 | break 2 |
| 10933 | fi |
| 10934 | done |
| 10935 | done |
| 10936 | |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 10937 | fi |
| 10938 | fi |
| 10939 | DLLWRAP=$ac_cv_prog_DLLWRAP |
| 10940 | if test -n "$DLLWRAP"; then |
| 10941 | echo "$as_me:$LINENO: result: $DLLWRAP" >&5 |
| 10942 | echo "${ECHO_T}$DLLWRAP" >&6 |
| 10943 | else |
| 10944 | echo "$as_me:$LINENO: result: no" >&5 |
| 10945 | echo "${ECHO_T}no" >&6 |
| 10946 | fi |
| 10947 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10948 | fi |
| 10949 | if test -z "$ac_cv_prog_DLLWRAP"; then |
| 10950 | ac_ct_DLLWRAP=$DLLWRAP |
| 10951 | # Extract the first word of "dllwrap", so it can be a program name with args. |
| 10952 | set dummy dllwrap; ac_word=$2 |
| 10953 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10954 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10955 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then |
| 10956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10957 | else |
| 10958 | if test -n "$ac_ct_DLLWRAP"; then |
| 10959 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 10960 | else |
| 10961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10962 | for as_dir in $PATH |
| 10963 | do |
| 10964 | IFS=$as_save_IFS |
| 10965 | test -z "$as_dir" && as_dir=. |
| 10966 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10967 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10968 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
| 10969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10970 | break 2 |
| 10971 | fi |
| 10972 | done |
| 10973 | done |
| 10974 | |
| 10975 | test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false" |
| 10976 | fi |
| 10977 | fi |
| 10978 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 10979 | if test -n "$ac_ct_DLLWRAP"; then |
| 10980 | echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 |
| 10981 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6 |
| 10982 | else |
| 10983 | echo "$as_me:$LINENO: result: no" >&5 |
| 10984 | echo "${ECHO_T}no" >&6 |
| 10985 | fi |
| 10986 | |
| 10987 | DLLWRAP=$ac_ct_DLLWRAP |
| 10988 | else |
| 10989 | DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 10990 | fi |
| 10991 | |
| 10992 | if test "$DLLWRAP" = "false"; then |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10993 | LIBEXT="a" |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 10994 | else |
| 10995 | LIBEXT="dll" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10996 | fi |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 10997 | IMPLIBEXT="a" |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 10998 | ;; |
| 10999 | *) |
| 11000 | |
| 11001 | for ac_header in dlfcn.h |
| 11002 | do |
| 11003 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 11004 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11005 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11006 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11007 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11009 | fi |
| 11010 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11011 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11012 | else |
| 11013 | # Is the header compilable? |
| 11014 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11015 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 11016 | cat >conftest.$ac_ext <<_ACEOF |
| 11017 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11018 | /* confdefs.h. */ |
| 11019 | _ACEOF |
| 11020 | cat confdefs.h >>conftest.$ac_ext |
| 11021 | cat >>conftest.$ac_ext <<_ACEOF |
| 11022 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11023 | $ac_includes_default |
| 11024 | #include <$ac_header> |
| 11025 | _ACEOF |
| 11026 | rm -f conftest.$ac_objext |
| 11027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11028 | (eval $ac_compile) 2>&5 |
| 11029 | ac_status=$? |
| 11030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11031 | (exit $ac_status); } && |
| 11032 | { ac_try='test -s conftest.$ac_objext' |
| 11033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11034 | (eval $ac_try) 2>&5 |
| 11035 | ac_status=$? |
| 11036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11037 | (exit $ac_status); }; }; then |
| 11038 | ac_header_compiler=yes |
| 11039 | else |
| 11040 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11042 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11043 | ac_header_compiler=no |
| 11044 | fi |
| 11045 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 11046 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11047 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11048 | |
| 11049 | # Is the header present? |
| 11050 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11051 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 11052 | cat >conftest.$ac_ext <<_ACEOF |
| 11053 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11054 | /* confdefs.h. */ |
| 11055 | _ACEOF |
| 11056 | cat confdefs.h >>conftest.$ac_ext |
| 11057 | cat >>conftest.$ac_ext <<_ACEOF |
| 11058 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11059 | #include <$ac_header> |
| 11060 | _ACEOF |
| 11061 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11062 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11063 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11064 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11065 | rm -f conftest.er1 |
| 11066 | cat conftest.err >&5 |
| 11067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11068 | (exit $ac_status); } >/dev/null; then |
| 11069 | if test -s conftest.err; then |
| 11070 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 11071 | else |
| 11072 | ac_cpp_err= |
| 11073 | fi |
| 11074 | else |
| 11075 | ac_cpp_err=yes |
| 11076 | fi |
| 11077 | if test -z "$ac_cpp_err"; then |
| 11078 | ac_header_preproc=yes |
| 11079 | else |
| 11080 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11082 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11083 | ac_header_preproc=no |
| 11084 | fi |
| 11085 | rm -f conftest.err conftest.$ac_ext |
| 11086 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11087 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11088 | |
| 11089 | # So? What about this header? |
| 11090 | case $ac_header_compiler:$ac_header_preproc in |
| 11091 | yes:no ) |
| 11092 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11093 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11094 | { 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] | 11095 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11096 | ( |
| 11097 | cat <<\_ASBOX |
| 11098 | ## ------------------------------------ ## |
| 11099 | ## Report this to bug-autoconf@gnu.org. ## |
| 11100 | ## ------------------------------------ ## |
| 11101 | _ASBOX |
| 11102 | ) | |
| 11103 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11104 | ;; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11105 | no:yes ) |
| 11106 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11107 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11108 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11109 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11110 | { 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] | 11111 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11112 | ( |
| 11113 | cat <<\_ASBOX |
| 11114 | ## ------------------------------------ ## |
| 11115 | ## Report this to bug-autoconf@gnu.org. ## |
| 11116 | ## ------------------------------------ ## |
| 11117 | _ASBOX |
| 11118 | ) | |
| 11119 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11120 | ;; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11121 | esac |
| 11122 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11123 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 11125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11126 | else |
| 11127 | eval "$as_ac_Header=$ac_header_preproc" |
| 11128 | fi |
| 11129 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 11130 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11131 | |
| 11132 | fi |
| 11133 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11134 | cat >>confdefs.h <<_ACEOF |
| 11135 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11136 | _ACEOF |
| 11137 | |
| 11138 | for ac_func in dlopen |
| 11139 | do |
| 11140 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11141 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11142 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11143 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11145 | else |
| 11146 | cat >conftest.$ac_ext <<_ACEOF |
| 11147 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11148 | /* confdefs.h. */ |
| 11149 | _ACEOF |
| 11150 | cat confdefs.h >>conftest.$ac_ext |
| 11151 | cat >>conftest.$ac_ext <<_ACEOF |
| 11152 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11153 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11154 | which can conflict with char $ac_func (); below. |
| 11155 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11156 | <limits.h> exists even on freestanding compilers. */ |
| 11157 | #ifdef __STDC__ |
| 11158 | # include <limits.h> |
| 11159 | #else |
| 11160 | # include <assert.h> |
| 11161 | #endif |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11162 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11163 | #ifdef __cplusplus |
| 11164 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11165 | { |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11166 | #endif |
| 11167 | /* We use char because int might match the return type of a gcc2 |
| 11168 | builtin and then its argument prototype would still apply. */ |
| 11169 | char $ac_func (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11170 | /* The GNU C library defines this for functions which it implements |
| 11171 | to always fail with ENOSYS. Some functions are actually named |
| 11172 | something starting with __ and the normal name is an alias. */ |
| 11173 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11174 | choke me |
| 11175 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11176 | char (*f) () = $ac_func; |
| 11177 | #endif |
| 11178 | #ifdef __cplusplus |
| 11179 | } |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11180 | #endif |
| 11181 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11182 | int |
| 11183 | main () |
| 11184 | { |
| 11185 | return f != $ac_func; |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11186 | ; |
| 11187 | return 0; |
| 11188 | } |
| 11189 | _ACEOF |
| 11190 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11192 | (eval $ac_link) 2>&5 |
| 11193 | ac_status=$? |
| 11194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11195 | (exit $ac_status); } && |
| 11196 | { ac_try='test -s conftest$ac_exeext' |
| 11197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11198 | (eval $ac_try) 2>&5 |
| 11199 | ac_status=$? |
| 11200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11201 | (exit $ac_status); }; }; then |
| 11202 | eval "$as_ac_var=yes" |
| 11203 | else |
| 11204 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11206 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11207 | eval "$as_ac_var=no" |
| 11208 | fi |
| 11209 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11210 | fi |
| 11211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11212 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11213 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11214 | cat >>confdefs.h <<_ACEOF |
| 11215 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11216 | _ACEOF |
| 11217 | |
| 11218 | else |
| 11219 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11220 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11221 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11223 | else |
| 11224 | ac_check_lib_save_LIBS=$LIBS |
| 11225 | LIBS="-ldl $LIBS" |
| 11226 | cat >conftest.$ac_ext <<_ACEOF |
| 11227 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11228 | /* confdefs.h. */ |
| 11229 | _ACEOF |
| 11230 | cat confdefs.h >>conftest.$ac_ext |
| 11231 | cat >>conftest.$ac_ext <<_ACEOF |
| 11232 | /* end confdefs.h. */ |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11233 | |
| 11234 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11235 | #ifdef __cplusplus |
| 11236 | extern "C" |
| 11237 | #endif |
| 11238 | /* We use char because int might match the return type of a gcc2 |
| 11239 | builtin and then its argument prototype would still apply. */ |
| 11240 | char dlopen (); |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11241 | int |
| 11242 | main () |
| 11243 | { |
| 11244 | dlopen (); |
| 11245 | ; |
| 11246 | return 0; |
| 11247 | } |
| 11248 | _ACEOF |
| 11249 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11250 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11251 | (eval $ac_link) 2>&5 |
| 11252 | ac_status=$? |
| 11253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11254 | (exit $ac_status); } && |
| 11255 | { ac_try='test -s conftest$ac_exeext' |
| 11256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11257 | (eval $ac_try) 2>&5 |
| 11258 | ac_status=$? |
| 11259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11260 | (exit $ac_status); }; }; then |
| 11261 | ac_cv_lib_dl_dlopen=yes |
| 11262 | else |
| 11263 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11265 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11266 | ac_cv_lib_dl_dlopen=no |
| 11267 | fi |
| 11268 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11269 | LIBS=$ac_check_lib_save_LIBS |
| 11270 | fi |
| 11271 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11272 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11273 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11274 | |
| 11275 | cat >>confdefs.h <<\_ACEOF |
| 11276 | #define HAVE_DLOPEN 1 |
| 11277 | _ACEOF |
| 11278 | |
| 11279 | DLLIBS="-ldl" |
| 11280 | else |
| 11281 | LIBEXT="a" |
| 11282 | fi |
| 11283 | |
| 11284 | fi |
| 11285 | done |
| 11286 | |
| 11287 | else |
| 11288 | LIBEXT="a" |
| 11289 | fi |
| 11290 | |
| 11291 | done |
| 11292 | |
| 11293 | |
| 11294 | if test "$LIBEXT" = "so" |
| 11295 | then |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11296 | DLLFLAGS="-fPIC" |
| 11297 | DLLEXT=".so" |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11298 | 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] | 11299 | echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6 |
| 11300 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then |
| 11301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 11302 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11303 | ac_wine_try_cflags_saved=$CFLAGS |
| 11304 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic" |
| 11305 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11306 | #line $LINENO "configure" |
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 | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 11312 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11313 | int |
| 11314 | main () |
| 11315 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11316 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11317 | ; |
| 11318 | return 0; |
| 11319 | } |
| 11320 | _ACEOF |
| 11321 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11323 | (eval $ac_link) 2>&5 |
| 11324 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11326 | (exit $ac_status); } && |
| 11327 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11329 | (eval $ac_try) 2>&5 |
| 11330 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11332 | (exit $ac_status); }; }; then |
Bang Jun-Young | 37e5e7f | 2001-06-06 21:21:27 +0000 | [diff] [blame] | 11333 | ac_cv_c_dll_gnuelf="yes" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 11334 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11335 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11337 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11338 | ac_cv_c_dll_gnuelf="no" |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 11339 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11340 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11341 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11342 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11343 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11344 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11345 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
| 11346 | then |
| 11347 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" |
| 11348 | LDDLLFLAGS="-Wl,-Bsymbolic" |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 11349 | echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5 |
| 11350 | echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6 |
| 11351 | if test "${ac_cv_c_dll_zdefs+set}" = set; then |
| 11352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11353 | else |
| 11354 | ac_wine_try_cflags_saved=$CFLAGS |
| 11355 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" |
| 11356 | cat >conftest.$ac_ext <<_ACEOF |
| 11357 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11358 | /* confdefs.h. */ |
| 11359 | _ACEOF |
| 11360 | cat confdefs.h >>conftest.$ac_ext |
| 11361 | cat >>conftest.$ac_ext <<_ACEOF |
| 11362 | /* end confdefs.h. */ |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 11363 | |
| 11364 | int |
| 11365 | main () |
| 11366 | { |
| 11367 | |
| 11368 | ; |
| 11369 | return 0; |
| 11370 | } |
| 11371 | _ACEOF |
| 11372 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11374 | (eval $ac_link) 2>&5 |
| 11375 | ac_status=$? |
| 11376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11377 | (exit $ac_status); } && |
| 11378 | { ac_try='test -s conftest$ac_exeext' |
| 11379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11380 | (eval $ac_try) 2>&5 |
| 11381 | ac_status=$? |
| 11382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11383 | (exit $ac_status); }; }; then |
| 11384 | ac_cv_c_dll_zdefs="yes" |
| 11385 | else |
| 11386 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11388 | |
Alexandre Julliard | f2abe47 | 2002-11-21 04:13:35 +0000 | [diff] [blame] | 11389 | ac_cv_c_dll_zdefs="no" |
| 11390 | fi |
| 11391 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11392 | CFLAGS=$ac_wine_try_cflags_saved |
| 11393 | fi |
| 11394 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5 |
| 11395 | echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6 |
| 11396 | if test "$ac_cv_c_dll_zdefs" = "yes" |
| 11397 | then |
| 11398 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" |
| 11399 | fi |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11400 | else |
| 11401 | 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] | 11402 | echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6 |
| 11403 | if test "${ac_cv_c_dll_unixware+set}" = set; then |
| 11404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 11405 | else |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11406 | ac_wine_try_cflags_saved=$CFLAGS |
| 11407 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" |
| 11408 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11409 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11410 | /* confdefs.h. */ |
| 11411 | _ACEOF |
| 11412 | cat confdefs.h >>conftest.$ac_ext |
| 11413 | cat >>conftest.$ac_ext <<_ACEOF |
| 11414 | /* end confdefs.h. */ |
Todd Vierling | 4b992b0 | 1998-12-15 15:26:27 +0000 | [diff] [blame] | 11415 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11416 | int |
| 11417 | main () |
| 11418 | { |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11419 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11420 | ; |
| 11421 | return 0; |
| 11422 | } |
| 11423 | _ACEOF |
| 11424 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11426 | (eval $ac_link) 2>&5 |
| 11427 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11429 | (exit $ac_status); } && |
| 11430 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11432 | (eval $ac_try) 2>&5 |
| 11433 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11435 | (exit $ac_status); }; }; then |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11436 | ac_cv_c_dll_unixware="yes" |
| 11437 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11438 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11440 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11441 | ac_cv_c_dll_unixware="no" |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 11442 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11443 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11444 | CFLAGS=$ac_wine_try_cflags_saved |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11445 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11446 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 11447 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6 |
Alexandre Julliard | 466ae14 | 2002-05-07 18:33:47 +0000 | [diff] [blame] | 11448 | if test "$ac_cv_c_dll_unixware" = "yes" |
| 11449 | then |
| 11450 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" |
| 11451 | LDDLLFLAGS="-Wl,-B,symbolic" |
| 11452 | fi |
| 11453 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11454 | fi |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 11455 | |
| 11456 | CROSSTEST="" |
| 11457 | |
| 11458 | if test "$cross_compiling" = "no" |
| 11459 | then |
| 11460 | for ac_prog in i586-mingw32msvc-gcc |
| 11461 | do |
| 11462 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11463 | set dummy $ac_prog; ac_word=$2 |
| 11464 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11466 | if test "${ac_cv_prog_CROSSCC+set}" = set; then |
| 11467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11468 | else |
| 11469 | if test -n "$CROSSCC"; then |
| 11470 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. |
| 11471 | else |
| 11472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11473 | for as_dir in $PATH |
| 11474 | do |
| 11475 | IFS=$as_save_IFS |
| 11476 | test -z "$as_dir" && as_dir=. |
| 11477 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11478 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11479 | ac_cv_prog_CROSSCC="$ac_prog" |
| 11480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11481 | break 2 |
| 11482 | fi |
| 11483 | done |
| 11484 | done |
| 11485 | |
| 11486 | fi |
| 11487 | fi |
| 11488 | CROSSCC=$ac_cv_prog_CROSSCC |
| 11489 | if test -n "$CROSSCC"; then |
| 11490 | echo "$as_me:$LINENO: result: $CROSSCC" >&5 |
| 11491 | echo "${ECHO_T}$CROSSCC" >&6 |
| 11492 | else |
| 11493 | echo "$as_me:$LINENO: result: no" >&5 |
| 11494 | echo "${ECHO_T}no" >&6 |
| 11495 | fi |
| 11496 | |
| 11497 | test -n "$CROSSCC" && break |
| 11498 | done |
| 11499 | test -n "$CROSSCC" || CROSSCC="false" |
| 11500 | |
| 11501 | for ac_prog in i586-mingw32msvc-dlltool |
| 11502 | do |
| 11503 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11504 | set dummy $ac_prog; ac_word=$2 |
| 11505 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11507 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
| 11508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11509 | else |
| 11510 | if test -n "$DLLTOOL"; then |
| 11511 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 11512 | else |
| 11513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11514 | for as_dir in $PATH |
| 11515 | do |
| 11516 | IFS=$as_save_IFS |
| 11517 | test -z "$as_dir" && as_dir=. |
| 11518 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11519 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11520 | ac_cv_prog_DLLTOOL="$ac_prog" |
| 11521 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11522 | break 2 |
| 11523 | fi |
| 11524 | done |
| 11525 | done |
| 11526 | |
| 11527 | fi |
| 11528 | fi |
| 11529 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 11530 | if test -n "$DLLTOOL"; then |
| 11531 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
| 11532 | echo "${ECHO_T}$DLLTOOL" >&6 |
| 11533 | else |
| 11534 | echo "$as_me:$LINENO: result: no" >&5 |
| 11535 | echo "${ECHO_T}no" >&6 |
| 11536 | fi |
| 11537 | |
| 11538 | test -n "$DLLTOOL" && break |
| 11539 | done |
| 11540 | test -n "$DLLTOOL" || DLLTOOL="false" |
| 11541 | |
| 11542 | if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi |
| 11543 | fi |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 11544 | ;; |
| 11545 | esac |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 11546 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 11547 | if test "$LIBEXT" = "a"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11548 | { { 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] | 11549 | It is currently not possible to build Wine without shared library |
| 11550 | (.so) support to allow transparent switch between .so and .dll files. |
| 11551 | If you are using Linux, you will need a newer binutils. |
| 11552 | " >&5 |
| 11553 | echo "$as_me: error: could not find a way to build shared libraries. |
| 11554 | It is currently not possible to build Wine without shared library |
| 11555 | (.so) support to allow transparent switch between .so and .dll files. |
| 11556 | If you are using Linux, you will need a newer binutils. |
| 11557 | " >&2;} |
| 11558 | { (exit 1); exit 1; }; } |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 11559 | fi |
| 11560 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 11561 | case $build_os in |
| 11562 | cygwin*|mingw32*) |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11563 | LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\"" |
| 11564 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 11565 | *) |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11566 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\"" |
| 11567 | ;; |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 11568 | esac |
| 11569 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11570 | CRTLIBS="" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11571 | |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 11572 | case $host_os in |
| 11573 | mingw32*) |
| 11574 | CRTLIBS="-lmsvcrt" ;; |
| 11575 | esac |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 11576 | |
| 11577 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11578 | if test "$LIBEXT" = "so" |
| 11579 | then |
| 11580 | # Extract the first word of "ldd", so it can be a program name with args. |
| 11581 | set dummy ldd; ac_word=$2 |
| 11582 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 11584 | if test "${ac_cv_path_LDD+set}" = set; then |
| 11585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11586 | else |
| 11587 | case $LDD in |
| 11588 | [\\/]* | ?:[\\/]*) |
| 11589 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. |
| 11590 | ;; |
| 11591 | *) |
| 11592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 11593 | as_dummy="/sbin:/usr/sbin:$PATH" |
| 11594 | for as_dir in $as_dummy |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11595 | do |
| 11596 | IFS=$as_save_IFS |
| 11597 | test -z "$as_dir" && as_dir=. |
| 11598 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11599 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11600 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" |
| 11601 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11602 | break 2 |
| 11603 | fi |
| 11604 | done |
| 11605 | done |
| 11606 | |
| 11607 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" |
| 11608 | ;; |
| 11609 | esac |
| 11610 | fi |
| 11611 | LDD=$ac_cv_path_LDD |
| 11612 | |
| 11613 | if test -n "$LDD"; then |
| 11614 | echo "$as_me:$LINENO: result: $LDD" >&5 |
| 11615 | echo "${ECHO_T}$LDD" >&6 |
| 11616 | else |
| 11617 | echo "$as_me:$LINENO: result: no" >&5 |
| 11618 | echo "${ECHO_T}no" >&6 |
| 11619 | fi |
| 11620 | |
| 11621 | |
| 11622 | echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
| 11623 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6 |
| 11624 | if test "${ac_cv_lib_soname_X11+set}" = set; then |
| 11625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11626 | else |
| 11627 | ac_get_soname_save_LIBS=$LIBS |
| 11628 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 11629 | cat >conftest.$ac_ext <<_ACEOF |
| 11630 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11631 | /* confdefs.h. */ |
| 11632 | _ACEOF |
| 11633 | cat confdefs.h >>conftest.$ac_ext |
| 11634 | cat >>conftest.$ac_ext <<_ACEOF |
| 11635 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11636 | |
| 11637 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11638 | #ifdef __cplusplus |
| 11639 | extern "C" |
| 11640 | #endif |
| 11641 | /* We use char because int might match the return type of a gcc2 |
| 11642 | builtin and then its argument prototype would still apply. */ |
| 11643 | char XCreateWindow (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11644 | int |
| 11645 | main () |
| 11646 | { |
| 11647 | XCreateWindow (); |
| 11648 | ; |
| 11649 | return 0; |
| 11650 | } |
| 11651 | _ACEOF |
| 11652 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11654 | (eval $ac_link) 2>&5 |
| 11655 | ac_status=$? |
| 11656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11657 | (exit $ac_status); } && |
| 11658 | { ac_try='test -s conftest$ac_exeext' |
| 11659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11660 | (eval $ac_try) 2>&5 |
| 11661 | ac_status=$? |
| 11662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11663 | (exit $ac_status); }; }; then |
| 11664 | ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 11665 | if test "x$ac_cv_lib_soname_X11" = "x" |
| 11666 | then |
| 11667 | ac_cv_lib_soname_X11="libX11.so" |
| 11668 | fi |
| 11669 | else |
| 11670 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11672 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11673 | ac_cv_lib_soname_X11="libX11.so" |
| 11674 | fi |
| 11675 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11676 | LIBS=$ac_get_soname_save_LIBS |
| 11677 | fi |
| 11678 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 |
| 11679 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6 |
| 11680 | if test "x$ac_cv_lib_soname_X11" != xNONE |
| 11681 | then |
| 11682 | cat >>confdefs.h <<_ACEOF |
| 11683 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" |
| 11684 | _ACEOF |
| 11685 | fi |
| 11686 | |
| 11687 | echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
| 11688 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6 |
| 11689 | if test "${ac_cv_lib_soname_Xext+set}" = set; then |
| 11690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11691 | else |
| 11692 | ac_get_soname_save_LIBS=$LIBS |
| 11693 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 11694 | cat >conftest.$ac_ext <<_ACEOF |
| 11695 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11696 | /* confdefs.h. */ |
| 11697 | _ACEOF |
| 11698 | cat confdefs.h >>conftest.$ac_ext |
| 11699 | cat >>conftest.$ac_ext <<_ACEOF |
| 11700 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11701 | |
| 11702 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11703 | #ifdef __cplusplus |
| 11704 | extern "C" |
| 11705 | #endif |
| 11706 | /* We use char because int might match the return type of a gcc2 |
| 11707 | builtin and then its argument prototype would still apply. */ |
| 11708 | char XextCreateExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11709 | int |
| 11710 | main () |
| 11711 | { |
| 11712 | XextCreateExtension (); |
| 11713 | ; |
| 11714 | return 0; |
| 11715 | } |
| 11716 | _ACEOF |
| 11717 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11719 | (eval $ac_link) 2>&5 |
| 11720 | ac_status=$? |
| 11721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11722 | (exit $ac_status); } && |
| 11723 | { ac_try='test -s conftest$ac_exeext' |
| 11724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11725 | (eval $ac_try) 2>&5 |
| 11726 | ac_status=$? |
| 11727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11728 | (exit $ac_status); }; }; then |
| 11729 | ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 11730 | if test "x$ac_cv_lib_soname_Xext" = "x" |
| 11731 | then |
| 11732 | ac_cv_lib_soname_Xext="libXext.so" |
| 11733 | fi |
| 11734 | else |
| 11735 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11737 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11738 | ac_cv_lib_soname_Xext="libXext.so" |
| 11739 | fi |
| 11740 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11741 | LIBS=$ac_get_soname_save_LIBS |
| 11742 | fi |
| 11743 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5 |
| 11744 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6 |
| 11745 | if test "x$ac_cv_lib_soname_Xext" != xNONE |
| 11746 | then |
| 11747 | cat >>confdefs.h <<_ACEOF |
| 11748 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" |
| 11749 | _ACEOF |
| 11750 | fi |
| 11751 | |
| 11752 | echo "$as_me:$LINENO: checking for -lXrender soname" >&5 |
| 11753 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6 |
| 11754 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then |
| 11755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11756 | else |
| 11757 | ac_get_soname_save_LIBS=$LIBS |
| 11758 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
| 11759 | cat >conftest.$ac_ext <<_ACEOF |
| 11760 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11761 | /* confdefs.h. */ |
| 11762 | _ACEOF |
| 11763 | cat confdefs.h >>conftest.$ac_ext |
| 11764 | cat >>conftest.$ac_ext <<_ACEOF |
| 11765 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11766 | |
| 11767 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11768 | #ifdef __cplusplus |
| 11769 | extern "C" |
| 11770 | #endif |
| 11771 | /* We use char because int might match the return type of a gcc2 |
| 11772 | builtin and then its argument prototype would still apply. */ |
| 11773 | char XRenderQueryExtension (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11774 | int |
| 11775 | main () |
| 11776 | { |
| 11777 | XRenderQueryExtension (); |
| 11778 | ; |
| 11779 | return 0; |
| 11780 | } |
| 11781 | _ACEOF |
| 11782 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11784 | (eval $ac_link) 2>&5 |
| 11785 | ac_status=$? |
| 11786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11787 | (exit $ac_status); } && |
| 11788 | { ac_try='test -s conftest$ac_exeext' |
| 11789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11790 | (eval $ac_try) 2>&5 |
| 11791 | ac_status=$? |
| 11792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11793 | (exit $ac_status); }; }; then |
| 11794 | ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 11795 | if test "x$ac_cv_lib_soname_Xrender" = "x" |
| 11796 | then |
| 11797 | ac_cv_lib_soname_Xrender="libXrender.so" |
| 11798 | fi |
| 11799 | else |
| 11800 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11802 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11803 | ac_cv_lib_soname_Xrender="libXrender.so" |
| 11804 | fi |
| 11805 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11806 | LIBS=$ac_get_soname_save_LIBS |
| 11807 | fi |
| 11808 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 |
| 11809 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6 |
| 11810 | if test "x$ac_cv_lib_soname_Xrender" != xNONE |
| 11811 | then |
| 11812 | cat >>confdefs.h <<_ACEOF |
| 11813 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" |
| 11814 | _ACEOF |
| 11815 | fi |
| 11816 | |
| 11817 | echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 |
| 11818 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6 |
| 11819 | if test "${ac_cv_lib_soname_freetype+set}" = set; then |
| 11820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11821 | else |
| 11822 | ac_get_soname_save_LIBS=$LIBS |
| 11823 | LIBS="-lfreetype $X_LIBS $LIBS" |
| 11824 | cat >conftest.$ac_ext <<_ACEOF |
| 11825 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11826 | /* confdefs.h. */ |
| 11827 | _ACEOF |
| 11828 | cat confdefs.h >>conftest.$ac_ext |
| 11829 | cat >>conftest.$ac_ext <<_ACEOF |
| 11830 | /* end confdefs.h. */ |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11831 | |
| 11832 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11833 | #ifdef __cplusplus |
| 11834 | extern "C" |
| 11835 | #endif |
| 11836 | /* We use char because int might match the return type of a gcc2 |
| 11837 | builtin and then its argument prototype would still apply. */ |
| 11838 | char FT_Init_FreeType (); |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11839 | int |
| 11840 | main () |
| 11841 | { |
| 11842 | FT_Init_FreeType (); |
| 11843 | ; |
| 11844 | return 0; |
| 11845 | } |
| 11846 | _ACEOF |
| 11847 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11849 | (eval $ac_link) 2>&5 |
| 11850 | ac_status=$? |
| 11851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11852 | (exit $ac_status); } && |
| 11853 | { ac_try='test -s conftest$ac_exeext' |
| 11854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11855 | (eval $ac_try) 2>&5 |
| 11856 | ac_status=$? |
| 11857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11858 | (exit $ac_status); }; }; then |
| 11859 | ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 11860 | if test "x$ac_cv_lib_soname_freetype" = "x" |
| 11861 | then |
| 11862 | ac_cv_lib_soname_freetype="libfreetype.so" |
| 11863 | fi |
| 11864 | else |
| 11865 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11866 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11867 | |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 11868 | ac_cv_lib_soname_freetype="libfreetype.so" |
| 11869 | fi |
| 11870 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11871 | LIBS=$ac_get_soname_save_LIBS |
| 11872 | fi |
| 11873 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 |
| 11874 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6 |
| 11875 | if test "x$ac_cv_lib_soname_freetype" != xNONE |
| 11876 | then |
| 11877 | cat >>confdefs.h <<_ACEOF |
| 11878 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
| 11879 | _ACEOF |
| 11880 | fi |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 11881 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 11882 | echo "$as_me:$LINENO: checking for -lGL soname" >&5 |
| 11883 | echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6 |
| 11884 | if test "${ac_cv_lib_soname_GL+set}" = set; then |
| 11885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11886 | else |
| 11887 | ac_get_soname_save_LIBS=$LIBS |
| 11888 | LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS" |
| 11889 | cat >conftest.$ac_ext <<_ACEOF |
| 11890 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11891 | /* confdefs.h. */ |
| 11892 | _ACEOF |
| 11893 | cat confdefs.h >>conftest.$ac_ext |
| 11894 | cat >>conftest.$ac_ext <<_ACEOF |
| 11895 | /* end confdefs.h. */ |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 11896 | |
| 11897 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11898 | #ifdef __cplusplus |
| 11899 | extern "C" |
| 11900 | #endif |
| 11901 | /* We use char because int might match the return type of a gcc2 |
| 11902 | builtin and then its argument prototype would still apply. */ |
| 11903 | char glXQueryExtension (); |
| 11904 | int |
| 11905 | main () |
| 11906 | { |
| 11907 | glXQueryExtension (); |
| 11908 | ; |
| 11909 | return 0; |
| 11910 | } |
| 11911 | _ACEOF |
| 11912 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11913 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11914 | (eval $ac_link) 2>&5 |
| 11915 | ac_status=$? |
| 11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11917 | (exit $ac_status); } && |
| 11918 | { ac_try='test -s conftest$ac_exeext' |
| 11919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11920 | (eval $ac_try) 2>&5 |
| 11921 | ac_status=$? |
| 11922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11923 | (exit $ac_status); }; }; then |
| 11924 | ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 11925 | if test "x$ac_cv_lib_soname_GL" = "x" |
| 11926 | then |
| 11927 | ac_cv_lib_soname_GL="libGL.so" |
| 11928 | fi |
| 11929 | else |
| 11930 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11932 | |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 11933 | ac_cv_lib_soname_GL="libGL.so" |
| 11934 | fi |
| 11935 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11936 | LIBS=$ac_get_soname_save_LIBS |
| 11937 | fi |
| 11938 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5 |
| 11939 | echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6 |
| 11940 | if test "x$ac_cv_lib_soname_GL" != xNONE |
| 11941 | then |
| 11942 | cat >>confdefs.h <<_ACEOF |
| 11943 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
| 11944 | _ACEOF |
| 11945 | fi |
| 11946 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 11947 | echo "$as_me:$LINENO: checking for -lcups soname" >&5 |
| 11948 | echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6 |
| 11949 | if test "${ac_cv_lib_soname_cups+set}" = set; then |
| 11950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11951 | else |
| 11952 | ac_get_soname_save_LIBS=$LIBS |
| 11953 | LIBS="-lcups $LIBS" |
| 11954 | cat >conftest.$ac_ext <<_ACEOF |
| 11955 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11956 | /* confdefs.h. */ |
| 11957 | _ACEOF |
| 11958 | cat confdefs.h >>conftest.$ac_ext |
| 11959 | cat >>conftest.$ac_ext <<_ACEOF |
| 11960 | /* end confdefs.h. */ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 11961 | |
| 11962 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11963 | #ifdef __cplusplus |
| 11964 | extern "C" |
| 11965 | #endif |
| 11966 | /* We use char because int might match the return type of a gcc2 |
| 11967 | builtin and then its argument prototype would still apply. */ |
| 11968 | char cupsGetDefault (); |
| 11969 | int |
| 11970 | main () |
| 11971 | { |
| 11972 | cupsGetDefault (); |
| 11973 | ; |
| 11974 | return 0; |
| 11975 | } |
| 11976 | _ACEOF |
| 11977 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11978 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11979 | (eval $ac_link) 2>&5 |
| 11980 | ac_status=$? |
| 11981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11982 | (exit $ac_status); } && |
| 11983 | { ac_try='test -s conftest$ac_exeext' |
| 11984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11985 | (eval $ac_try) 2>&5 |
| 11986 | ac_status=$? |
| 11987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11988 | (exit $ac_status); }; }; then |
| 11989 | ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 11990 | if test "x$ac_cv_lib_soname_cups" = "x" |
| 11991 | then |
| 11992 | ac_cv_lib_soname_cups="libcups.so" |
| 11993 | fi |
| 11994 | else |
| 11995 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 11996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11997 | |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 11998 | ac_cv_lib_soname_cups="libcups.so" |
| 11999 | fi |
| 12000 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12001 | LIBS=$ac_get_soname_save_LIBS |
| 12002 | fi |
| 12003 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5 |
| 12004 | echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6 |
| 12005 | if test "x$ac_cv_lib_soname_cups" != xNONE |
| 12006 | then |
| 12007 | cat >>confdefs.h <<_ACEOF |
| 12008 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
| 12009 | _ACEOF |
| 12010 | fi |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 12011 | |
| 12012 | echo "$as_me:$LINENO: checking for -ljack soname" >&5 |
| 12013 | echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6 |
| 12014 | if test "${ac_cv_lib_soname_jack+set}" = set; then |
| 12015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12016 | else |
| 12017 | ac_get_soname_save_LIBS=$LIBS |
| 12018 | LIBS="-ljack $LIBS" |
| 12019 | cat >conftest.$ac_ext <<_ACEOF |
| 12020 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12021 | /* confdefs.h. */ |
| 12022 | _ACEOF |
| 12023 | cat confdefs.h >>conftest.$ac_ext |
| 12024 | cat >>conftest.$ac_ext <<_ACEOF |
| 12025 | /* end confdefs.h. */ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 12026 | |
| 12027 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12028 | #ifdef __cplusplus |
| 12029 | extern "C" |
| 12030 | #endif |
| 12031 | /* We use char because int might match the return type of a gcc2 |
| 12032 | builtin and then its argument prototype would still apply. */ |
| 12033 | char jack_client_new (); |
| 12034 | int |
| 12035 | main () |
| 12036 | { |
| 12037 | jack_client_new (); |
| 12038 | ; |
| 12039 | return 0; |
| 12040 | } |
| 12041 | _ACEOF |
| 12042 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12044 | (eval $ac_link) 2>&5 |
| 12045 | ac_status=$? |
| 12046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12047 | (exit $ac_status); } && |
| 12048 | { ac_try='test -s conftest$ac_exeext' |
| 12049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12050 | (eval $ac_try) 2>&5 |
| 12051 | ac_status=$? |
| 12052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12053 | (exit $ac_status); }; }; then |
| 12054 | ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` |
| 12055 | if test "x$ac_cv_lib_soname_jack" = "x" |
| 12056 | then |
| 12057 | ac_cv_lib_soname_jack="libjack.so" |
| 12058 | fi |
| 12059 | else |
| 12060 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12062 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 12063 | ac_cv_lib_soname_jack="libjack.so" |
| 12064 | fi |
| 12065 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12066 | LIBS=$ac_get_soname_save_LIBS |
| 12067 | fi |
| 12068 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5 |
| 12069 | echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6 |
| 12070 | if test "x$ac_cv_lib_soname_jack" != xNONE |
| 12071 | then |
| 12072 | cat >>confdefs.h <<_ACEOF |
| 12073 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
| 12074 | _ACEOF |
| 12075 | fi |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12076 | fi |
| 12077 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12078 | |
Alexandre Julliard | fa3a536 | 2002-05-09 01:49:54 +0000 | [diff] [blame] | 12079 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12080 | wine_cv_libc_reentrant=no |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12081 | echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12082 | echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6 |
| 12083 | if test "${wine_cv_libc_r___errno_location+set}" = set; then |
| 12084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 12085 | else |
| 12086 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12087 | wine_cv_libc_r___errno_location=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 12088 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12089 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12090 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12091 | /* confdefs.h. */ |
| 12092 | _ACEOF |
| 12093 | cat confdefs.h >>conftest.$ac_ext |
| 12094 | cat >>conftest.$ac_ext <<_ACEOF |
| 12095 | /* end confdefs.h. */ |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 12096 | int myerrno = 0; |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 12097 | int *__errno_location(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 12098 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12099 | _ACEOF |
| 12100 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12102 | (eval $ac_link) 2>&5 |
| 12103 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12105 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12107 | (eval $ac_try) 2>&5 |
| 12108 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12110 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 12111 | wine_cv_libc_r___errno_location=yes |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 12112 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12113 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12114 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12116 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12117 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12118 | wine_cv_libc_r___errno_location=no |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 12119 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12120 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 12121 | fi |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 12122 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12123 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12124 | echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12125 | if test "$wine_cv_libc_r___errno_location" = "yes"; then |
| 12126 | wine_cv_libc_reentrant=__errno_location |
| 12127 | else |
| 12128 | echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12129 | echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6 |
| 12130 | if test "${wine_cv_libc_r___error+set}" = set; then |
| 12131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 12132 | else |
| 12133 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12134 | wine_cv_libc_r___error=yes |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 12135 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12136 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12137 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12138 | /* confdefs.h. */ |
| 12139 | _ACEOF |
| 12140 | cat confdefs.h >>conftest.$ac_ext |
| 12141 | cat >>conftest.$ac_ext <<_ACEOF |
| 12142 | /* end confdefs.h. */ |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 12143 | int myerrno = 0; |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 12144 | int *__error(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 12145 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12146 | _ACEOF |
| 12147 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12149 | (eval $ac_link) 2>&5 |
| 12150 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12152 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12154 | (eval $ac_try) 2>&5 |
| 12155 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12157 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 12158 | wine_cv_libc_r___error=yes |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 12159 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12160 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12161 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12163 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12164 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12165 | wine_cv_libc_r___error=no |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 12166 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12167 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | c260638 | 1999-04-11 15:20:29 +0000 | [diff] [blame] | 12168 | fi |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 12169 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12170 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12171 | echo "${ECHO_T}$wine_cv_libc_r___error" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12172 | if test "$wine_cv_libc_r___error" = "yes"; then |
| 12173 | wine_cv_libc_reentrant=__error |
| 12174 | else |
| 12175 | echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12176 | echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6 |
| 12177 | if test "${wine_cv_libc_r____errno+set}" = set; then |
| 12178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 12179 | else |
| 12180 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12181 | wine_cv_libc_r____errno=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 12182 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12183 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12184 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12185 | /* confdefs.h. */ |
| 12186 | _ACEOF |
| 12187 | cat confdefs.h >>conftest.$ac_ext |
| 12188 | cat >>conftest.$ac_ext <<_ACEOF |
| 12189 | /* end confdefs.h. */ |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 12190 | int myerrno = 0; |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 12191 | int *___errno(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 12192 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12193 | _ACEOF |
| 12194 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12196 | (eval $ac_link) 2>&5 |
| 12197 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12199 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12201 | (eval $ac_try) 2>&5 |
| 12202 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12204 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 12205 | wine_cv_libc_r____errno=yes |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 12206 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12207 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12208 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12210 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12211 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12212 | wine_cv_libc_r____errno=no |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 12213 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12214 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 12215 | fi |
Ulrich Weigand | 715a55e | 1999-04-18 13:19:56 +0000 | [diff] [blame] | 12216 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12217 | echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12218 | echo "${ECHO_T}$wine_cv_libc_r____errno" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12219 | if test "$wine_cv_libc_r____errno" = "yes"; then |
| 12220 | wine_cv_libc_reentrant=___errno |
| 12221 | else |
| 12222 | echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12223 | echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6 |
| 12224 | if test "${wine_cv_libc_r___thr_errno+set}" = set; then |
| 12225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 12226 | else |
| 12227 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12228 | wine_cv_libc_r___thr_errno=yes |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 12229 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12230 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12231 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12232 | /* confdefs.h. */ |
| 12233 | _ACEOF |
| 12234 | cat confdefs.h >>conftest.$ac_ext |
| 12235 | cat >>conftest.$ac_ext <<_ACEOF |
| 12236 | /* end confdefs.h. */ |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 12237 | int myerrno = 0; |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 12238 | int *__thr_errno(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 12239 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12240 | _ACEOF |
| 12241 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12243 | (eval $ac_link) 2>&5 |
| 12244 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12246 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12248 | (eval $ac_try) 2>&5 |
| 12249 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12251 | (exit $ac_status); }; }; then |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 12252 | wine_cv_libc_r___thr_errno=yes |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 12253 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12254 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12255 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12256 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12257 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12258 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12259 | wine_cv_libc_r___thr_errno=no |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 12260 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12261 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 12262 | fi |
Ron Record | e977d6c | 1999-09-05 12:32:05 +0000 | [diff] [blame] | 12263 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12264 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12265 | echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12266 | if test "$wine_cv_libc_r___thr_errno" = "yes"; then |
| 12267 | wine_cv_libc_reentrant=__thr_errno |
| 12268 | else |
| 12269 | echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12270 | echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6 |
| 12271 | if test "${wine_cv_libc_r___errno+set}" = set; then |
| 12272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 12273 | else |
| 12274 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12275 | wine_cv_libc_r___errno=yes |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 12276 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12277 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12278 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12279 | /* confdefs.h. */ |
| 12280 | _ACEOF |
| 12281 | cat confdefs.h >>conftest.$ac_ext |
| 12282 | cat >>conftest.$ac_ext <<_ACEOF |
| 12283 | /* end confdefs.h. */ |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 12284 | int myerrno = 0; |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 12285 | int *__errno(){return &myerrno;} |
Alexandre Julliard | 770c33f | 2002-07-01 18:39:26 +0000 | [diff] [blame] | 12286 | main(){close(333); close(333); exit(!myerrno);} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12287 | _ACEOF |
| 12288 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12290 | (eval $ac_link) 2>&5 |
| 12291 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12293 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12295 | (eval $ac_try) 2>&5 |
| 12296 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12298 | (exit $ac_status); }; }; then |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 12299 | wine_cv_libc_r___errno=yes |
| 12300 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12301 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12302 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12304 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12305 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12306 | wine_cv_libc_r___errno=no |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 12307 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12308 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 12309 | fi |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 12310 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12311 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12312 | echo "${ECHO_T}$wine_cv_libc_r___errno" >&6 |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 12313 | if test "$wine_cv_libc_r___errno" = "yes"; then |
| 12314 | wine_cv_libc_reentrant=__errno |
| 12315 | fi |
| 12316 | |
| 12317 | |
| 12318 | fi |
| 12319 | |
| 12320 | fi |
| 12321 | |
| 12322 | fi |
| 12323 | |
Bang Jun-Young | 33dff34 | 2001-05-07 18:21:10 +0000 | [diff] [blame] | 12324 | fi |
| 12325 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12326 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12327 | if test "$wine_cv_libc_reentrant" != "no" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 12328 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12329 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12330 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 12331 | #define ERRNO_LOCATION $wine_cv_libc_reentrant |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12332 | _ACEOF |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 12333 | |
| 12334 | fi |
| 12335 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12336 | |
Alexandre Julliard | 867fb9d | 2002-04-24 22:24:43 +0000 | [diff] [blame] | 12337 | if test "$have_x" = "yes" |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 12338 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12339 | echo "$as_me:$LINENO: checking for reentrant X libraries" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12340 | echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6 |
| 12341 | if test "${wine_cv_x_reentrant+set}" = set; then |
| 12342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 12343 | else |
Alexandre Julliard | 867fb9d | 2002-04-24 22:24:43 +0000 | [diff] [blame] | 12344 | libX11_check=none |
| 12345 | for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do |
| 12346 | if test -r $dir/libX11.so; then |
| 12347 | libX11_check="-D $dir/libX11.so" |
| 12348 | break |
| 12349 | fi |
| 12350 | if test -r $dir/libX11.a; then |
| 12351 | libX11_check="$dir/libX11.a" |
| 12352 | break |
| 12353 | fi |
| 12354 | done |
| 12355 | if test "$libX11_check" != "none"; then |
| 12356 | if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1 |
| 12357 | then |
| 12358 | wine_cv_x_reentrant=yes |
| 12359 | else |
| 12360 | wine_cv_x_reentrant=no |
| 12361 | fi |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 12362 | else |
Alexandre Julliard | 867fb9d | 2002-04-24 22:24:43 +0000 | [diff] [blame] | 12363 | wine_cv_x_reentrant=unknown |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12364 | fi |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 12365 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12366 | echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12367 | echo "${ECHO_T}$wine_cv_x_reentrant" >&6 |
Patrik Stridvall | 2411028 | 1999-02-04 10:09:54 +0000 | [diff] [blame] | 12368 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12369 | |
| 12370 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12371 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 12372 | # for constant arguments. Useless! |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12373 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12374 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 12375 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 12376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12377 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12378 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12379 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12380 | /* confdefs.h. */ |
| 12381 | _ACEOF |
| 12382 | cat confdefs.h >>conftest.$ac_ext |
| 12383 | cat >>conftest.$ac_ext <<_ACEOF |
| 12384 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12385 | #include <alloca.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12386 | int |
| 12387 | main () |
| 12388 | { |
| 12389 | char *p = (char *) alloca (2 * sizeof (int)); |
| 12390 | ; |
| 12391 | return 0; |
| 12392 | } |
| 12393 | _ACEOF |
| 12394 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12396 | (eval $ac_link) 2>&5 |
| 12397 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12399 | (exit $ac_status); } && |
| 12400 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12402 | (eval $ac_try) 2>&5 |
| 12403 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12405 | (exit $ac_status); }; }; then |
| 12406 | ac_cv_working_alloca_h=yes |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12407 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12408 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12410 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12411 | ac_cv_working_alloca_h=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12412 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12413 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12414 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12415 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12416 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 12417 | if test $ac_cv_working_alloca_h = yes; then |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 12418 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12419 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12420 | #define HAVE_ALLOCA_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12421 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12422 | |
| 12423 | fi |
| 12424 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12425 | echo "$as_me:$LINENO: checking for alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12426 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 12427 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 12428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12429 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12430 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12431 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12432 | /* confdefs.h. */ |
| 12433 | _ACEOF |
| 12434 | cat confdefs.h >>conftest.$ac_ext |
| 12435 | cat >>conftest.$ac_ext <<_ACEOF |
| 12436 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12437 | #ifdef __GNUC__ |
| 12438 | # define alloca __builtin_alloca |
| 12439 | #else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 12440 | # ifdef _MSC_VER |
| 12441 | # include <malloc.h> |
| 12442 | # define alloca _alloca |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12443 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 12444 | # if HAVE_ALLOCA_H |
| 12445 | # include <alloca.h> |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12446 | # else |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 12447 | # ifdef _AIX |
| 12448 | #pragma alloca |
| 12449 | # else |
| 12450 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12451 | char *alloca (); |
Eric Pouech | 18ad24a | 2000-01-16 22:16:33 +0000 | [diff] [blame] | 12452 | # endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12453 | # endif |
| 12454 | # endif |
| 12455 | # endif |
| 12456 | #endif |
| 12457 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12458 | int |
| 12459 | main () |
| 12460 | { |
| 12461 | char *p = (char *) alloca (1); |
| 12462 | ; |
| 12463 | return 0; |
| 12464 | } |
| 12465 | _ACEOF |
| 12466 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12468 | (eval $ac_link) 2>&5 |
| 12469 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12471 | (exit $ac_status); } && |
| 12472 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12474 | (eval $ac_try) 2>&5 |
| 12475 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12477 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12478 | ac_cv_func_alloca_works=yes |
| 12479 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12480 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12482 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12483 | ac_cv_func_alloca_works=no |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12484 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12485 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12486 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12487 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12488 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12489 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12490 | if test $ac_cv_func_alloca_works = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12491 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12492 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12493 | #define HAVE_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12494 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12495 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12496 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12497 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12498 | # that cause trouble. Some versions do not even contain alloca or |
| 12499 | # contain a buggy version. If you still want to use their alloca, |
| 12500 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 12501 | |
| 12502 | ALLOCA=alloca.$ac_objext |
| 12503 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12504 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12505 | #define C_ALLOCA 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12506 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12507 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12508 | |
| 12509 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12510 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 12511 | if test "${ac_cv_os_cray+set}" = set; then |
| 12512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12513 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12514 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12515 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12516 | /* confdefs.h. */ |
| 12517 | _ACEOF |
| 12518 | cat confdefs.h >>conftest.$ac_ext |
| 12519 | cat >>conftest.$ac_ext <<_ACEOF |
| 12520 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12521 | #if defined(CRAY) && ! defined(CRAY2) |
| 12522 | webecray |
| 12523 | #else |
| 12524 | wenotbecray |
| 12525 | #endif |
| 12526 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12527 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12528 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12529 | $EGREP "webecray" >/dev/null 2>&1; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12530 | ac_cv_os_cray=yes |
| 12531 | else |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12532 | ac_cv_os_cray=no |
| 12533 | fi |
| 12534 | rm -f conftest* |
| 12535 | |
| 12536 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12537 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12538 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12539 | if test $ac_cv_os_cray = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12540 | for ac_func in _getb67 GETB67 getb67; do |
| 12541 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12542 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12543 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12544 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12546 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12547 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12548 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12549 | /* confdefs.h. */ |
| 12550 | _ACEOF |
| 12551 | cat confdefs.h >>conftest.$ac_ext |
| 12552 | cat >>conftest.$ac_ext <<_ACEOF |
| 12553 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12554 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12555 | which can conflict with char $ac_func (); below. |
| 12556 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12557 | <limits.h> exists even on freestanding compilers. */ |
| 12558 | #ifdef __STDC__ |
| 12559 | # include <limits.h> |
| 12560 | #else |
| 12561 | # include <assert.h> |
| 12562 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12563 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12564 | #ifdef __cplusplus |
| 12565 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12566 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12567 | #endif |
Alexandre Julliard | e2bfa4c | 1996-05-16 18:21:06 +0000 | [diff] [blame] | 12568 | /* 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] | 12569 | builtin and then its argument prototype would still apply. */ |
| 12570 | char $ac_func (); |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12571 | /* The GNU C library defines this for functions which it implements |
| 12572 | to always fail with ENOSYS. Some functions are actually named |
| 12573 | something starting with __ and the normal name is an alias. */ |
| 12574 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12575 | choke me |
| 12576 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12577 | char (*f) () = $ac_func; |
| 12578 | #endif |
| 12579 | #ifdef __cplusplus |
| 12580 | } |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12581 | #endif |
| 12582 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12583 | int |
| 12584 | main () |
| 12585 | { |
| 12586 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12587 | ; |
| 12588 | return 0; |
| 12589 | } |
| 12590 | _ACEOF |
| 12591 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12593 | (eval $ac_link) 2>&5 |
| 12594 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12596 | (exit $ac_status); } && |
| 12597 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12599 | (eval $ac_try) 2>&5 |
| 12600 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12602 | (exit $ac_status); }; }; then |
| 12603 | eval "$as_ac_var=yes" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12604 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12605 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12607 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12608 | eval "$as_ac_var=no" |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12609 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12610 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12611 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12612 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12613 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12614 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12615 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12616 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12617 | #define CRAY_STACKSEG_END $ac_func |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12618 | _ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12619 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12620 | break |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12621 | fi |
| 12622 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12623 | done |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12624 | fi |
| 12625 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12626 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12627 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 12628 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 12629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12630 | else |
| 12631 | if test "$cross_compiling" = yes; then |
| 12632 | ac_cv_c_stack_direction=0 |
| 12633 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12634 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12635 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12636 | /* confdefs.h. */ |
| 12637 | _ACEOF |
| 12638 | cat confdefs.h >>conftest.$ac_ext |
| 12639 | cat >>conftest.$ac_ext <<_ACEOF |
| 12640 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12641 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12642 | find_stack_direction () |
| 12643 | { |
| 12644 | static char *addr = 0; |
| 12645 | auto char dummy; |
| 12646 | if (addr == 0) |
| 12647 | { |
| 12648 | addr = &dummy; |
| 12649 | return find_stack_direction (); |
| 12650 | } |
| 12651 | else |
| 12652 | return (&dummy > addr) ? 1 : -1; |
| 12653 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12654 | |
| 12655 | int |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12656 | main () |
| 12657 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12658 | exit (find_stack_direction () < 0); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12659 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12660 | _ACEOF |
| 12661 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12663 | (eval $ac_link) 2>&5 |
| 12664 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12666 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12668 | (eval $ac_try) 2>&5 |
| 12669 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12671 | (exit $ac_status); }; }; then |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12672 | ac_cv_c_stack_direction=1 |
| 12673 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12674 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12675 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12677 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12678 | ( exit $ac_status ) |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12679 | ac_cv_c_stack_direction=-1 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12680 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 12681 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12682 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12683 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12684 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12685 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12686 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12687 | cat >>confdefs.h <<_ACEOF |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12688 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12689 | _ACEOF |
| 12690 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12691 | |
| 12692 | fi |
| 12693 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12694 | |
| 12695 | |
| 12696 | |
| 12697 | |
| 12698 | |
| 12699 | |
| 12700 | |
| 12701 | |
| 12702 | |
| 12703 | |
| 12704 | |
| 12705 | |
| 12706 | |
| 12707 | |
| 12708 | |
| 12709 | |
| 12710 | |
| 12711 | |
| 12712 | |
| 12713 | |
| 12714 | |
| 12715 | |
| 12716 | |
| 12717 | |
| 12718 | |
| 12719 | |
| 12720 | |
| 12721 | |
| 12722 | |
| 12723 | |
| 12724 | |
| 12725 | |
| 12726 | |
| 12727 | |
| 12728 | |
| 12729 | |
| 12730 | |
| 12731 | |
| 12732 | |
| 12733 | |
| 12734 | |
| 12735 | |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12736 | |
| 12737 | |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 12738 | |
| 12739 | |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 12740 | |
Patrik Stridvall | 6caeb72 | 2002-11-25 21:12:26 +0000 | [diff] [blame] | 12741 | |
| 12742 | |
| 12743 | |
| 12744 | |
| 12745 | |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 12746 | |
Brad Campbell | 5ac2a53 | 2002-12-13 23:30:54 +0000 | [diff] [blame] | 12747 | |
| 12748 | |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12749 | for ac_func in \ |
| 12750 | _lwp_create \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12751 | _pclose \ |
| 12752 | _popen \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 12753 | _snprintf \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12754 | _stricmp \ |
| 12755 | _strnicmp \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12756 | chsize \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12757 | clone \ |
Andreas Mohr | a7ca2ba | 2001-01-12 23:07:11 +0000 | [diff] [blame] | 12758 | ecvt \ |
Brad Campbell | 5ac2a53 | 2002-12-13 23:30:54 +0000 | [diff] [blame] | 12759 | fcvt \ |
Jon Griffiths | d6deb6d | 2000-11-27 01:37:28 +0000 | [diff] [blame] | 12760 | finite \ |
| 12761 | fpclass \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12762 | ftruncate \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 12763 | ftruncate64 \ |
Brad Campbell | 5ac2a53 | 2002-12-13 23:30:54 +0000 | [diff] [blame] | 12764 | gcvt \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12765 | getnetbyaddr \ |
| 12766 | getnetbyname \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 12767 | getopt_long \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12768 | getpagesize \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12769 | getprotobyname \ |
| 12770 | getprotobynumber \ |
Alexandre Julliard | 142dab8 | 2002-07-01 18:17:30 +0000 | [diff] [blame] | 12771 | getpwuid \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12772 | getservbyport \ |
| 12773 | getsockopt \ |
| 12774 | inet_network \ |
Marcus Meissner | 3f1ed52 | 2001-05-14 20:09:37 +0000 | [diff] [blame] | 12775 | lseek64 \ |
Alexandre Julliard | 27bb311 | 2000-11-29 17:48:06 +0000 | [diff] [blame] | 12776 | lstat \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12777 | memmove \ |
Marcus Meissner | 786d249 | 2002-07-29 23:55:39 +0000 | [diff] [blame] | 12778 | mkstemp \ |
Hidenori Takeshima | a85b0a6 | 2000-11-25 23:54:12 +0000 | [diff] [blame] | 12779 | mmap \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12780 | pclose \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12781 | popen \ |
Steven Edwards | b9627c1 | 2002-05-05 21:03:44 +0000 | [diff] [blame] | 12782 | pread \ |
Patrik Stridvall | 6caeb72 | 2002-11-25 21:12:26 +0000 | [diff] [blame] | 12783 | pthread_getspecific \ |
| 12784 | pthread_key_create \ |
| 12785 | pthread_mutex_lock \ |
| 12786 | pthread_mutex_unlock \ |
| 12787 | pthread_setspecific \ |
Alexandre Julliard | f1a0de9 | 2002-01-07 21:00:27 +0000 | [diff] [blame] | 12788 | pwrite \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12789 | rfork \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12790 | select \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12791 | sendmsg \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12792 | settimeofday \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12793 | sigaltstack \ |
Steven Edwards | 0a8e15a | 2002-05-10 01:33:40 +0000 | [diff] [blame] | 12794 | snprintf \ |
Patrik Stridvall | b901021 | 1999-11-13 22:23:35 +0000 | [diff] [blame] | 12795 | statfs \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 12796 | strcasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12797 | strerror \ |
Alexandre Julliard | 3b96efc | 1999-09-04 14:36:02 +0000 | [diff] [blame] | 12798 | strncasecmp \ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12799 | tcgetattr \ |
| 12800 | timegm \ |
| 12801 | usleep \ |
| 12802 | vfscanf \ |
| 12803 | wait4 \ |
| 12804 | waitpid \ |
| 12805 | |
| 12806 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12807 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12808 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12809 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12810 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12812 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12813 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12814 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12815 | /* confdefs.h. */ |
| 12816 | _ACEOF |
| 12817 | cat confdefs.h >>conftest.$ac_ext |
| 12818 | cat >>conftest.$ac_ext <<_ACEOF |
| 12819 | /* end confdefs.h. */ |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12820 | /* System header to define __stub macros and hopefully few prototypes, |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12821 | which can conflict with char $ac_func (); below. |
| 12822 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12823 | <limits.h> exists even on freestanding compilers. */ |
| 12824 | #ifdef __STDC__ |
| 12825 | # include <limits.h> |
| 12826 | #else |
| 12827 | # include <assert.h> |
| 12828 | #endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12829 | /* Override any gcc2 internal prototype to avoid an error. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12830 | #ifdef __cplusplus |
| 12831 | extern "C" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12832 | { |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12833 | #endif |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12834 | /* 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] | 12835 | builtin and then its argument prototype would still apply. */ |
| 12836 | char $ac_func (); |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12837 | /* The GNU C library defines this for functions which it implements |
| 12838 | to always fail with ENOSYS. Some functions are actually named |
| 12839 | something starting with __ and the normal name is an alias. */ |
| 12840 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12841 | choke me |
| 12842 | #else |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12843 | char (*f) () = $ac_func; |
| 12844 | #endif |
| 12845 | #ifdef __cplusplus |
| 12846 | } |
Patrik Stridvall | 1bb9403 | 1999-05-08 15:47:44 +0000 | [diff] [blame] | 12847 | #endif |
| 12848 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12849 | int |
| 12850 | main () |
| 12851 | { |
| 12852 | return f != $ac_func; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12853 | ; |
| 12854 | return 0; |
| 12855 | } |
| 12856 | _ACEOF |
| 12857 | rm -f conftest.$ac_objext conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12859 | (eval $ac_link) 2>&5 |
| 12860 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12862 | (exit $ac_status); } && |
| 12863 | { ac_try='test -s conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12865 | (eval $ac_try) 2>&5 |
| 12866 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12868 | (exit $ac_status); }; }; then |
| 12869 | eval "$as_ac_var=yes" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12870 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12871 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 12872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12873 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12874 | eval "$as_ac_var=no" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12875 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12876 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12877 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12878 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12879 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12880 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12881 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12882 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12883 | _ACEOF |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 12884 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 12885 | fi |
| 12886 | done |
| 12887 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 12888 | |
| 12889 | |
| 12890 | |
| 12891 | |
| 12892 | |
| 12893 | |
| 12894 | |
| 12895 | |
| 12896 | |
| 12897 | |
| 12898 | |
| 12899 | |
| 12900 | |
| 12901 | |
| 12902 | |
| 12903 | |
| 12904 | |
| 12905 | |
| 12906 | |
| 12907 | |
| 12908 | |
| 12909 | |
| 12910 | |
| 12911 | |
| 12912 | |
| 12913 | |
| 12914 | |
| 12915 | |
| 12916 | |
| 12917 | |
| 12918 | |
| 12919 | |
| 12920 | |
| 12921 | |
| 12922 | |
| 12923 | |
| 12924 | |
| 12925 | |
| 12926 | |
| 12927 | |
| 12928 | |
| 12929 | |
| 12930 | |
| 12931 | |
| 12932 | |
| 12933 | |
| 12934 | |
| 12935 | |
| 12936 | |
| 12937 | |
| 12938 | |
| 12939 | |
| 12940 | |
| 12941 | |
| 12942 | |
| 12943 | |
| 12944 | |
| 12945 | |
| 12946 | |
| 12947 | |
| 12948 | |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 12949 | |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 12950 | |
| 12951 | |
| 12952 | |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 12953 | |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 12954 | |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 12955 | |
| 12956 | |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 12957 | |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 12958 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 12959 | for ac_header in \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 12960 | arpa/inet.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 12961 | arpa/nameser.h \ |
Marcus Meissner | f061f76 | 2002-11-12 02:22:24 +0000 | [diff] [blame] | 12962 | cups/cups.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12963 | direct.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 12964 | elf.h \ |
| 12965 | float.h \ |
Dimitrie O. Paun | 647c1a3 | 2002-12-10 19:16:24 +0000 | [diff] [blame] | 12966 | getopt.h \ |
Ulrich Weigand | 2e8e233 | 2000-12-27 18:49:08 +0000 | [diff] [blame] | 12967 | ieeefp.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 12968 | io.h \ |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 12969 | jack/jack.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 12970 | libio.h \ |
Hidenori Takeshima | 01f78aa | 2000-07-09 12:19:09 +0000 | [diff] [blame] | 12971 | libutil.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 12972 | link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 12973 | linux/cdrom.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 12974 | linux/hdreg.h \ |
Marcus Meissner | c9b3b2e | 2000-12-12 00:38:58 +0000 | [diff] [blame] | 12975 | linux/input.h \ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 12976 | linux/joystick.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 12977 | linux/major.h \ |
Laurent Pinchart | 0314a65 | 2002-05-01 22:01:30 +0000 | [diff] [blame] | 12978 | linux/param.h \ |
Lawson Whitney | 533e7ee | 2002-02-19 18:41:56 +0000 | [diff] [blame] | 12979 | linux/serial.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 12980 | linux/ucdrom.h \ |
Hidenori Takeshima | 5d1a638 | 2000-11-26 04:00:53 +0000 | [diff] [blame] | 12981 | netdb.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 12982 | netinet/in.h \ |
Patrik Stridvall | 7a4e599 | 2000-12-01 23:53:46 +0000 | [diff] [blame] | 12983 | netinet/in_systm.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 12984 | netinet/tcp.h \ |
Marcus Meissner | 2d7be87 | 1999-12-05 23:06:40 +0000 | [diff] [blame] | 12985 | pty.h \ |
Steven Edwards | ff4525c | 2002-06-24 23:00:25 +0000 | [diff] [blame] | 12986 | pwd.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 12987 | sched.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 12988 | scsi/sg.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 12989 | socket.h \ |
Bang Jun-Young | eda758e | 2001-12-14 22:47:19 +0000 | [diff] [blame] | 12990 | stdint.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 12991 | strings.h \ |
| 12992 | sys/cdio.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 12993 | sys/errno.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 12994 | sys/file.h \ |
| 12995 | sys/filio.h \ |
Michal Pasternak | 6098399 | 2002-03-29 18:04:43 +0000 | [diff] [blame] | 12996 | sys/inttypes.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 12997 | sys/ioctl.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 12998 | sys/ipc.h \ |
Eric Pouech | 624cbd7 | 2001-08-10 22:29:21 +0000 | [diff] [blame] | 12999 | sys/link.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13000 | sys/lwp.h \ |
Howard Abrams | 1327748 | 1999-07-10 13:16:29 +0000 | [diff] [blame] | 13001 | sys/mman.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13002 | sys/modem.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13003 | sys/msg.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13004 | sys/param.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 13005 | sys/poll.h \ |
Dimitrie O. Paun | 2af03e4 | 2000-11-29 20:04:09 +0000 | [diff] [blame] | 13006 | sys/ptrace.h \ |
Ulrich Weigand | 8a1bdb3 | 2000-01-30 22:22:22 +0000 | [diff] [blame] | 13007 | sys/reg.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13008 | sys/shm.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13009 | sys/signal.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13010 | sys/socket.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13011 | sys/sockio.h \ |
| 13012 | sys/statfs.h \ |
| 13013 | sys/strtio.h \ |
| 13014 | sys/syscall.h \ |
Alexandre Julliard | 127ec92 | 2002-05-07 01:51:30 +0000 | [diff] [blame] | 13015 | sys/sysctl.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13016 | sys/time.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 13017 | sys/times.h \ |
Steven Edwards | 45e5681 | 2002-10-31 03:41:56 +0000 | [diff] [blame] | 13018 | sys/uio.h \ |
| 13019 | sys/un.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13020 | sys/v86.h \ |
| 13021 | sys/v86intr.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13022 | sys/vfs.h \ |
Patrik Stridvall | 9633632 | 1999-10-24 22:13:47 +0000 | [diff] [blame] | 13023 | sys/vm86.h \ |
Rizsanyi Zsolt | e7c6d17 | 2002-05-01 22:25:41 +0000 | [diff] [blame] | 13024 | sys/wait.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13025 | syscall.h \ |
Alexandre Julliard | c3e06df | 2002-05-14 23:18:23 +0000 | [diff] [blame] | 13026 | termios.h \ |
Patrik Stridvall | 81ecb52 | 2002-03-11 05:08:14 +0000 | [diff] [blame] | 13027 | unistd.h \ |
Patrik Stridvall | 57bf450 | 2002-08-26 21:53:24 +0000 | [diff] [blame] | 13028 | utime.h \ |
Alexandre Julliard | 2487cce | 1999-04-18 14:43:16 +0000 | [diff] [blame] | 13029 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13030 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13031 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13032 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13033 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13034 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13035 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13037 | fi |
| 13038 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13039 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13040 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13041 | # Is the header compilable? |
| 13042 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13043 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13044 | cat >conftest.$ac_ext <<_ACEOF |
| 13045 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13046 | /* confdefs.h. */ |
| 13047 | _ACEOF |
| 13048 | cat confdefs.h >>conftest.$ac_ext |
| 13049 | cat >>conftest.$ac_ext <<_ACEOF |
| 13050 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13051 | $ac_includes_default |
| 13052 | #include <$ac_header> |
| 13053 | _ACEOF |
| 13054 | rm -f conftest.$ac_objext |
| 13055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13056 | (eval $ac_compile) 2>&5 |
| 13057 | ac_status=$? |
| 13058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13059 | (exit $ac_status); } && |
| 13060 | { ac_try='test -s conftest.$ac_objext' |
| 13061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13062 | (eval $ac_try) 2>&5 |
| 13063 | ac_status=$? |
| 13064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13065 | (exit $ac_status); }; }; then |
| 13066 | ac_header_compiler=yes |
| 13067 | else |
| 13068 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13070 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13071 | ac_header_compiler=no |
| 13072 | fi |
| 13073 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13074 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13075 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13076 | |
| 13077 | # Is the header present? |
| 13078 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 13079 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 13080 | cat >conftest.$ac_ext <<_ACEOF |
| 13081 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13082 | /* confdefs.h. */ |
| 13083 | _ACEOF |
| 13084 | cat confdefs.h >>conftest.$ac_ext |
| 13085 | cat >>conftest.$ac_ext <<_ACEOF |
| 13086 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13087 | #include <$ac_header> |
| 13088 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13089 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13090 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13091 | ac_status=$? |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13092 | grep -v '^ *+' conftest.er1 >conftest.err |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13093 | rm -f conftest.er1 |
| 13094 | cat conftest.err >&5 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13096 | (exit $ac_status); } >/dev/null; then |
| 13097 | if test -s conftest.err; then |
| 13098 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13099 | else |
| 13100 | ac_cpp_err= |
| 13101 | fi |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13102 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13103 | ac_cpp_err=yes |
| 13104 | fi |
| 13105 | if test -z "$ac_cpp_err"; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13106 | ac_header_preproc=yes |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13107 | else |
| 13108 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13109 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13110 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13111 | ac_header_preproc=no |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13112 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13113 | rm -f conftest.err conftest.$ac_ext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13114 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13115 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13116 | |
| 13117 | # So? What about this header? |
| 13118 | case $ac_header_compiler:$ac_header_preproc in |
| 13119 | yes:no ) |
| 13120 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13121 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13122 | { 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] | 13123 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13124 | ( |
| 13125 | cat <<\_ASBOX |
| 13126 | ## ------------------------------------ ## |
| 13127 | ## Report this to bug-autoconf@gnu.org. ## |
| 13128 | ## ------------------------------------ ## |
| 13129 | _ASBOX |
| 13130 | ) | |
| 13131 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13132 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13133 | no:yes ) |
| 13134 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13135 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 13136 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13137 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13138 | { 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] | 13139 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13140 | ( |
| 13141 | cat <<\_ASBOX |
| 13142 | ## ------------------------------------ ## |
| 13143 | ## Report this to bug-autoconf@gnu.org. ## |
| 13144 | ## ------------------------------------ ## |
| 13145 | _ASBOX |
| 13146 | ) | |
| 13147 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13148 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13149 | esac |
| 13150 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13152 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13154 | else |
| 13155 | eval "$as_ac_Header=$ac_header_preproc" |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13156 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13157 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13158 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13159 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13160 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13161 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13162 | cat >>confdefs.h <<_ACEOF |
| 13163 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13164 | _ACEOF |
| 13165 | |
| 13166 | fi |
| 13167 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 13168 | done |
| 13169 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13170 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13171 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 13172 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 13173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13174 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13175 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13176 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13177 | /* confdefs.h. */ |
| 13178 | _ACEOF |
| 13179 | cat confdefs.h >>conftest.$ac_ext |
| 13180 | cat >>conftest.$ac_ext <<_ACEOF |
| 13181 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13182 | #include <sys/types.h> |
| 13183 | #include <sys/stat.h> |
| 13184 | |
| 13185 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 13186 | # if S_ISBLK (S_IFDIR) |
| 13187 | You lose. |
| 13188 | # endif |
| 13189 | #endif |
| 13190 | |
| 13191 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 13192 | # if S_ISBLK (S_IFCHR) |
| 13193 | You lose. |
| 13194 | # endif |
| 13195 | #endif |
| 13196 | |
| 13197 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 13198 | # if S_ISLNK (S_IFREG) |
| 13199 | You lose. |
| 13200 | # endif |
| 13201 | #endif |
| 13202 | |
| 13203 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 13204 | # if S_ISSOCK (S_IFREG) |
| 13205 | You lose. |
| 13206 | # endif |
| 13207 | #endif |
| 13208 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13209 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13210 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13211 | $EGREP "You lose" >/dev/null 2>&1; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13212 | ac_cv_header_stat_broken=yes |
| 13213 | else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13214 | ac_cv_header_stat_broken=no |
| 13215 | fi |
| 13216 | rm -f conftest* |
| 13217 | |
| 13218 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13219 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13220 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13221 | if test $ac_cv_header_stat_broken = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13222 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13223 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13224 | #define STAT_MACROS_BROKEN 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13225 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13226 | |
| 13227 | fi |
| 13228 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13229 | |
| 13230 | |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 13231 | |
| 13232 | |
| 13233 | for ac_header in sys/mount.h sys/user.h |
| 13234 | do |
| 13235 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13236 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13237 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13238 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13240 | else |
| 13241 | cat >conftest.$ac_ext <<_ACEOF |
| 13242 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13243 | /* confdefs.h. */ |
| 13244 | _ACEOF |
| 13245 | cat confdefs.h >>conftest.$ac_ext |
| 13246 | cat >>conftest.$ac_ext <<_ACEOF |
| 13247 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13248 | #include <sys/types.h> |
| 13249 | #if HAVE_SYS_PARAM_H |
| 13250 | # include <sys/param.h> |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 13251 | #endif |
| 13252 | |
| 13253 | #include <$ac_header> |
| 13254 | _ACEOF |
| 13255 | rm -f conftest.$ac_objext |
| 13256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13257 | (eval $ac_compile) 2>&5 |
| 13258 | ac_status=$? |
| 13259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13260 | (exit $ac_status); } && |
| 13261 | { ac_try='test -s conftest.$ac_objext' |
| 13262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13263 | (eval $ac_try) 2>&5 |
| 13264 | ac_status=$? |
| 13265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13266 | (exit $ac_status); }; }; then |
| 13267 | eval "$as_ac_Header=yes" |
| 13268 | else |
| 13269 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13271 | |
Gerald Pfeifer | 6cef4cd | 2002-11-06 22:00:10 +0000 | [diff] [blame] | 13272 | eval "$as_ac_Header=no" |
| 13273 | fi |
| 13274 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13275 | fi |
| 13276 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13277 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13278 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13279 | cat >>confdefs.h <<_ACEOF |
| 13280 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13281 | _ACEOF |
| 13282 | |
| 13283 | fi |
| 13284 | |
| 13285 | done |
| 13286 | |
| 13287 | |
| 13288 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13289 | for ac_header in net/if.h |
| 13290 | do |
| 13291 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13292 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13293 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13296 | else |
| 13297 | cat >conftest.$ac_ext <<_ACEOF |
| 13298 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13299 | /* confdefs.h. */ |
| 13300 | _ACEOF |
| 13301 | cat confdefs.h >>conftest.$ac_ext |
| 13302 | cat >>conftest.$ac_ext <<_ACEOF |
| 13303 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13304 | #include <sys/types.h> |
Gerald Pfeifer | 87c369d | 2002-07-23 02:02:02 +0000 | [diff] [blame] | 13305 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13306 | # include <sys/socket.h> |
| 13307 | #endif |
| 13308 | |
| 13309 | #include <$ac_header> |
| 13310 | _ACEOF |
| 13311 | rm -f conftest.$ac_objext |
| 13312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13313 | (eval $ac_compile) 2>&5 |
| 13314 | ac_status=$? |
| 13315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13316 | (exit $ac_status); } && |
| 13317 | { ac_try='test -s conftest.$ac_objext' |
| 13318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13319 | (eval $ac_try) 2>&5 |
| 13320 | ac_status=$? |
| 13321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13322 | (exit $ac_status); }; }; then |
| 13323 | eval "$as_ac_Header=yes" |
| 13324 | else |
| 13325 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13326 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13327 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13328 | eval "$as_ac_Header=no" |
| 13329 | fi |
| 13330 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13331 | fi |
| 13332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13333 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13334 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13335 | cat >>confdefs.h <<_ACEOF |
| 13336 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13337 | _ACEOF |
| 13338 | |
| 13339 | fi |
| 13340 | |
| 13341 | done |
| 13342 | |
| 13343 | |
| 13344 | |
| 13345 | for ac_header in netinet/ip.h |
| 13346 | do |
| 13347 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13348 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13349 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13350 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13352 | else |
| 13353 | cat >conftest.$ac_ext <<_ACEOF |
| 13354 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13355 | /* confdefs.h. */ |
| 13356 | _ACEOF |
| 13357 | cat confdefs.h >>conftest.$ac_ext |
| 13358 | cat >>conftest.$ac_ext <<_ACEOF |
| 13359 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13360 | #include <sys/types.h> |
| 13361 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13362 | # include <sys/socket.h> |
| 13363 | #endif |
| 13364 | #if HAVE_NETINET_IN_SYSTM_H |
| 13365 | # include <netinet/in_systm.h> |
| 13366 | #endif |
| 13367 | |
| 13368 | #include <$ac_header> |
| 13369 | _ACEOF |
| 13370 | rm -f conftest.$ac_objext |
| 13371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13372 | (eval $ac_compile) 2>&5 |
| 13373 | ac_status=$? |
| 13374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13375 | (exit $ac_status); } && |
| 13376 | { ac_try='test -s conftest.$ac_objext' |
| 13377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13378 | (eval $ac_try) 2>&5 |
| 13379 | ac_status=$? |
| 13380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13381 | (exit $ac_status); }; }; then |
| 13382 | eval "$as_ac_Header=yes" |
| 13383 | else |
| 13384 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13386 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13387 | eval "$as_ac_Header=no" |
| 13388 | fi |
| 13389 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13390 | fi |
| 13391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13392 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13393 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13394 | cat >>confdefs.h <<_ACEOF |
| 13395 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13396 | _ACEOF |
| 13397 | |
| 13398 | fi |
| 13399 | |
| 13400 | done |
| 13401 | |
| 13402 | |
| 13403 | |
| 13404 | for ac_header in resolv.h |
| 13405 | do |
| 13406 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13407 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13408 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13409 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13411 | else |
| 13412 | cat >conftest.$ac_ext <<_ACEOF |
| 13413 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13414 | /* confdefs.h. */ |
| 13415 | _ACEOF |
| 13416 | cat confdefs.h >>conftest.$ac_ext |
| 13417 | cat >>conftest.$ac_ext <<_ACEOF |
| 13418 | /* end confdefs.h. */ |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 13419 | #include <sys/types.h> |
| 13420 | #if HAVE_SYS_SOCKET_H |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13421 | # include <sys/socket.h> |
| 13422 | #endif |
| 13423 | |
| 13424 | #include <$ac_header> |
| 13425 | _ACEOF |
| 13426 | rm -f conftest.$ac_objext |
| 13427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13428 | (eval $ac_compile) 2>&5 |
| 13429 | ac_status=$? |
| 13430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13431 | (exit $ac_status); } && |
| 13432 | { ac_try='test -s conftest.$ac_objext' |
| 13433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13434 | (eval $ac_try) 2>&5 |
| 13435 | ac_status=$? |
| 13436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13437 | (exit $ac_status); }; }; then |
| 13438 | eval "$as_ac_Header=yes" |
| 13439 | else |
| 13440 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13442 | |
Gregg Mattinson | 044b5c4 | 2002-07-19 03:16:51 +0000 | [diff] [blame] | 13443 | eval "$as_ac_Header=no" |
| 13444 | fi |
| 13445 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13446 | fi |
| 13447 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13448 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13449 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13450 | cat >>confdefs.h <<_ACEOF |
| 13451 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13452 | _ACEOF |
| 13453 | |
| 13454 | fi |
| 13455 | |
| 13456 | done |
| 13457 | |
| 13458 | |
| 13459 | |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 13460 | for ac_header in ucontext.h |
| 13461 | do |
| 13462 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13463 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13467 | else |
| 13468 | cat >conftest.$ac_ext <<_ACEOF |
| 13469 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13470 | /* confdefs.h. */ |
| 13471 | _ACEOF |
| 13472 | cat confdefs.h >>conftest.$ac_ext |
| 13473 | cat >>conftest.$ac_ext <<_ACEOF |
| 13474 | /* end confdefs.h. */ |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 13475 | #include <signal.h> |
| 13476 | |
| 13477 | #include <$ac_header> |
| 13478 | _ACEOF |
| 13479 | rm -f conftest.$ac_objext |
| 13480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13481 | (eval $ac_compile) 2>&5 |
| 13482 | ac_status=$? |
| 13483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13484 | (exit $ac_status); } && |
| 13485 | { ac_try='test -s conftest.$ac_objext' |
| 13486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13487 | (eval $ac_try) 2>&5 |
| 13488 | ac_status=$? |
| 13489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13490 | (exit $ac_status); }; }; then |
| 13491 | eval "$as_ac_Header=yes" |
| 13492 | else |
| 13493 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13495 | |
Gerald Pfeifer | d2033a5 | 2002-11-12 23:21:55 +0000 | [diff] [blame] | 13496 | eval "$as_ac_Header=no" |
| 13497 | fi |
| 13498 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13499 | fi |
| 13500 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13501 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13502 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13503 | cat >>confdefs.h <<_ACEOF |
| 13504 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13505 | _ACEOF |
| 13506 | |
| 13507 | fi |
| 13508 | |
| 13509 | done |
| 13510 | |
| 13511 | |
| 13512 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13513 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13514 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 13515 | if test "${ac_cv_c_const+set}" = set; then |
| 13516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13517 | else |
| 13518 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13519 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13520 | /* confdefs.h. */ |
| 13521 | _ACEOF |
| 13522 | cat confdefs.h >>conftest.$ac_ext |
| 13523 | cat >>conftest.$ac_ext <<_ACEOF |
| 13524 | /* end confdefs.h. */ |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13525 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13526 | int |
| 13527 | main () |
| 13528 | { |
| 13529 | /* FIXME: Include the comments suggested by Paul. */ |
| 13530 | #ifndef __cplusplus |
| 13531 | /* Ultrix mips cc rejects this. */ |
| 13532 | typedef int charset[2]; |
| 13533 | const charset x; |
| 13534 | /* SunOS 4.1.1 cc rejects this. */ |
| 13535 | char const *const *ccp; |
| 13536 | char **p; |
| 13537 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13538 | struct point {int x, y;}; |
| 13539 | static struct point const zero = {0,0}; |
| 13540 | /* AIX XL C 1.02.0.0 rejects this. |
| 13541 | It does not let you subtract one const X* pointer from another in |
| 13542 | an arm of an if-expression whose if-part is not a constant |
| 13543 | expression */ |
| 13544 | const char *g = "string"; |
| 13545 | ccp = &g + (g ? g-g : 0); |
| 13546 | /* HPUX 7.0 cc rejects these. */ |
| 13547 | ++ccp; |
| 13548 | p = (char**) ccp; |
| 13549 | ccp = (char const *const *) p; |
| 13550 | { /* SCO 3.2v4 cc rejects this. */ |
| 13551 | char *t; |
| 13552 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13553 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13554 | *t++ = 0; |
| 13555 | } |
| 13556 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13557 | int x[] = {25, 17}; |
| 13558 | const int *foo = &x[0]; |
| 13559 | ++foo; |
| 13560 | } |
| 13561 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13562 | typedef const int *iptr; |
| 13563 | iptr p = 0; |
| 13564 | ++p; |
| 13565 | } |
| 13566 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13567 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13568 | struct s { int j; const int *ap[3]; }; |
| 13569 | struct s *b; b->j = 5; |
| 13570 | } |
| 13571 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13572 | const int foo = 10; |
| 13573 | } |
| 13574 | #endif |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13575 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13576 | ; |
| 13577 | return 0; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13578 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13579 | _ACEOF |
| 13580 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13582 | (eval $ac_compile) 2>&5 |
| 13583 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13585 | (exit $ac_status); } && |
| 13586 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13588 | (eval $ac_try) 2>&5 |
| 13589 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13591 | (exit $ac_status); }; }; then |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13592 | ac_cv_c_const=yes |
| 13593 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13594 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13596 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13597 | ac_cv_c_const=no |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13598 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13599 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13600 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13601 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13602 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13603 | if test $ac_cv_c_const = no; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13604 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13605 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13606 | #define const |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13607 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13608 | |
| 13609 | fi |
| 13610 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13611 | echo "$as_me:$LINENO: checking for inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13612 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 13613 | if test "${ac_cv_c_inline+set}" = set; then |
| 13614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13615 | else |
| 13616 | ac_cv_c_inline=no |
| 13617 | for ac_kw in inline __inline__ __inline; do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13618 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13619 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13620 | /* confdefs.h. */ |
| 13621 | _ACEOF |
| 13622 | cat confdefs.h >>conftest.$ac_ext |
| 13623 | cat >>conftest.$ac_ext <<_ACEOF |
| 13624 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13625 | #ifndef __cplusplus |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 13626 | typedef int foo_t; |
| 13627 | static $ac_kw foo_t static_foo () {return 0; } |
| 13628 | $ac_kw foo_t foo () {return 0; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13629 | #endif |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13630 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13631 | _ACEOF |
| 13632 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13634 | (eval $ac_compile) 2>&5 |
| 13635 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13637 | (exit $ac_status); } && |
| 13638 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13640 | (eval $ac_try) 2>&5 |
| 13641 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13643 | (exit $ac_status); }; }; then |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13644 | ac_cv_c_inline=$ac_kw; break |
| 13645 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13646 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13648 | |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13649 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13650 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13651 | done |
| 13652 | |
| 13653 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13654 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13655 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 13656 | case $ac_cv_c_inline in |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13657 | inline | yes) ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13658 | no) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13659 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13660 | #define inline |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13661 | _ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13662 | ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13663 | *) cat >>confdefs.h <<_ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13664 | #define inline $ac_cv_c_inline |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13665 | _ACEOF |
Marcus Meissner | 1a8bbd7 | 1999-04-26 14:58:58 +0000 | [diff] [blame] | 13666 | ;; |
| 13667 | esac |
| 13668 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13669 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13670 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 13671 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 13672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13673 | else |
| 13674 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13675 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13676 | /* confdefs.h. */ |
| 13677 | _ACEOF |
| 13678 | cat confdefs.h >>conftest.$ac_ext |
| 13679 | cat >>conftest.$ac_ext <<_ACEOF |
| 13680 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13681 | $ac_includes_default |
| 13682 | int |
| 13683 | main () |
| 13684 | { |
| 13685 | if ((mode_t *) 0) |
| 13686 | return 0; |
| 13687 | if (sizeof (mode_t)) |
| 13688 | return 0; |
| 13689 | ; |
| 13690 | return 0; |
| 13691 | } |
| 13692 | _ACEOF |
| 13693 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13695 | (eval $ac_compile) 2>&5 |
| 13696 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13698 | (exit $ac_status); } && |
| 13699 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13701 | (eval $ac_try) 2>&5 |
| 13702 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13704 | (exit $ac_status); }; }; then |
| 13705 | ac_cv_type_mode_t=yes |
| 13706 | else |
| 13707 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13709 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13710 | ac_cv_type_mode_t=no |
| 13711 | fi |
| 13712 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13713 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13714 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13715 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 13716 | if test $ac_cv_type_mode_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13717 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13718 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13719 | #define HAVE_MODE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13720 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13721 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13722 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13723 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13724 | echo "$as_me:$LINENO: checking for off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13725 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 13726 | if test "${ac_cv_type_off_t+set}" = set; then |
| 13727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13728 | else |
| 13729 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13730 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13731 | /* confdefs.h. */ |
| 13732 | _ACEOF |
| 13733 | cat confdefs.h >>conftest.$ac_ext |
| 13734 | cat >>conftest.$ac_ext <<_ACEOF |
| 13735 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13736 | $ac_includes_default |
| 13737 | int |
| 13738 | main () |
| 13739 | { |
| 13740 | if ((off_t *) 0) |
| 13741 | return 0; |
| 13742 | if (sizeof (off_t)) |
| 13743 | return 0; |
| 13744 | ; |
| 13745 | return 0; |
| 13746 | } |
| 13747 | _ACEOF |
| 13748 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13750 | (eval $ac_compile) 2>&5 |
| 13751 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13753 | (exit $ac_status); } && |
| 13754 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13756 | (eval $ac_try) 2>&5 |
| 13757 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13759 | (exit $ac_status); }; }; then |
| 13760 | ac_cv_type_off_t=yes |
| 13761 | else |
| 13762 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13764 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13765 | ac_cv_type_off_t=no |
| 13766 | fi |
| 13767 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13768 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13769 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13770 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 13771 | if test $ac_cv_type_off_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13772 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13773 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13774 | #define HAVE_OFF_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13775 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13776 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13777 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13778 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13779 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13780 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 13781 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 13782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13783 | else |
| 13784 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13785 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13786 | /* confdefs.h. */ |
| 13787 | _ACEOF |
| 13788 | cat confdefs.h >>conftest.$ac_ext |
| 13789 | cat >>conftest.$ac_ext <<_ACEOF |
| 13790 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13791 | $ac_includes_default |
| 13792 | int |
| 13793 | main () |
| 13794 | { |
| 13795 | if ((pid_t *) 0) |
| 13796 | return 0; |
| 13797 | if (sizeof (pid_t)) |
| 13798 | return 0; |
| 13799 | ; |
| 13800 | return 0; |
| 13801 | } |
| 13802 | _ACEOF |
| 13803 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13805 | (eval $ac_compile) 2>&5 |
| 13806 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13808 | (exit $ac_status); } && |
| 13809 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13811 | (eval $ac_try) 2>&5 |
| 13812 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13814 | (exit $ac_status); }; }; then |
| 13815 | ac_cv_type_pid_t=yes |
| 13816 | else |
| 13817 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13819 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13820 | ac_cv_type_pid_t=no |
| 13821 | fi |
| 13822 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13823 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13824 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13825 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 13826 | if test $ac_cv_type_pid_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13827 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13828 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13829 | #define HAVE_PID_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13830 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13831 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13832 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13833 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13834 | echo "$as_me:$LINENO: checking for size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13835 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 13836 | if test "${ac_cv_type_size_t+set}" = set; then |
| 13837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13838 | else |
| 13839 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13840 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13841 | /* confdefs.h. */ |
| 13842 | _ACEOF |
| 13843 | cat confdefs.h >>conftest.$ac_ext |
| 13844 | cat >>conftest.$ac_ext <<_ACEOF |
| 13845 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13846 | $ac_includes_default |
| 13847 | int |
| 13848 | main () |
| 13849 | { |
| 13850 | if ((size_t *) 0) |
| 13851 | return 0; |
| 13852 | if (sizeof (size_t)) |
| 13853 | return 0; |
| 13854 | ; |
| 13855 | return 0; |
| 13856 | } |
| 13857 | _ACEOF |
| 13858 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13860 | (eval $ac_compile) 2>&5 |
| 13861 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13863 | (exit $ac_status); } && |
| 13864 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13866 | (eval $ac_try) 2>&5 |
| 13867 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13869 | (exit $ac_status); }; }; then |
| 13870 | ac_cv_type_size_t=yes |
| 13871 | else |
| 13872 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13874 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13875 | ac_cv_type_size_t=no |
| 13876 | fi |
| 13877 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13878 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13879 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13880 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 13881 | if test $ac_cv_type_size_t = yes; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13882 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13883 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13884 | #define HAVE_SIZE_T 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13885 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13886 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13887 | |
| 13888 | fi |
| 13889 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 13890 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
| 13891 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 13892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13893 | else |
| 13894 | cat >conftest.$ac_ext <<_ACEOF |
| 13895 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13896 | /* confdefs.h. */ |
| 13897 | _ACEOF |
| 13898 | cat confdefs.h >>conftest.$ac_ext |
| 13899 | cat >>conftest.$ac_ext <<_ACEOF |
| 13900 | /* end confdefs.h. */ |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13901 | $ac_includes_default |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13902 | int |
| 13903 | main () |
| 13904 | { |
| 13905 | if ((ssize_t *) 0) |
| 13906 | return 0; |
| 13907 | if (sizeof (ssize_t)) |
| 13908 | return 0; |
| 13909 | ; |
| 13910 | return 0; |
| 13911 | } |
| 13912 | _ACEOF |
| 13913 | rm -f conftest.$ac_objext |
| 13914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13915 | (eval $ac_compile) 2>&5 |
| 13916 | ac_status=$? |
| 13917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13918 | (exit $ac_status); } && |
| 13919 | { ac_try='test -s conftest.$ac_objext' |
| 13920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13921 | (eval $ac_try) 2>&5 |
| 13922 | ac_status=$? |
| 13923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13924 | (exit $ac_status); }; }; then |
| 13925 | ac_cv_type_ssize_t=yes |
| 13926 | else |
| 13927 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13929 | |
Alexandre Julliard | 5769d1d | 2002-04-26 19:05:15 +0000 | [diff] [blame] | 13930 | ac_cv_type_ssize_t=no |
| 13931 | fi |
| 13932 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13933 | fi |
| 13934 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 13935 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
| 13936 | if test $ac_cv_type_ssize_t = yes; then |
| 13937 | |
| 13938 | cat >>confdefs.h <<_ACEOF |
| 13939 | #define HAVE_SSIZE_T 1 |
| 13940 | _ACEOF |
| 13941 | |
| 13942 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 13943 | fi |
| 13944 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13945 | echo "$as_me:$LINENO: checking for long long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13946 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 13947 | if test "${ac_cv_type_long_long+set}" = set; then |
| 13948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13949 | else |
| 13950 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13951 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13952 | /* confdefs.h. */ |
| 13953 | _ACEOF |
| 13954 | cat confdefs.h >>conftest.$ac_ext |
| 13955 | cat >>conftest.$ac_ext <<_ACEOF |
| 13956 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13957 | $ac_includes_default |
| 13958 | int |
| 13959 | main () |
| 13960 | { |
| 13961 | if ((long long *) 0) |
| 13962 | return 0; |
| 13963 | if (sizeof (long long)) |
| 13964 | return 0; |
| 13965 | ; |
| 13966 | return 0; |
| 13967 | } |
| 13968 | _ACEOF |
| 13969 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13971 | (eval $ac_compile) 2>&5 |
| 13972 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13974 | (exit $ac_status); } && |
| 13975 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13977 | (eval $ac_try) 2>&5 |
| 13978 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13980 | (exit $ac_status); }; }; then |
| 13981 | ac_cv_type_long_long=yes |
| 13982 | else |
| 13983 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 13984 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13985 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13986 | ac_cv_type_long_long=no |
| 13987 | fi |
| 13988 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13989 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13990 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13991 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 13992 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13993 | echo "$as_me:$LINENO: checking size of long long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 13994 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 13995 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 13996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13997 | else |
| 13998 | if test "$ac_cv_type_long_long" = yes; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 13999 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 14000 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14001 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14002 | # This bug is HP SR number 8606223364. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14003 | if test "$cross_compiling" = yes; then |
| 14004 | # Depending upon the size, compute the lo and hi bounds. |
| 14005 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14006 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14007 | /* confdefs.h. */ |
| 14008 | _ACEOF |
| 14009 | cat confdefs.h >>conftest.$ac_ext |
| 14010 | cat >>conftest.$ac_ext <<_ACEOF |
| 14011 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14012 | $ac_includes_default |
| 14013 | int |
| 14014 | main () |
| 14015 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14016 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 14017 | test_array [0] = 0 |
| 14018 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14019 | ; |
| 14020 | return 0; |
| 14021 | } |
| 14022 | _ACEOF |
| 14023 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14025 | (eval $ac_compile) 2>&5 |
| 14026 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14028 | (exit $ac_status); } && |
| 14029 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14031 | (eval $ac_try) 2>&5 |
| 14032 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14034 | (exit $ac_status); }; }; then |
| 14035 | ac_lo=0 ac_mid=0 |
| 14036 | while :; do |
| 14037 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14038 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14039 | /* confdefs.h. */ |
| 14040 | _ACEOF |
| 14041 | cat confdefs.h >>conftest.$ac_ext |
| 14042 | cat >>conftest.$ac_ext <<_ACEOF |
| 14043 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14044 | $ac_includes_default |
| 14045 | int |
| 14046 | main () |
| 14047 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14048 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 14049 | test_array [0] = 0 |
| 14050 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14051 | ; |
| 14052 | return 0; |
| 14053 | } |
| 14054 | _ACEOF |
| 14055 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14057 | (eval $ac_compile) 2>&5 |
| 14058 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14060 | (exit $ac_status); } && |
| 14061 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14063 | (eval $ac_try) 2>&5 |
| 14064 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14066 | (exit $ac_status); }; }; then |
| 14067 | ac_hi=$ac_mid; break |
| 14068 | else |
| 14069 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14070 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14071 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14072 | ac_lo=`expr $ac_mid + 1` |
| 14073 | if test $ac_lo -le $ac_mid; then |
| 14074 | ac_lo= ac_hi= |
| 14075 | break |
| 14076 | fi |
| 14077 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14078 | fi |
| 14079 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14080 | done |
| 14081 | else |
| 14082 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14084 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14085 | cat >conftest.$ac_ext <<_ACEOF |
| 14086 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14087 | /* confdefs.h. */ |
| 14088 | _ACEOF |
| 14089 | cat confdefs.h >>conftest.$ac_ext |
| 14090 | cat >>conftest.$ac_ext <<_ACEOF |
| 14091 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14092 | $ac_includes_default |
| 14093 | int |
| 14094 | main () |
| 14095 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14096 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 14097 | test_array [0] = 0 |
| 14098 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14099 | ; |
| 14100 | return 0; |
| 14101 | } |
| 14102 | _ACEOF |
| 14103 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14105 | (eval $ac_compile) 2>&5 |
| 14106 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14108 | (exit $ac_status); } && |
| 14109 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14111 | (eval $ac_try) 2>&5 |
| 14112 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14114 | (exit $ac_status); }; }; then |
| 14115 | ac_hi=-1 ac_mid=-1 |
| 14116 | while :; do |
| 14117 | cat >conftest.$ac_ext <<_ACEOF |
| 14118 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14119 | /* confdefs.h. */ |
| 14120 | _ACEOF |
| 14121 | cat confdefs.h >>conftest.$ac_ext |
| 14122 | cat >>conftest.$ac_ext <<_ACEOF |
| 14123 | /* end confdefs.h. */ |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14124 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14125 | int |
| 14126 | main () |
| 14127 | { |
| 14128 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 14129 | test_array [0] = 0 |
| 14130 | |
| 14131 | ; |
| 14132 | return 0; |
| 14133 | } |
| 14134 | _ACEOF |
| 14135 | rm -f conftest.$ac_objext |
| 14136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14137 | (eval $ac_compile) 2>&5 |
| 14138 | ac_status=$? |
| 14139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14140 | (exit $ac_status); } && |
| 14141 | { ac_try='test -s conftest.$ac_objext' |
| 14142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14143 | (eval $ac_try) 2>&5 |
| 14144 | ac_status=$? |
| 14145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14146 | (exit $ac_status); }; }; then |
| 14147 | ac_lo=$ac_mid; break |
| 14148 | else |
| 14149 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14151 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14152 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14153 | if test $ac_mid -le $ac_hi; then |
| 14154 | ac_lo= ac_hi= |
| 14155 | break |
| 14156 | fi |
| 14157 | ac_mid=`expr 2 '*' $ac_mid` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14158 | fi |
| 14159 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14160 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14161 | else |
| 14162 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14164 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14165 | ac_lo= ac_hi= |
| 14166 | fi |
| 14167 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14168 | fi |
| 14169 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14170 | # Binary search between lo and hi bounds. |
| 14171 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14172 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14173 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14174 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14175 | /* confdefs.h. */ |
| 14176 | _ACEOF |
| 14177 | cat confdefs.h >>conftest.$ac_ext |
| 14178 | cat >>conftest.$ac_ext <<_ACEOF |
| 14179 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14180 | $ac_includes_default |
| 14181 | int |
| 14182 | main () |
| 14183 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14184 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 14185 | test_array [0] = 0 |
| 14186 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14187 | ; |
| 14188 | return 0; |
| 14189 | } |
| 14190 | _ACEOF |
| 14191 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14193 | (eval $ac_compile) 2>&5 |
| 14194 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14196 | (exit $ac_status); } && |
| 14197 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14199 | (eval $ac_try) 2>&5 |
| 14200 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14202 | (exit $ac_status); }; }; then |
| 14203 | ac_hi=$ac_mid |
| 14204 | else |
| 14205 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14207 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14208 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14209 | fi |
| 14210 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14211 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14212 | case $ac_lo in |
| 14213 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14214 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 14215 | See \`config.log' for more details." >&5 |
| 14216 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 14217 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14218 | { (exit 1); exit 1; }; } ;; |
| 14219 | esac |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14220 | else |
| 14221 | if test "$cross_compiling" = yes; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14222 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 14223 | See \`config.log' for more details." >&5 |
| 14224 | echo "$as_me: error: cannot run test program while cross compiling |
| 14225 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14226 | { (exit 1); exit 1; }; } |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14227 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14228 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14229 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14230 | /* confdefs.h. */ |
| 14231 | _ACEOF |
| 14232 | cat confdefs.h >>conftest.$ac_ext |
| 14233 | cat >>conftest.$ac_ext <<_ACEOF |
| 14234 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14235 | $ac_includes_default |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14236 | long longval () { return (long) (sizeof (long long)); } |
| 14237 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
| 14238 | #include <stdio.h> |
| 14239 | #include <stdlib.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14240 | int |
| 14241 | main () |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14242 | { |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14243 | |
| 14244 | FILE *f = fopen ("conftest.val", "w"); |
| 14245 | if (! f) |
| 14246 | exit (1); |
| 14247 | if (((long) (sizeof (long long))) < 0) |
| 14248 | { |
| 14249 | long i = longval (); |
| 14250 | if (i != ((long) (sizeof (long long)))) |
| 14251 | exit (1); |
| 14252 | fprintf (f, "%ld\n", i); |
| 14253 | } |
| 14254 | else |
| 14255 | { |
| 14256 | unsigned long i = ulongval (); |
| 14257 | if (i != ((long) (sizeof (long long)))) |
| 14258 | exit (1); |
| 14259 | fprintf (f, "%lu\n", i); |
| 14260 | } |
| 14261 | exit (ferror (f) || fclose (f) != 0); |
| 14262 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14263 | ; |
| 14264 | return 0; |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14265 | } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14266 | _ACEOF |
| 14267 | rm -f conftest$ac_exeext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14269 | (eval $ac_link) 2>&5 |
| 14270 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14272 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14274 | (eval $ac_try) 2>&5 |
| 14275 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14277 | (exit $ac_status); }; }; then |
| 14278 | ac_cv_sizeof_long_long=`cat conftest.val` |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14279 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14280 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14281 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14283 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14284 | ( exit $ac_status ) |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14285 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 14286 | See \`config.log' for more details." >&5 |
| 14287 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 14288 | See \`config.log' for more details." >&2;} |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14289 | { (exit 1); exit 1; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14290 | fi |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 14291 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14292 | fi |
| 14293 | fi |
| 14294 | rm -f conftest.val |
| 14295 | else |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14296 | ac_cv_sizeof_long_long=0 |
| 14297 | fi |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14298 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14299 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14300 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14301 | cat >>confdefs.h <<_ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14302 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14303 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14304 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14305 | |
| 14306 | |
| 14307 | 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] | 14308 | echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6 |
| 14309 | if test "${wine_cv_linux_input_h+set}" = set; then |
| 14310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14311 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14312 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14313 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14314 | /* confdefs.h. */ |
| 14315 | _ACEOF |
| 14316 | cat confdefs.h >>conftest.$ac_ext |
| 14317 | cat >>conftest.$ac_ext <<_ACEOF |
| 14318 | /* end confdefs.h. */ |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14319 | |
| 14320 | #include <linux/input.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14321 | |
| 14322 | int |
| 14323 | main () |
| 14324 | { |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14325 | |
| 14326 | int foo = EVIOCGBIT(EV_ABS,42); |
| 14327 | int bar = BTN_PINKIE; |
| 14328 | int fortytwo = 42; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14329 | |
| 14330 | ; |
| 14331 | return 0; |
| 14332 | } |
| 14333 | _ACEOF |
| 14334 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14336 | (eval $ac_compile) 2>&5 |
| 14337 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14339 | (exit $ac_status); } && |
| 14340 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14342 | (eval $ac_try) 2>&5 |
| 14343 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14345 | (exit $ac_status); }; }; then |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14346 | wine_cv_linux_input_h=yes |
| 14347 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14348 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14350 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14351 | wine_cv_linux_input_h=no |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14352 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14353 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14354 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14355 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14356 | echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14357 | echo "${ECHO_T}$wine_cv_linux_input_h" >&6 |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14358 | if test "$wine_cv_linux_input_h" = "yes" |
| 14359 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14360 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14361 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14362 | #define HAVE_CORRECT_LINUXINPUT_H 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14363 | _ACEOF |
Marcus Meissner | 74f2b4b | 2001-01-19 21:09:07 +0000 | [diff] [blame] | 14364 | |
| 14365 | fi |
| 14366 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14367 | |
| 14368 | 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] | 14369 | echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6 |
| 14370 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
| 14371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14372 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14373 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14374 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14375 | /* confdefs.h. */ |
| 14376 | _ACEOF |
| 14377 | cat confdefs.h >>conftest.$ac_ext |
| 14378 | cat >>conftest.$ac_ext <<_ACEOF |
| 14379 | /* end confdefs.h. */ |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14380 | |
| 14381 | #include <netdb.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14382 | |
| 14383 | int |
| 14384 | main () |
| 14385 | { |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14386 | |
| 14387 | char *name=NULL; |
| 14388 | struct hostent he; |
| 14389 | struct hostent *result; |
| 14390 | char *buf=NULL; |
| 14391 | int bufsize=0; |
| 14392 | int res,errnr; |
| 14393 | char *addr=NULL; |
| 14394 | int addrlen=0; |
| 14395 | int addrtype=0; |
| 14396 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); |
| 14397 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14398 | |
| 14399 | ; |
| 14400 | return 0; |
| 14401 | } |
| 14402 | _ACEOF |
| 14403 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14405 | (eval $ac_compile) 2>&5 |
| 14406 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14408 | (exit $ac_status); } && |
| 14409 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14411 | (eval $ac_try) 2>&5 |
| 14412 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14414 | (exit $ac_status); }; }; then |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14415 | wine_cv_linux_gethostbyname_r_6=yes |
| 14416 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14417 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14419 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14420 | wine_cv_linux_gethostbyname_r_6=no |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14421 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14422 | fi |
| 14423 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14424 | |
| 14425 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14426 | echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14427 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6 |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14428 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
| 14429 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14430 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14431 | cat >>confdefs.h <<\_ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14432 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14433 | _ACEOF |
Rein Klazes | ff7a61f | 2000-09-24 19:41:57 +0000 | [diff] [blame] | 14434 | |
| 14435 | fi |
| 14436 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14437 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14438 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14439 | 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] | 14440 | echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6 |
| 14441 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
| 14442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14443 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14444 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14445 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14446 | /* confdefs.h. */ |
| 14447 | _ACEOF |
| 14448 | cat confdefs.h >>conftest.$ac_ext |
| 14449 | cat >>conftest.$ac_ext <<_ACEOF |
| 14450 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14451 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14452 | #include <sys/ioctl.h> |
| 14453 | #include <linux/joystick.h> |
| 14454 | |
| 14455 | struct js_event blub; |
Marcus Meissner | 605a9c3 | 1999-11-04 02:04:01 +0000 | [diff] [blame] | 14456 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
| 14457 | #error "no 2.2 header" |
| 14458 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14459 | |
| 14460 | int |
| 14461 | main () |
| 14462 | { |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14463 | /*empty*/ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14464 | ; |
| 14465 | return 0; |
| 14466 | } |
| 14467 | _ACEOF |
| 14468 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14470 | (eval $ac_compile) 2>&5 |
| 14471 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14473 | (exit $ac_status); } && |
| 14474 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14476 | (eval $ac_try) 2>&5 |
| 14477 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14479 | (exit $ac_status); }; }; then |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14480 | wine_cv_linux_joystick_22_api=yes |
| 14481 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14482 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14484 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14485 | wine_cv_linux_joystick_22_api=no |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14486 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14487 | rm -f conftest.$ac_objext conftest.$ac_ext |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14488 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14489 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14490 | echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14491 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6 |
Rein Klazes | 87d224a | 2000-04-24 17:33:49 +0000 | [diff] [blame] | 14492 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14493 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14494 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14495 | cat >>confdefs.h <<\_ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14496 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14497 | _ACEOF |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14498 | |
| 14499 | fi |
| 14500 | fi |
| 14501 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14502 | |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14503 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
| 14504 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14505 | echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14506 | echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6 |
| 14507 | if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then |
| 14508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14509 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14510 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14511 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14512 | /* confdefs.h. */ |
| 14513 | _ACEOF |
| 14514 | cat confdefs.h >>conftest.$ac_ext |
| 14515 | cat >>conftest.$ac_ext <<_ACEOF |
| 14516 | /* end confdefs.h. */ |
Marcus Meissner | 028e9a1 | 1999-08-04 15:07:56 +0000 | [diff] [blame] | 14517 | |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14518 | #include <sys/types.h> |
| 14519 | #ifdef HAVE_SYS_PARAM_H |
| 14520 | # include <sys/param.h> |
| 14521 | #endif |
| 14522 | #include <sys/vfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14523 | |
| 14524 | int |
| 14525 | main () |
| 14526 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14527 | |
| 14528 | struct statfs stfs; |
| 14529 | |
| 14530 | memset(&stfs,0,sizeof(stfs)); |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14531 | |
| 14532 | ; |
| 14533 | return 0; |
| 14534 | } |
| 14535 | _ACEOF |
| 14536 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14538 | (eval $ac_compile) 2>&5 |
| 14539 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14541 | (exit $ac_status); } && |
| 14542 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14544 | (eval $ac_try) 2>&5 |
| 14545 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14547 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14548 | wine_cv_sys_vfs_has_statfs=yes |
| 14549 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14550 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14552 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14553 | wine_cv_sys_vfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14554 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14555 | fi |
| 14556 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14557 | |
| 14558 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14559 | echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14560 | echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14561 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
| 14562 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14563 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14564 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14565 | #define STATFS_DEFINED_BY_SYS_VFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14566 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14567 | |
| 14568 | fi |
| 14569 | fi |
| 14570 | |
| 14571 | if test "$ac_cv_header_sys_statfs_h" = "yes" |
| 14572 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14573 | echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14574 | echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6 |
| 14575 | if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then |
| 14576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14577 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14578 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14579 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14580 | /* confdefs.h. */ |
| 14581 | _ACEOF |
| 14582 | cat confdefs.h >>conftest.$ac_ext |
| 14583 | cat >>conftest.$ac_ext <<_ACEOF |
| 14584 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14585 | |
| 14586 | #include <sys/types.h> |
| 14587 | #ifdef HAVE_SYS_PARAM_H |
| 14588 | # include <sys/param.h> |
| 14589 | #endif |
| 14590 | #include <sys/statfs.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14591 | |
| 14592 | int |
| 14593 | main () |
| 14594 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14595 | |
| 14596 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14597 | |
| 14598 | ; |
| 14599 | return 0; |
| 14600 | } |
| 14601 | _ACEOF |
| 14602 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14604 | (eval $ac_compile) 2>&5 |
| 14605 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14607 | (exit $ac_status); } && |
| 14608 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14610 | (eval $ac_try) 2>&5 |
| 14611 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14613 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14614 | wine_cv_sys_statfs_has_statfs=yes |
| 14615 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14616 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14618 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14619 | wine_cv_sys_statfs_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14620 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14621 | fi |
| 14622 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14623 | |
| 14624 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14625 | echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14626 | echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14627 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
| 14628 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14629 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14630 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14631 | #define STATFS_DEFINED_BY_SYS_STATFS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14632 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14633 | |
| 14634 | fi |
| 14635 | fi |
| 14636 | |
| 14637 | if test "$ac_cv_header_sys_mount_h" = "yes" |
| 14638 | then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14639 | echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14640 | echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6 |
| 14641 | if test "${wine_cv_sys_mount_has_statfs+set}" = set; then |
| 14642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14643 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14644 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14645 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14646 | /* confdefs.h. */ |
| 14647 | _ACEOF |
| 14648 | cat confdefs.h >>conftest.$ac_ext |
| 14649 | cat >>conftest.$ac_ext <<_ACEOF |
| 14650 | /* end confdefs.h. */ |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14651 | |
| 14652 | #include <sys/types.h> |
| 14653 | #ifdef HAVE_SYS_PARAM_H |
| 14654 | # include <sys/param.h> |
| 14655 | #endif |
| 14656 | #include <sys/mount.h> |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14657 | |
| 14658 | int |
| 14659 | main () |
| 14660 | { |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14661 | |
| 14662 | struct statfs stfs; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14663 | |
| 14664 | ; |
| 14665 | return 0; |
| 14666 | } |
| 14667 | _ACEOF |
| 14668 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14670 | (eval $ac_compile) 2>&5 |
| 14671 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14673 | (exit $ac_status); } && |
| 14674 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14676 | (eval $ac_try) 2>&5 |
| 14677 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14679 | (exit $ac_status); }; }; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14680 | wine_cv_sys_mount_has_statfs=yes |
| 14681 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14682 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14684 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14685 | wine_cv_sys_mount_has_statfs=no |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14686 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14687 | fi |
| 14688 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14689 | |
| 14690 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14691 | echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14692 | echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14693 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
| 14694 | then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14695 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14696 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14697 | #define STATFS_DEFINED_BY_SYS_MOUNT 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14698 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14699 | |
| 14700 | fi |
| 14701 | fi |
| 14702 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14703 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14704 | echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14705 | echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6 |
| 14706 | if test "${ac_cv_c_statfs_f_bfree+set}" = set; then |
| 14707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14708 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14709 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14710 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14711 | /* confdefs.h. */ |
| 14712 | _ACEOF |
| 14713 | cat confdefs.h >>conftest.$ac_ext |
| 14714 | cat >>conftest.$ac_ext <<_ACEOF |
| 14715 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14716 | #include <sys/types.h> |
| 14717 | #ifdef HAVE_SYS_PARAM_H |
| 14718 | # include <sys/param.h> |
| 14719 | #endif |
| 14720 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 14721 | # include <sys/mount.h> |
| 14722 | #else |
| 14723 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 14724 | # include <sys/vfs.h> |
| 14725 | # else |
| 14726 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 14727 | # include <sys/statfs.h> |
| 14728 | # endif |
| 14729 | # endif |
| 14730 | #endif |
| 14731 | int |
| 14732 | main () |
| 14733 | { |
| 14734 | struct statfs s; s.f_bfree = 0 |
| 14735 | ; |
| 14736 | return 0; |
| 14737 | } |
| 14738 | _ACEOF |
| 14739 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14741 | (eval $ac_compile) 2>&5 |
| 14742 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14744 | (exit $ac_status); } && |
| 14745 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14747 | (eval $ac_try) 2>&5 |
| 14748 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14750 | (exit $ac_status); }; }; then |
| 14751 | ac_cv_c_statfs_f_bfree="yes" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14752 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14753 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14755 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14756 | ac_cv_c_statfs_f_bfree="no" |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14757 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14758 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14759 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14760 | echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14761 | echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6 |
| 14762 | if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14763 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14764 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14765 | #define STATFS_HAS_BFREE 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14766 | _ACEOF |
Alexandre Julliard | dadf78f | 1998-05-17 17:13:43 +0000 | [diff] [blame] | 14767 | |
| 14768 | fi |
| 14769 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14770 | |
| 14771 | |
| 14772 | echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14773 | echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6 |
| 14774 | if test "${ac_cv_c_statfs_f_bavail+set}" = set; then |
| 14775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14776 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14777 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14778 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14779 | /* confdefs.h. */ |
| 14780 | _ACEOF |
| 14781 | cat confdefs.h >>conftest.$ac_ext |
| 14782 | cat >>conftest.$ac_ext <<_ACEOF |
| 14783 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14784 | #include <sys/types.h> |
| 14785 | #ifdef HAVE_SYS_PARAM_H |
| 14786 | # include <sys/param.h> |
| 14787 | #endif |
| 14788 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT |
| 14789 | # include <sys/mount.h> |
| 14790 | #else |
| 14791 | # ifdef STATFS_DEFINED_BY_SYS_VFS |
| 14792 | # include <sys/vfs.h> |
| 14793 | # else |
| 14794 | # ifdef STATFS_DEFINED_BY_SYS_STATFS |
| 14795 | # include <sys/statfs.h> |
| 14796 | # endif |
| 14797 | # endif |
| 14798 | #endif |
| 14799 | int |
| 14800 | main () |
| 14801 | { |
| 14802 | struct statfs s; s.f_bavail = 0 |
| 14803 | ; |
| 14804 | return 0; |
| 14805 | } |
| 14806 | _ACEOF |
| 14807 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14809 | (eval $ac_compile) 2>&5 |
| 14810 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14812 | (exit $ac_status); } && |
| 14813 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14815 | (eval $ac_try) 2>&5 |
| 14816 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14818 | (exit $ac_status); }; }; then |
| 14819 | ac_cv_c_statfs_f_bavail="yes" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14820 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14821 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14823 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14824 | ac_cv_c_statfs_f_bavail="no" |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14825 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14826 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14827 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14828 | echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14829 | echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6 |
| 14830 | if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14831 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14832 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14833 | #define STATFS_HAS_BAVAIL 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14834 | _ACEOF |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 14835 | |
| 14836 | fi |
| 14837 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14838 | |
| 14839 | |
| 14840 | echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14841 | echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6 |
| 14842 | if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then |
| 14843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 14844 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14845 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14846 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14847 | /* confdefs.h. */ |
| 14848 | _ACEOF |
| 14849 | cat confdefs.h >>conftest.$ac_ext |
| 14850 | cat >>conftest.$ac_ext <<_ACEOF |
| 14851 | /* end confdefs.h. */ |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 14852 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 14853 | #ifdef HAVE_SYS_SOCKET_H |
| 14854 | # include <sys/socket.h> |
| 14855 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14856 | int |
| 14857 | main () |
| 14858 | { |
| 14859 | struct msghdr s; s.msg_accrights = 0 |
| 14860 | ; |
| 14861 | return 0; |
| 14862 | } |
| 14863 | _ACEOF |
| 14864 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14866 | (eval $ac_compile) 2>&5 |
| 14867 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14869 | (exit $ac_status); } && |
| 14870 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14872 | (eval $ac_try) 2>&5 |
| 14873 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14875 | (exit $ac_status); }; }; then |
| 14876 | ac_cv_c_msghdr_msg_accrights="yes" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 14877 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14878 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14879 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14880 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14881 | ac_cv_c_msghdr_msg_accrights="no" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 14882 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14883 | rm -f conftest.$ac_objext conftest.$ac_ext |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 14884 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14885 | echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14886 | echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6 |
| 14887 | if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 14888 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14889 | cat >>confdefs.h <<\_ACEOF |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 14890 | #define HAVE_MSGHDR_ACCRIGHTS 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14891 | _ACEOF |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 14892 | |
| 14893 | fi |
| 14894 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14895 | |
| 14896 | |
| 14897 | echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14898 | echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 |
| 14899 | if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then |
| 14900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 14901 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14902 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14903 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14904 | /* confdefs.h. */ |
| 14905 | _ACEOF |
| 14906 | cat confdefs.h >>conftest.$ac_ext |
| 14907 | cat >>conftest.$ac_ext <<_ACEOF |
| 14908 | /* end confdefs.h. */ |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 14909 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 14910 | #ifdef HAVE_SYS_SOCKET_H |
| 14911 | # include <sys/socket.h> |
| 14912 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14913 | int |
| 14914 | main () |
| 14915 | { |
| 14916 | struct sockaddr s; s.sa_len = 0 |
| 14917 | ; |
| 14918 | return 0; |
| 14919 | } |
| 14920 | _ACEOF |
| 14921 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14923 | (eval $ac_compile) 2>&5 |
| 14924 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14926 | (exit $ac_status); } && |
| 14927 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14929 | (eval $ac_try) 2>&5 |
| 14930 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14932 | (exit $ac_status); }; }; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 14933 | ac_cv_c_sockaddr_sa_len="yes" |
| 14934 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14935 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14937 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14938 | ac_cv_c_sockaddr_sa_len="no" |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 14939 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14940 | rm -f conftest.$ac_objext conftest.$ac_ext |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 14941 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14942 | echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14943 | echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6 |
| 14944 | if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 14945 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14946 | cat >>confdefs.h <<\_ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 14947 | #define HAVE_SOCKADDR_SA_LEN 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14948 | _ACEOF |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 14949 | |
| 14950 | fi |
| 14951 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14952 | |
| 14953 | |
| 14954 | echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14955 | echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6 |
| 14956 | if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then |
| 14957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 14958 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14959 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14960 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14961 | /* confdefs.h. */ |
| 14962 | _ACEOF |
| 14963 | cat confdefs.h >>conftest.$ac_ext |
| 14964 | cat >>conftest.$ac_ext <<_ACEOF |
| 14965 | /* end confdefs.h. */ |
Patrik Stridvall | 09da966 | 2001-07-08 22:30:50 +0000 | [diff] [blame] | 14966 | #include <sys/types.h> |
Patrik Stridvall | 63ae7fe | 2002-11-08 19:34:52 +0000 | [diff] [blame] | 14967 | #ifdef HAVE_SYS_SOCKET_H |
| 14968 | # include <sys/socket.h> |
| 14969 | #endif |
| 14970 | #ifdef HAVE_SYS_UN_H |
| 14971 | # include <sys/un.h> |
| 14972 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14973 | int |
| 14974 | main () |
| 14975 | { |
| 14976 | struct sockaddr_un s; s.sun_len = 0 |
| 14977 | ; |
| 14978 | return 0; |
| 14979 | } |
| 14980 | _ACEOF |
| 14981 | rm -f conftest.$ac_objext |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14983 | (eval $ac_compile) 2>&5 |
| 14984 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14986 | (exit $ac_status); } && |
| 14987 | { ac_try='test -s conftest.$ac_objext' |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14989 | (eval $ac_try) 2>&5 |
| 14990 | ac_status=$? |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 14991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14992 | (exit $ac_status); }; }; then |
| 14993 | ac_cv_c_sockaddr_un_sun_len="yes" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 14994 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14995 | echo "$as_me: failed program was:" >&5 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 14996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14997 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 14998 | ac_cv_c_sockaddr_un_sun_len="no" |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 14999 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15000 | rm -f conftest.$ac_objext conftest.$ac_ext |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15001 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15002 | echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15003 | echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6 |
| 15004 | if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15005 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15006 | cat >>confdefs.h <<\_ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15007 | #define HAVE_SOCKADDR_SUN_LEN 1 |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15008 | _ACEOF |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15009 | |
| 15010 | fi |
| 15011 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15012 | |
| 15013 | |
| 15014 | |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 15015 | case $host_cpu in |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15016 | *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] | 15017 | 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] | 15018 | if test "${ac_cv_cpp_def___i386__+set}" = set; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Juergen Lock | 2d33ab9 | 2000-02-13 16:03:29 +0000 | [diff] [blame] | 15020 | else |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15021 | cat >conftest.$ac_ext <<_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15022 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15023 | /* confdefs.h. */ |
| 15024 | _ACEOF |
| 15025 | cat confdefs.h >>conftest.$ac_ext |
| 15026 | cat >>conftest.$ac_ext <<_ACEOF |
| 15027 | /* end confdefs.h. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15028 | #ifndef __i386__ |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 15029 | yes |
| 15030 | #endif |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15031 | _ACEOF |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 15032 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15033 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15034 | ac_cv_cpp_def___i386__=yes |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 15035 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15036 | ac_cv_cpp_def___i386__=no |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 15037 | fi |
| 15038 | rm -f conftest* |
| 15039 | |
| 15040 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15041 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5 |
| 15042 | echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6 |
| 15043 | if test $ac_cv_cpp_def___i386__ = yes; then |
| 15044 | CFLAGS="$CFLAGS -D__i386__" |
| 15045 | LINTFLAGS="$LINTFLAGS -D__i386__" |
Alexandre Julliard | 51d46ba | 1999-05-08 16:05:27 +0000 | [diff] [blame] | 15046 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15047 | ;; |
| 15048 | *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] | 15049 | 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] | 15050 | if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 15051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15052 | else |
| 15053 | cat >conftest.$ac_ext <<_ACEOF |
| 15054 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15055 | /* confdefs.h. */ |
| 15056 | _ACEOF |
| 15057 | cat confdefs.h >>conftest.$ac_ext |
| 15058 | cat >>conftest.$ac_ext <<_ACEOF |
| 15059 | /* end confdefs.h. */ |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 15060 | #ifndef __ALPHA__ |
| 15061 | yes |
| 15062 | #endif |
| 15063 | _ACEOF |
| 15064 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 15065 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15066 | ac_cv_cpp_def___ALPHA__=yes |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 15067 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15068 | ac_cv_cpp_def___ALPHA__=no |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 15069 | fi |
| 15070 | rm -f conftest* |
| 15071 | |
| 15072 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15073 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5 |
| 15074 | echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6 |
| 15075 | if test $ac_cv_cpp_def___ALPHA__ = yes; then |
| 15076 | CFLAGS="$CFLAGS -D__ALPHA__" |
| 15077 | LINTFLAGS="$LINTFLAGS -D__ALPHA__" |
Steven Edwards | 69b6786 | 2002-12-10 22:48:48 +0000 | [diff] [blame] | 15078 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15079 | ;; |
| 15080 | *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] | 15081 | 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] | 15082 | if test "${ac_cv_cpp_def___sparc__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15084 | else |
| 15085 | cat >conftest.$ac_ext <<_ACEOF |
| 15086 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15087 | /* confdefs.h. */ |
| 15088 | _ACEOF |
| 15089 | cat confdefs.h >>conftest.$ac_ext |
| 15090 | cat >>conftest.$ac_ext <<_ACEOF |
| 15091 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15092 | #ifndef __sparc__ |
| 15093 | yes |
| 15094 | #endif |
| 15095 | _ACEOF |
| 15096 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15097 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15098 | ac_cv_cpp_def___sparc__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15099 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15100 | ac_cv_cpp_def___sparc__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15101 | fi |
| 15102 | rm -f conftest* |
| 15103 | |
| 15104 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15105 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5 |
| 15106 | echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6 |
| 15107 | if test $ac_cv_cpp_def___sparc__ = yes; then |
| 15108 | CFLAGS="$CFLAGS -D__sparc__" |
| 15109 | LINTFLAGS="$LINTFLAGS -D__sparc__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15110 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15111 | ;; |
| 15112 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15113 | |
| 15114 | case $host_vendor in |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15115 | *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] | 15116 | 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] | 15117 | if test "${ac_cv_cpp_def___sun__+set}" = set; then |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15119 | else |
| 15120 | cat >conftest.$ac_ext <<_ACEOF |
| 15121 | #line $LINENO "configure" |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15122 | /* confdefs.h. */ |
| 15123 | _ACEOF |
| 15124 | cat confdefs.h >>conftest.$ac_ext |
| 15125 | cat >>conftest.$ac_ext <<_ACEOF |
| 15126 | /* end confdefs.h. */ |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15127 | #ifndef __sun__ |
| 15128 | yes |
| 15129 | #endif |
| 15130 | _ACEOF |
| 15131 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15132 | $EGREP "yes" >/dev/null 2>&1; then |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15133 | ac_cv_cpp_def___sun__=yes |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15134 | else |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15135 | ac_cv_cpp_def___sun__=no |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15136 | fi |
| 15137 | rm -f conftest* |
| 15138 | |
| 15139 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15140 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5 |
| 15141 | echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6 |
| 15142 | if test $ac_cv_cpp_def___sun__ = yes; then |
| 15143 | CFLAGS="$CFLAGS -D__sun__" |
| 15144 | LINTFLAGS="$LINTFLAGS -D__sun__" |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15145 | fi |
Alexandre Julliard | 05783b5 | 2002-12-11 00:21:55 +0000 | [diff] [blame] | 15146 | ;; |
| 15147 | esac |
Gregg Mattinson | 57807fa | 2002-07-20 20:17:13 +0000 | [diff] [blame] | 15148 | |
| 15149 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15150 | |
| 15151 | |
| 15152 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15153 | ac_config_commands="$ac_config_commands controls" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15154 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15155 | ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 15156 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15157 | ac_config_commands="$ac_config_commands dlls/ddraw/dclipper" |
Marcus Meissner | a7f5cb5 | 1999-04-16 08:47:41 +0000 | [diff] [blame] | 15158 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15159 | ac_config_commands="$ac_config_commands dlls/ddraw/ddraw" |
Alexandre Julliard | 829fe32 | 1998-07-26 14:27:39 +0000 | [diff] [blame] | 15160 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15161 | ac_config_commands="$ac_config_commands dlls/ddraw/direct3d" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 15162 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15163 | ac_config_commands="$ac_config_commands dlls/ddraw/dpalette" |
François Gouget | 1425941 | 2001-11-06 20:57:11 +0000 | [diff] [blame] | 15164 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15165 | ac_config_commands="$ac_config_commands dlls/ddraw/dsurface" |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 15166 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15167 | ac_config_commands="$ac_config_commands dlls/dinput/joystick" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15168 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15169 | ac_config_commands="$ac_config_commands dlls/dinput/keyboard" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15170 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15171 | ac_config_commands="$ac_config_commands dlls/dinput/mouse" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15172 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15173 | ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 15174 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15175 | ac_config_commands="$ac_config_commands dlls/gdi/mfdrv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 15176 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15177 | ac_config_commands="$ac_config_commands dlls/gdi/win16drv" |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 15178 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15179 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15180 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15181 | ac_config_commands="$ac_config_commands dlls/user/dde" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15182 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15183 | ac_config_commands="$ac_config_commands dlls/user/resources" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15184 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15185 | ac_config_commands="$ac_config_commands dlls/wineps/data" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15186 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15187 | ac_config_commands="$ac_config_commands files" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15188 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15189 | ac_config_commands="$ac_config_commands graphics" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15190 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15191 | ac_config_commands="$ac_config_commands graphics/x11drv" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15192 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15193 | ac_config_commands="$ac_config_commands if1632" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15194 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15195 | ac_config_commands="$ac_config_commands include/wine" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15196 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15197 | ac_config_commands="$ac_config_commands loader" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15198 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15199 | ac_config_commands="$ac_config_commands loader/ne" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15200 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15201 | ac_config_commands="$ac_config_commands memory" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15202 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15203 | ac_config_commands="$ac_config_commands misc" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15204 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15205 | ac_config_commands="$ac_config_commands msdos" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15206 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15207 | ac_config_commands="$ac_config_commands objects" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15208 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15209 | ac_config_commands="$ac_config_commands programs/regapi/tests" |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 15210 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15211 | ac_config_commands="$ac_config_commands programs/regedit/tests" |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 15212 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15213 | ac_config_commands="$ac_config_commands relay32" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15214 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15215 | ac_config_commands="$ac_config_commands scheduler" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15216 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15217 | ac_config_commands="$ac_config_commands win32" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15218 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15219 | ac_config_commands="$ac_config_commands windows" |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15220 | |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 15221 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 15222 | MAKE_RULES=Make.rules |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15223 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15224 | |
Alexandre Julliard | d0edc5f | 2000-03-04 22:31:27 +0000 | [diff] [blame] | 15225 | MAKE_DLL_RULES=dlls/Makedll.rules |
| 15226 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15227 | |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 15228 | MAKE_TEST_RULES=dlls/Maketest.rules |
| 15229 | |
| 15230 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 15231 | MAKE_PROG_RULES=programs/Makeprog.rules |
| 15232 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15233 | |
Dmitry Timoshkov | 5a23a00 | 2003-01-02 19:34:14 +0000 | [diff] [blame^] | 15234 | ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile unicode/Makefile" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15235 | |
Alexandre Julliard | 626f425 | 2000-11-10 23:35:20 +0000 | [diff] [blame] | 15236 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15237 | cat >confcache <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15238 | # This file is a shell script that caches the results of configure |
| 15239 | # tests run on this system so they can be shared between configure |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15240 | # scripts and configure runs, see configure's option --config-cache. |
| 15241 | # It is not useful on other systems. If it contains results you don't |
| 15242 | # want to keep, you may remove or edit it. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15243 | # |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15244 | # config.status only pays attention to the cache file if you give it |
| 15245 | # the --recheck option to rerun configure. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15246 | # |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15247 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15248 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15249 | # following values. |
| 15250 | |
| 15251 | _ACEOF |
| 15252 | |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 15253 | # The following way of writing the cache mishandles newlines in values, |
| 15254 | # but we know of no workaround that is simple, portable, and efficient. |
| 15255 | # So, don't put newlines in cache variables' values. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15256 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15257 | # 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] | 15258 | { |
| 15259 | (set) 2>&1 | |
| 15260 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15261 | *ac_space=\ *) |
| 15262 | # `set' does not quote correctly, so add quotes (double-quote |
| 15263 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15264 | sed -n \ |
| 15265 | "s/'/'\\\\''/g; |
| 15266 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15267 | ;; |
| 15268 | *) |
| 15269 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15270 | sed -n \ |
| 15271 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15272 | ;; |
| 15273 | esac; |
| 15274 | } | |
| 15275 | sed ' |
| 15276 | t clear |
| 15277 | : clear |
| 15278 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15279 | t end |
| 15280 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15281 | : end' >>confcache |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15282 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15283 | if test -w $cache_file; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15284 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15285 | cat confcache >$cache_file |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15286 | else |
| 15287 | echo "not updating unwritable cache $cache_file" |
| 15288 | fi |
| 15289 | fi |
| 15290 | rm -f confcache |
| 15291 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15292 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15293 | # Let make expand exec_prefix. |
| 15294 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15295 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15296 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15297 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15298 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15299 | # (actually we leave an empty line to preserve line numbers). |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15300 | if test "x$srcdir" = x.; then |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15301 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15302 | s/:*\$(srcdir):*/:/; |
| 15303 | s/:*\${srcdir}:*/:/; |
| 15304 | s/:*@srcdir@:*/:/; |
| 15305 | s/^\([^=]*=[ ]*\):*/\1/; |
| 15306 | s/:*$//; |
| 15307 | s/^[^=]*=[ ]*$//; |
| 15308 | }' |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15309 | fi |
| 15310 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 15311 | DEFS=-DHAVE_CONFIG_H |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15312 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15313 | ac_libobjs= |
| 15314 | ac_ltlibobjs= |
| 15315 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15316 | # 1. Remove the extension, and $U if already installed. |
| 15317 | ac_i=`echo "$ac_i" | |
| 15318 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 15319 | # 2. Add them. |
| 15320 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 15321 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 15322 | done |
| 15323 | LIBOBJS=$ac_libobjs |
| 15324 | |
| 15325 | LTLIBOBJS=$ac_ltlibobjs |
| 15326 | |
| 15327 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15328 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15329 | : ${CONFIG_STATUS=./config.status} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15330 | ac_clean_files_save=$ac_clean_files |
| 15331 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15332 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15333 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15334 | cat >$CONFIG_STATUS <<_ACEOF |
| 15335 | #! $SHELL |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15336 | # Generated by $as_me. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15337 | # Run this file to recreate the current configuration. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15338 | # Compiler output produced by configure, useful for debugging |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15339 | # configure, is in config.log if it exists. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15340 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15341 | debug=false |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15342 | ac_cs_recheck=false |
| 15343 | ac_cs_silent=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15344 | SHELL=\${CONFIG_SHELL-$SHELL} |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15345 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15346 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15347 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15348 | ## --------------------- ## |
| 15349 | ## M4sh Initialization. ## |
| 15350 | ## --------------------- ## |
| 15351 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15352 | # Be Bourne compatible |
| 15353 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15354 | emulate sh |
| 15355 | NULLCMD=: |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15356 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15357 | # is contrary to our usage. Disable this feature. |
| 15358 | alias -g '${1+"$@"}'='"$@"' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15359 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 15360 | set -o posix |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 15361 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15362 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15363 | # Support unset when possible. |
| 15364 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 15365 | as_unset=unset |
| 15366 | else |
| 15367 | as_unset=false |
| 15368 | fi |
| 15369 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15370 | |
| 15371 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15372 | $as_unset ENV MAIL MAILPATH |
| 15373 | PS1='$ ' |
| 15374 | PS2='> ' |
| 15375 | PS4='+ ' |
| 15376 | |
| 15377 | # NLS nuisances. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15378 | for as_var in \ |
| 15379 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15380 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15381 | LC_TELEPHONE LC_TIME |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15382 | do |
| 15383 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15384 | eval $as_var=C; export $as_var |
| 15385 | else |
| 15386 | $as_unset $as_var |
| 15387 | fi |
| 15388 | done |
| 15389 | |
| 15390 | # Required to use basename. |
| 15391 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15392 | as_expr=expr |
| 15393 | else |
| 15394 | as_expr=false |
| 15395 | fi |
| 15396 | |
| 15397 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 15398 | as_basename=basename |
| 15399 | else |
| 15400 | as_basename=false |
| 15401 | fi |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15402 | |
| 15403 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15404 | # Name of the executable. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15405 | as_me=`$as_basename "$0" || |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15407 | X"$0" : 'X\(//\)$' \| \ |
| 15408 | X"$0" : 'X\(/\)$' \| \ |
| 15409 | . : '\(.\)' 2>/dev/null || |
| 15410 | echo X/"$0" | |
| 15411 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 15412 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 15413 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 15414 | s/.*/./; q'` |
| 15415 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15416 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15417 | # PATH needs CR, and LINENO needs CR and PATH. |
| 15418 | # Avoid depending upon Character Ranges. |
| 15419 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15420 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15421 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15422 | as_cr_digits='0123456789' |
| 15423 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15424 | |
| 15425 | # The user is always right. |
| 15426 | if test "${PATH_SEPARATOR+set}" != set; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15427 | echo "#! /bin/sh" >conf$$.sh |
| 15428 | echo "exit 0" >>conf$$.sh |
| 15429 | chmod +x conf$$.sh |
| 15430 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15431 | PATH_SEPARATOR=';' |
| 15432 | else |
| 15433 | PATH_SEPARATOR=: |
| 15434 | fi |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15435 | rm -f conf$$.sh |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15436 | fi |
| 15437 | |
| 15438 | |
| 15439 | as_lineno_1=$LINENO |
| 15440 | as_lineno_2=$LINENO |
| 15441 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15442 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15443 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 15444 | # Find who we are. Look in the path if we contain no path at all |
| 15445 | # relative or not. |
| 15446 | case $0 in |
| 15447 | *[\\/]* ) as_myself=$0 ;; |
| 15448 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15449 | for as_dir in $PATH |
| 15450 | do |
| 15451 | IFS=$as_save_IFS |
| 15452 | test -z "$as_dir" && as_dir=. |
| 15453 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15454 | done |
| 15455 | |
| 15456 | ;; |
| 15457 | esac |
| 15458 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15459 | # in which case we are not to be found in the path. |
| 15460 | if test "x$as_myself" = x; then |
| 15461 | as_myself=$0 |
| 15462 | fi |
| 15463 | if test ! -f "$as_myself"; then |
| 15464 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 15465 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 15466 | { (exit 1); exit 1; }; } |
| 15467 | fi |
| 15468 | case $CONFIG_SHELL in |
| 15469 | '') |
| 15470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15471 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 15472 | do |
| 15473 | IFS=$as_save_IFS |
| 15474 | test -z "$as_dir" && as_dir=. |
| 15475 | for as_base in sh bash ksh sh5; do |
| 15476 | case $as_dir in |
| 15477 | /*) |
| 15478 | if ("$as_dir/$as_base" -c ' |
| 15479 | as_lineno_1=$LINENO |
| 15480 | as_lineno_2=$LINENO |
| 15481 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15482 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15483 | 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] | 15484 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 15485 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15486 | CONFIG_SHELL=$as_dir/$as_base |
| 15487 | export CONFIG_SHELL |
| 15488 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 15489 | fi;; |
| 15490 | esac |
| 15491 | done |
| 15492 | done |
| 15493 | ;; |
| 15494 | esac |
| 15495 | |
| 15496 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15497 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 15498 | # line-number line before each line; the second 'sed' does the real |
| 15499 | # work. The second script uses 'N' to pair each line-number line |
| 15500 | # with the numbered line, and appends trailing '-' during |
| 15501 | # substitution so that $LINENO is not a special case at line end. |
| 15502 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 15503 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 15504 | sed '=' <$as_myself | |
| 15505 | sed ' |
| 15506 | N |
| 15507 | s,$,-, |
| 15508 | : loop |
| 15509 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 15510 | t loop |
| 15511 | s,-$,, |
| 15512 | s,^['$as_cr_digits']*\n,, |
| 15513 | ' >$as_me.lineno && |
| 15514 | chmod +x $as_me.lineno || |
| 15515 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 15516 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 15517 | { (exit 1); exit 1; }; } |
| 15518 | |
| 15519 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15520 | # (the dirname of $[0] is not the place where we might find the |
| 15521 | # original and so on. Autoconf is especially sensible to this). |
| 15522 | . ./$as_me.lineno |
| 15523 | # Exit status is that of the last command. |
| 15524 | exit |
| 15525 | } |
| 15526 | |
| 15527 | |
| 15528 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 15529 | *c*,-n*) ECHO_N= ECHO_C=' |
| 15530 | ' ECHO_T=' ' ;; |
| 15531 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 15532 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 15533 | esac |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15534 | |
| 15535 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15536 | as_expr=expr |
| 15537 | else |
| 15538 | as_expr=false |
| 15539 | fi |
| 15540 | |
| 15541 | rm -f conf$$ conf$$.exe conf$$.file |
| 15542 | echo >conf$$.file |
| 15543 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15544 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 15545 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 15546 | if test -f conf$$.exe; then |
| 15547 | # Don't use ln at all; we don't have any links |
| 15548 | as_ln_s='cp -p' |
| 15549 | else |
| 15550 | as_ln_s='ln -s' |
| 15551 | fi |
| 15552 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15553 | as_ln_s=ln |
| 15554 | else |
| 15555 | as_ln_s='cp -p' |
| 15556 | fi |
| 15557 | rm -f conf$$ conf$$.exe conf$$.file |
| 15558 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15559 | if mkdir -p . 2>/dev/null; then |
| 15560 | as_mkdir_p=: |
| 15561 | else |
| 15562 | as_mkdir_p=false |
| 15563 | fi |
| 15564 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15565 | as_executable_p="test -f" |
| 15566 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15567 | # Sed expression to map a string onto a valid CPP name. |
| 15568 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15569 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15570 | # Sed expression to map a string onto a valid variable name. |
| 15571 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 15572 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15573 | |
| 15574 | # IFS |
| 15575 | # We need space, tab and new line, in precisely that order. |
| 15576 | as_nl=' |
| 15577 | ' |
| 15578 | IFS=" $as_nl" |
| 15579 | |
| 15580 | # CDPATH. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15581 | $as_unset CDPATH |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15582 | |
| 15583 | exec 6>&1 |
| 15584 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15585 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 15586 | # report actual input values of CONFIG_FILES etc. instead of their |
| 15587 | # values after options handling. Logging --version etc. is OK. |
| 15588 | exec 5>>config.log |
| 15589 | { |
| 15590 | echo |
| 15591 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15592 | ## Running $as_me. ## |
| 15593 | _ASBOX |
| 15594 | } >&5 |
| 15595 | cat >&5 <<_CSEOF |
| 15596 | |
Alexandre Julliard | 9283bb3 | 2002-12-20 01:27:13 +0000 | [diff] [blame] | 15597 | This file was extended by Wine $as_me 20021219, which was |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15598 | generated by GNU Autoconf 2.57. Invocation command line was |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15599 | |
| 15600 | CONFIG_FILES = $CONFIG_FILES |
| 15601 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15602 | CONFIG_LINKS = $CONFIG_LINKS |
| 15603 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15604 | $ $0 $@ |
| 15605 | |
| 15606 | _CSEOF |
| 15607 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 15608 | echo >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15609 | _ACEOF |
| 15610 | |
| 15611 | # Files that config.status was made for. |
| 15612 | if test -n "$ac_config_files"; then |
| 15613 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 15614 | fi |
| 15615 | |
| 15616 | if test -n "$ac_config_headers"; then |
| 15617 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 15618 | fi |
| 15619 | |
| 15620 | if test -n "$ac_config_links"; then |
| 15621 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 15622 | fi |
| 15623 | |
| 15624 | if test -n "$ac_config_commands"; then |
| 15625 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 15626 | fi |
| 15627 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15628 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15629 | |
| 15630 | ac_cs_usage="\ |
| 15631 | \`$as_me' instantiates files from templates according to the |
| 15632 | current configuration. |
| 15633 | |
| 15634 | Usage: $0 [OPTIONS] [FILE]... |
| 15635 | |
| 15636 | -h, --help print this help, then exit |
| 15637 | -V, --version print version number, then exit |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15638 | -q, --quiet do not print progress messages |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15639 | -d, --debug don't remove temporary files |
| 15640 | --recheck update $as_me by reconfiguring in the same conditions |
| 15641 | --file=FILE[:TEMPLATE] |
| 15642 | instantiate the configuration file FILE |
| 15643 | --header=FILE[:TEMPLATE] |
| 15644 | instantiate the configuration header FILE |
| 15645 | |
| 15646 | Configuration files: |
| 15647 | $config_files |
| 15648 | |
| 15649 | Configuration headers: |
| 15650 | $config_headers |
| 15651 | |
| 15652 | Configuration commands: |
| 15653 | $config_commands |
| 15654 | |
| 15655 | Report bugs to <bug-autoconf@gnu.org>." |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15656 | _ACEOF |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 15657 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15658 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15659 | ac_cs_version="\\ |
Alexandre Julliard | 9283bb3 | 2002-12-20 01:27:13 +0000 | [diff] [blame] | 15660 | Wine config.status 20021219 |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15661 | configured by $0, generated by GNU Autoconf 2.57, |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15662 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15663 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15664 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 15665 | Free Software Foundation, Inc. |
| 15666 | This config.status script is free software; the Free Software Foundation |
| 15667 | gives unlimited permission to copy, distribute and modify it." |
| 15668 | srcdir=$srcdir |
| 15669 | INSTALL="$INSTALL" |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15670 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15671 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15672 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15673 | # If no file are specified by the user, then we need to provide default |
| 15674 | # value. By we need to know if files were specified by the user. |
| 15675 | ac_need_defaults=: |
| 15676 | while test $# != 0 |
| 15677 | do |
| 15678 | case $1 in |
| 15679 | --*=*) |
| 15680 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 15681 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15682 | ac_shift=: |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15683 | ;; |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15684 | -*) |
| 15685 | ac_option=$1 |
| 15686 | ac_optarg=$2 |
| 15687 | ac_shift=shift |
| 15688 | ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15689 | *) # This is not an option, so the user has probably given explicit |
| 15690 | # arguments. |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15691 | ac_option=$1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15692 | ac_need_defaults=false;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15693 | esac |
| 15694 | |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15695 | case $ac_option in |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15696 | # Handling of the options. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15697 | _ACEOF |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15698 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15699 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15700 | ac_cs_recheck=: ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15701 | --version | --vers* | -V ) |
| 15702 | echo "$ac_cs_version"; exit 0 ;; |
| 15703 | --he | --h) |
| 15704 | # Conflict between --help and --header |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15705 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15706 | Try \`$0 --help' for more information." >&5 |
| 15707 | echo "$as_me: error: ambiguous option: $1 |
| 15708 | Try \`$0 --help' for more information." >&2;} |
| 15709 | { (exit 1); exit 1; }; };; |
| 15710 | --help | --hel | -h ) |
| 15711 | echo "$ac_cs_usage"; exit 0 ;; |
| 15712 | --debug | --d* | -d ) |
| 15713 | debug=: ;; |
| 15714 | --file | --fil | --fi | --f ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15715 | $ac_shift |
| 15716 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15717 | ac_need_defaults=false;; |
| 15718 | --header | --heade | --head | --hea ) |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 15719 | $ac_shift |
| 15720 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15721 | ac_need_defaults=false;; |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15722 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15723 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15724 | ac_cs_silent=: ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 15725 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15726 | # This is an error. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15727 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15728 | Try \`$0 --help' for more information." >&5 |
| 15729 | echo "$as_me: error: unrecognized option: $1 |
| 15730 | Try \`$0 --help' for more information." >&2;} |
| 15731 | { (exit 1); exit 1; }; } ;; |
| 15732 | |
| 15733 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 15734 | |
| 15735 | esac |
| 15736 | shift |
| 15737 | done |
| 15738 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15739 | ac_configure_extra_args= |
| 15740 | |
| 15741 | if $ac_cs_silent; then |
| 15742 | exec 6>/dev/null |
| 15743 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15744 | fi |
| 15745 | |
| 15746 | _ACEOF |
| 15747 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15748 | if \$ac_cs_recheck; then |
| 15749 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15750 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 15751 | fi |
| 15752 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15753 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15754 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15755 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15756 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15757 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15758 | |
| 15759 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15760 | for ac_config_target in $ac_config_targets |
| 15761 | do |
| 15762 | case "$ac_config_target" in |
| 15763 | # Handling of arguments. |
| 15764 | "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;; |
| 15765 | "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 15766 | "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15767 | "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
| 15768 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15769 | "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; |
| 15770 | "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 15771 | "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15772 | "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; |
| 15773 | "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; |
Patrik Stridvall | d1447fa | 2002-11-19 00:47:12 +0000 | [diff] [blame] | 15774 | "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;; |
John K. Hohm | 34909c2 | 2002-05-14 21:50:56 +0000 | [diff] [blame] | 15775 | "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15776 | "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
| 15777 | "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;; |
| 15778 | "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
| 15779 | "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; |
Dmitry Timoshkov | 5a23a00 | 2003-01-02 19:34:14 +0000 | [diff] [blame^] | 15780 | "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;; |
Sylvain Petreolle | 3a99d8b | 2002-06-25 23:23:03 +0000 | [diff] [blame] | 15781 | "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; |
Raphael Junqueira | e31ae92 | 2002-12-17 01:15:15 +0000 | [diff] [blame] | 15782 | "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15783 | "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; |
| 15784 | "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; |
| 15785 | "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; |
| 15786 | "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; |
Ove Kaaven | d2d08f0 | 2002-06-14 00:39:44 +0000 | [diff] [blame] | 15787 | "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15788 | "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; |
| 15789 | "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; |
| 15790 | "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; |
Francois Gouget | d523a45 | 2002-12-05 19:19:41 +0000 | [diff] [blame] | 15791 | "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15792 | "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; |
Patrik Stridvall | 928ecb4 | 2002-10-02 19:58:27 +0000 | [diff] [blame] | 15793 | "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15794 | "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
| 15795 | "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; |
| 15796 | "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; |
| 15797 | "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; |
| 15798 | "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 15799 | "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15800 | "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;; |
| 15801 | "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; |
| 15802 | "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; |
| 15803 | "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;; |
Hidenori Takeshima | 0307f6d | 2002-03-23 20:18:11 +0000 | [diff] [blame] | 15804 | "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;; |
Eric Pouech | bed67fc | 2002-05-22 02:00:05 +0000 | [diff] [blame] | 15805 | "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;; |
Hidenori Takeshima | bcb9c46 | 2002-03-22 19:16:10 +0000 | [diff] [blame] | 15806 | "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;; |
Eric Pouech | b706b23 | 2002-06-04 17:53:46 +0000 | [diff] [blame] | 15807 | "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15808 | "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
| 15809 | "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; |
Mike McCormack | f6be044 | 2002-04-08 23:56:14 +0000 | [diff] [blame] | 15810 | "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15811 | "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15812 | "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; |
Uwe Bonnes | a768fa3 | 2002-10-30 23:49:03 +0000 | [diff] [blame] | 15813 | "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15814 | "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; |
| 15815 | "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;; |
Michael Günnewig | 288b8ee | 2002-10-08 00:40:05 +0000 | [diff] [blame] | 15816 | "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15817 | "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
Andriy Palamarchuk | b812c90 | 2002-09-11 02:35:17 +0000 | [diff] [blame] | 15818 | "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15819 | "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; |
Jon Griffiths | 1da2971 | 2002-08-15 22:08:40 +0000 | [diff] [blame] | 15820 | "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15821 | "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; |
| 15822 | "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; |
| 15823 | "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 15824 | "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15825 | "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;; |
| 15826 | "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; |
| 15827 | "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; |
| 15828 | "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;; |
| 15829 | "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; |
| 15830 | "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; |
| 15831 | "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
| 15832 | "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; |
| 15833 | "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
| 15834 | "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;; |
| 15835 | "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; |
Greg Turner | ac89cc2 | 2002-10-07 21:54:07 +0000 | [diff] [blame] | 15836 | "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15837 | "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; |
| 15838 | "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; |
| 15839 | "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; |
| 15840 | "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; |
Andriy Palamarchuk | 5b5bea0 | 2002-08-27 01:34:33 +0000 | [diff] [blame] | 15841 | "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15842 | "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; |
| 15843 | "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 15844 | "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;; |
Patrik Stridvall | 4c692b9 | 2002-04-29 18:43:35 +0000 | [diff] [blame] | 15845 | "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15846 | "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
| 15847 | "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
| 15848 | "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;; |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 15849 | "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15850 | "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
| 15851 | "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; |
Patrik Stridvall | 9398d9c | 2002-11-12 01:13:10 +0000 | [diff] [blame] | 15852 | "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15853 | "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 15854 | "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15855 | "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; |
| 15856 | "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;; |
| 15857 | "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;; |
| 15858 | "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; |
| 15859 | "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;; |
| 15860 | "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 15861 | "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15862 | "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; |
| 15863 | "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; |
| 15864 | "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;; |
| 15865 | "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;; |
| 15866 | "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;; |
| 15867 | "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;; |
| 15868 | "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;; |
| 15869 | "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;; |
Francois Gouget | 4ce2837 | 2002-11-04 23:47:49 +0000 | [diff] [blame] | 15870 | "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15871 | "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;; |
Eric Pouech | a120ce0 | 2002-06-28 17:40:16 +0000 | [diff] [blame] | 15872 | "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;; |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 15873 | "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 15874 | "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;; |
| 15875 | "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;; |
Chris Morgan | 4691b18 | 2002-12-13 02:26:18 +0000 | [diff] [blame] | 15876 | "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15877 | "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
| 15878 | "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;; |
| 15879 | "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;; |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 15880 | "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15881 | "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;; |
Patrik Stridvall | 5caddc7 | 2002-12-17 01:49:16 +0000 | [diff] [blame] | 15882 | "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15883 | "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; |
| 15884 | "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; |
| 15885 | "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; |
| 15886 | "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;; |
| 15887 | "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15888 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
| 15889 | "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15890 | "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15891 | "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;; |
| 15892 | "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; |
| 15893 | "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;; |
| 15894 | "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; |
| 15895 | "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
| 15896 | "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; |
Alexandre Julliard | acfda14 | 2002-05-20 19:18:16 +0000 | [diff] [blame] | 15897 | "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15898 | "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
| 15899 | "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;; |
| 15900 | "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
| 15901 | "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;; |
Andriy Palamarchuk | 4e2e176 | 2002-04-11 23:58:40 +0000 | [diff] [blame] | 15902 | "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; |
Andriy Palamarchuk | 2f0d85c | 2002-04-29 23:47:39 +0000 | [diff] [blame] | 15903 | "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15904 | "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;; |
Alexandre Julliard | d77294a | 2002-12-02 21:17:04 +0000 | [diff] [blame] | 15905 | "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;; |
Alberto Massari | 15e8e0a | 2002-11-15 01:41:20 +0000 | [diff] [blame] | 15906 | "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15907 | "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; |
| 15908 | "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; |
| 15909 | "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; |
| 15910 | "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; |
Alexandre Julliard | f264bd3 | 2002-09-13 17:54:27 +0000 | [diff] [blame] | 15911 | "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;; |
Alexandre Julliard | 65a4216 | 2002-06-04 21:29:40 +0000 | [diff] [blame] | 15912 | "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15913 | "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; |
Mike Wetherell | 0d8a9fa | 2002-05-05 20:31:54 +0000 | [diff] [blame] | 15914 | "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15915 | "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; |
| 15916 | "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15917 | "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
| 15918 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
Alexandre Julliard | 7d4ee77 | 2002-07-16 03:20:45 +0000 | [diff] [blame] | 15919 | "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15920 | "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;; |
| 15921 | "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
| 15922 | "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; |
| 15923 | "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; |
Alexandre Julliard | b7d3c79 | 2002-07-16 02:33:10 +0000 | [diff] [blame] | 15924 | "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15925 | "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15926 | "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15927 | "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15928 | "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;; |
| 15929 | "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;; |
| 15930 | "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;; |
| 15931 | "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;; |
| 15932 | "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;; |
| 15933 | "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;; |
| 15934 | "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;; |
| 15935 | "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;; |
| 15936 | "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;; |
Alexandre Julliard | 8911856 | 2002-03-27 21:13:40 +0000 | [diff] [blame] | 15937 | "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;; |
| 15938 | "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;; |
| 15939 | "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15940 | "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
| 15941 | "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;; |
| 15942 | "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
| 15943 | "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15944 | "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;; |
| 15945 | "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;; |
| 15946 | "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;; |
| 15947 | "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15948 | "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15949 | "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;; |
| 15950 | "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;; |
| 15951 | "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;; |
| 15952 | "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;; |
| 15953 | "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;; |
| 15954 | "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;; |
Alexandre Julliard | c72f0b2 | 2002-02-28 21:47:58 +0000 | [diff] [blame] | 15955 | "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 15956 | "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 15957 | "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;; |
| 15958 | "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;; |
| 15959 | "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;; |
| 15960 | "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15961 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 15962 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15963 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15964 | { (exit 1); exit 1; }; };; |
| 15965 | esac |
| 15966 | done |
| 15967 | |
| 15968 | # If the user did not use the arguments to specify the items to instantiate, |
| 15969 | # then the envvar interface is used. Set only those that are not. |
| 15970 | # We use the long form for the default assignment because of an extremely |
| 15971 | # bizarre bug on SunOS 4.1.3. |
| 15972 | if $ac_need_defaults; then |
| 15973 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15974 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 15975 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15976 | fi |
| 15977 | |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15978 | # Have a temporary directory for convenience. Make it in the build tree |
| 15979 | # simply because there is no reason to put it here, and in addition, |
| 15980 | # creating and moving files from /tmp can sometimes cause problems. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15981 | # Create a temporary directory, and hook for its removal unless debugging. |
| 15982 | $debug || |
| 15983 | { |
| 15984 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 15985 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15986 | } |
| 15987 | |
| 15988 | # Create a (secure) tmp directory for tmp files. |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15989 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15990 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15991 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15992 | test -n "$tmp" && test -d "$tmp" |
| 15993 | } || |
| 15994 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15995 | tmp=./confstat$$-$RANDOM |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 15996 | (umask 077 && mkdir $tmp) |
| 15997 | } || |
| 15998 | { |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 15999 | echo "$me: cannot create a temporary directory in ." >&2 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16000 | { (exit 1); exit 1; } |
| 16001 | } |
| 16002 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16003 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16004 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16005 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16006 | |
| 16007 | # |
| 16008 | # CONFIG_FILES section. |
| 16009 | # |
| 16010 | |
| 16011 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16012 | # This happens for instance when ./config.status config.h |
| 16013 | if test -n "\$CONFIG_FILES"; then |
| 16014 | # Protect against being on the right side of a sed subst in config.status. |
| 16015 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16016 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16017 | s,@SHELL@,$SHELL,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16018 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16019 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16020 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16021 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16022 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16023 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16024 | s,@exec_prefix@,$exec_prefix,;t t |
| 16025 | s,@prefix@,$prefix,;t t |
| 16026 | s,@program_transform_name@,$program_transform_name,;t t |
| 16027 | s,@bindir@,$bindir,;t t |
| 16028 | s,@sbindir@,$sbindir,;t t |
| 16029 | s,@libexecdir@,$libexecdir,;t t |
| 16030 | s,@datadir@,$datadir,;t t |
| 16031 | s,@sysconfdir@,$sysconfdir,;t t |
| 16032 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16033 | s,@localstatedir@,$localstatedir,;t t |
| 16034 | s,@libdir@,$libdir,;t t |
| 16035 | s,@includedir@,$includedir,;t t |
| 16036 | s,@oldincludedir@,$oldincludedir,;t t |
| 16037 | s,@infodir@,$infodir,;t t |
| 16038 | s,@mandir@,$mandir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16039 | s,@build_alias@,$build_alias,;t t |
| 16040 | s,@host_alias@,$host_alias,;t t |
| 16041 | s,@target_alias@,$target_alias,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16042 | s,@DEFS@,$DEFS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16043 | s,@ECHO_C@,$ECHO_C,;t t |
| 16044 | s,@ECHO_N@,$ECHO_N,;t t |
| 16045 | s,@ECHO_T@,$ECHO_T,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16046 | s,@LIBS@,$LIBS,;t t |
| 16047 | s,@OPTIONS@,$OPTIONS,;t t |
Alexandre Julliard | c728efc | 2002-10-02 02:34:09 +0000 | [diff] [blame] | 16048 | s,@WIN16_FILES@,$WIN16_FILES,;t t |
| 16049 | s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16050 | s,@build@,$build,;t t |
| 16051 | s,@build_cpu@,$build_cpu,;t t |
| 16052 | s,@build_vendor@,$build_vendor,;t t |
| 16053 | s,@build_os@,$build_os,;t t |
| 16054 | s,@host@,$host,;t t |
| 16055 | s,@host_cpu@,$host_cpu,;t t |
| 16056 | s,@host_vendor@,$host_vendor,;t t |
| 16057 | s,@host_os@,$host_os,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16058 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 16059 | s,@CC@,$CC,;t t |
| 16060 | s,@CFLAGS@,$CFLAGS,;t t |
| 16061 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 16062 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 16063 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 16064 | s,@EXEEXT@,$EXEEXT,;t t |
| 16065 | s,@OBJEXT@,$OBJEXT,;t t |
| 16066 | s,@CPP@,$CPP,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 16067 | s,@TOOLSDIR@,$TOOLSDIR,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16068 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 16069 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 16070 | s,@X_LIBS@,$X_LIBS,;t t |
| 16071 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 16072 | s,@YACC@,$YACC,;t t |
| 16073 | s,@LEX@,$LEX,;t t |
| 16074 | s,@LEXLIB@,$LEXLIB,;t t |
| 16075 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 16076 | s,@XYACC@,$XYACC,;t t |
| 16077 | s,@XLEX@,$XLEX,;t t |
Alexandre Julliard | eb5f89c | 2002-05-24 21:22:10 +0000 | [diff] [blame] | 16078 | s,@LD@,$LD,;t t |
| 16079 | s,@ac_ct_LD@,$ac_ct_LD,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 16080 | s,@AR@,$AR,;t t |
| 16081 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16082 | s,@RANLIB@,$RANLIB,;t t |
| 16083 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 16084 | s,@STRIP@,$STRIP,;t t |
| 16085 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 16086 | s,@WINDRES@,$WINDRES,;t t |
| 16087 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16088 | s,@LN_S@,$LN_S,;t t |
Alexandre Julliard | df234a9 | 2002-05-22 02:10:39 +0000 | [diff] [blame] | 16089 | s,@LN@,$LN,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16090 | s,@C2MAN@,$C2MAN,;t t |
| 16091 | s,@LDCONFIG@,$LDCONFIG,;t t |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16092 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 16093 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 16094 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16095 | s,@LINT@,$LINT,;t t |
| 16096 | s,@LINTFLAGS@,$LINTFLAGS,;t t |
Vincent Béron | 1d8cb6e | 2002-11-23 01:20:02 +0000 | [diff] [blame] | 16097 | s,@DB2HTML@,$DB2HTML,;t t |
| 16098 | s,@DB2PDF@,$DB2PDF,;t t |
| 16099 | s,@DB2PS@,$DB2PS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16100 | s,@JPEGLIB@,$JPEGLIB,;t t |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16101 | s,@EGREP@,$EGREP,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16102 | s,@XLIB@,$XLIB,;t t |
| 16103 | s,@XFILES@,$XFILES,;t t |
| 16104 | s,@OPENGLFILES@,$OPENGLFILES,;t t |
| 16105 | s,@GLU32FILES@,$GLU32FILES,;t t |
Lionel Ulmer | 56ab2b3e | 2002-11-15 04:16:38 +0000 | [diff] [blame] | 16106 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
Francois Gouget | 6f670b1 | 2002-10-10 17:54:27 +0000 | [diff] [blame] | 16107 | s,@NASLIBS@,$NASLIBS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16108 | s,@CURSESLIBS@,$CURSESLIBS,;t t |
Shi Quan He | 6b0720f | 2002-03-21 02:58:39 +0000 | [diff] [blame] | 16109 | s,@sane_devel@,$sane_devel,;t t |
| 16110 | s,@SANELIBS@,$SANELIBS,;t t |
| 16111 | s,@SANEINCL@,$SANEINCL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16112 | s,@ft_devel@,$ft_devel,;t t |
| 16113 | s,@ft_devel2@,$ft_devel2,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16114 | s,@FREETYPEINCL@,$FREETYPEINCL,;t t |
Chris Morgan | 9b0ba7c | 2002-03-21 01:38:19 +0000 | [diff] [blame] | 16115 | s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t |
| 16116 | s,@ARTSLIBS@,$ARTSLIBS,;t t |
| 16117 | s,@ARTSINCL@,$ARTSINCL,;t t |
Alexandre Julliard | f92b7c0 | 2002-06-28 18:31:01 +0000 | [diff] [blame] | 16118 | s,@ALSALIBS@,$ALSALIBS,;t t |
Robert Lunnon | 2a91e3f | 2002-08-01 18:22:38 +0000 | [diff] [blame] | 16119 | s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 16120 | s,@DLLEXT@,$DLLEXT,;t t |
| 16121 | s,@DLLFLAGS@,$DLLFLAGS,;t t |
| 16122 | s,@DLLIBS@,$DLLIBS,;t t |
| 16123 | s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t |
| 16124 | s,@LDSHARED@,$LDSHARED,;t t |
Alexandre Julliard | ada5e65 | 2002-12-12 22:03:14 +0000 | [diff] [blame] | 16125 | s,@LIBEXT@,$LIBEXT,;t t |
| 16126 | s,@IMPLIBEXT@,$IMPLIBEXT,;t t |
| 16127 | s,@DLLTOOL@,$DLLTOOL,;t t |
| 16128 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16129 | s,@DLLWRAP@,$DLLWRAP,;t t |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 16130 | s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t |
Alexandre Julliard | c3c587e | 2002-09-06 19:46:00 +0000 | [diff] [blame] | 16131 | s,@CROSSTEST@,$CROSSTEST,;t t |
| 16132 | s,@CROSSCC@,$CROSSCC,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16133 | s,@LDPATH@,$LDPATH,;t t |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 16134 | s,@CRTLIBS@,$CRTLIBS,;t t |
Alexandre Julliard | 67e8dc6 | 2002-05-20 18:29:58 +0000 | [diff] [blame] | 16135 | s,@LDD@,$LDD,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16136 | s,@ALLOCA@,$ALLOCA,;t t |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16137 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16138 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16139 | /@MAKE_RULES@/r $MAKE_RULES |
| 16140 | s,@MAKE_RULES@,,;t t |
| 16141 | /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES |
| 16142 | s,@MAKE_DLL_RULES@,,;t t |
Alexandre Julliard | edeee89 | 2002-08-09 01:22:40 +0000 | [diff] [blame] | 16143 | /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES |
| 16144 | s,@MAKE_TEST_RULES@,,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16145 | /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES |
| 16146 | s,@MAKE_PROG_RULES@,,;t t |
| 16147 | CEOF |
| 16148 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16149 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16150 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16151 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16152 | # Split the substitutions into bite-sized pieces for seds with |
| 16153 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16154 | ac_max_sed_lines=48 |
| 16155 | ac_sed_frag=1 # Number of current file. |
| 16156 | ac_beg=1 # First line for current file. |
| 16157 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16158 | ac_more_lines=: |
| 16159 | ac_sed_cmds= |
| 16160 | while $ac_more_lines; do |
| 16161 | if test $ac_beg -gt 1; then |
| 16162 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16163 | else |
| 16164 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16165 | fi |
| 16166 | if test ! -s $tmp/subs.frag; then |
| 16167 | ac_more_lines=false |
| 16168 | else |
| 16169 | # The purpose of the label and of the branching condition is to |
| 16170 | # speed up the sed processing (if there are no `@' at all, there |
| 16171 | # is no need to browse any of the substitutions). |
| 16172 | # These are the two extra sed commands mentioned above. |
| 16173 | (echo ':t |
| 16174 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 16175 | if test -z "$ac_sed_cmds"; then |
| 16176 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16177 | else |
| 16178 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16179 | fi |
| 16180 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 16181 | ac_beg=$ac_end |
| 16182 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 16183 | fi |
| 16184 | done |
| 16185 | if test -z "$ac_sed_cmds"; then |
| 16186 | ac_sed_cmds=cat |
| 16187 | fi |
| 16188 | fi # test -n "$CONFIG_FILES" |
| 16189 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16190 | _ACEOF |
| 16191 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16192 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16193 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16194 | case $ac_file in |
| 16195 | - | *:- | *:-:* ) # input from stdin |
| 16196 | cat >$tmp/stdin |
| 16197 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16198 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16199 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16200 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16201 | * ) ac_file_in=$ac_file.in ;; |
| 16202 | esac |
| 16203 | |
| 16204 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16205 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16206 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16207 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16208 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16209 | X"$ac_file" : 'X\(/\)' \| \ |
| 16210 | . : '\(.\)' 2>/dev/null || |
| 16211 | echo X"$ac_file" | |
| 16212 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16213 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16214 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16215 | /^X\(\/\).*/{ s//\1/; q; } |
| 16216 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16217 | { if $as_mkdir_p; then |
| 16218 | mkdir -p "$ac_dir" |
| 16219 | else |
| 16220 | as_dir="$ac_dir" |
| 16221 | as_dirs= |
| 16222 | while test ! -d "$as_dir"; do |
| 16223 | as_dirs="$as_dir $as_dirs" |
| 16224 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16225 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16226 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16227 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16228 | X"$as_dir" : 'X\(/\)' \| \ |
| 16229 | . : '\(.\)' 2>/dev/null || |
| 16230 | echo X"$as_dir" | |
| 16231 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16232 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16233 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16234 | /^X\(\/\).*/{ s//\1/; q; } |
| 16235 | s/.*/./; q'` |
| 16236 | done |
| 16237 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16238 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16239 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16240 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16241 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16242 | ac_builddir=. |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16243 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16244 | if test "$ac_dir" != .; then |
| 16245 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16246 | # A "../" for each directory in $ac_dir_suffix. |
| 16247 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16248 | else |
| 16249 | ac_dir_suffix= ac_top_builddir= |
| 16250 | fi |
| 16251 | |
| 16252 | case $srcdir in |
| 16253 | .) # No --srcdir option. We are building in place. |
| 16254 | ac_srcdir=. |
| 16255 | if test -z "$ac_top_builddir"; then |
| 16256 | ac_top_srcdir=. |
| 16257 | else |
| 16258 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16259 | fi ;; |
| 16260 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16261 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16262 | ac_top_srcdir=$srcdir ;; |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16263 | *) # Relative path. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16264 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16265 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16266 | esac |
| 16267 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 16268 | # absolute. |
| 16269 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16270 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16271 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 16272 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 16273 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16274 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16275 | case $INSTALL in |
| 16276 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16277 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 16278 | esac |
Alexandre Julliard | da0cfb3 | 1996-12-01 17:17:47 +0000 | [diff] [blame] | 16279 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16280 | if test x"$ac_file" != x-; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16281 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16282 | echo "$as_me: creating $ac_file" >&6;} |
| 16283 | rm -f "$ac_file" |
| 16284 | fi |
| 16285 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16286 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16287 | # /* config.h. Generated by config.status. */ |
| 16288 | if test x"$ac_file" = x-; then |
| 16289 | configure_input= |
| 16290 | else |
| 16291 | configure_input="$ac_file. " |
| 16292 | fi |
| 16293 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16294 | sed 's,.*/,,'` by configure." |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 16295 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16296 | # First look for the input files in the build tree, otherwise in the |
| 16297 | # src tree. |
| 16298 | ac_file_inputs=`IFS=: |
| 16299 | for f in $ac_file_in; do |
| 16300 | case $f in |
| 16301 | -) echo $tmp/stdin ;; |
| 16302 | [\\/$]*) |
| 16303 | # Absolute (can't be DOS-style, as IFS=:) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16304 | 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] | 16305 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16306 | { (exit 1); exit 1; }; } |
| 16307 | echo $f;; |
| 16308 | *) # Relative |
| 16309 | if test -f "$f"; then |
| 16310 | # Build tree |
| 16311 | echo $f |
| 16312 | elif test -f "$srcdir/$f"; then |
| 16313 | # Source tree |
| 16314 | echo $srcdir/$f |
| 16315 | else |
| 16316 | # /dev/null tree |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16317 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16318 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16319 | { (exit 1); exit 1; }; } |
| 16320 | fi;; |
| 16321 | esac |
| 16322 | done` || { (exit 1); exit 1; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16323 | _ACEOF |
| 16324 | cat >>$CONFIG_STATUS <<_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16325 | sed "$ac_vpsub |
| 16326 | $extrasub |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16327 | _ACEOF |
| 16328 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16329 | :t |
| 16330 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16331 | s,@configure_input@,$configure_input,;t t |
| 16332 | s,@srcdir@,$ac_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16333 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16334 | s,@top_srcdir@,$ac_top_srcdir,;t t |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16335 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16336 | s,@builddir@,$ac_builddir,;t t |
| 16337 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16338 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16339 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16340 | s,@INSTALL@,$ac_INSTALL,;t t |
| 16341 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16342 | rm -f $tmp/stdin |
| 16343 | if test x"$ac_file" != x-; then |
| 16344 | mv $tmp/out $ac_file |
| 16345 | else |
| 16346 | cat $tmp/out |
| 16347 | rm -f $tmp/out |
| 16348 | fi |
| 16349 | |
| 16350 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16351 | _ACEOF |
| 16352 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16353 | |
| 16354 | # |
| 16355 | # CONFIG_HEADER section. |
| 16356 | # |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16357 | |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16358 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16359 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 16360 | # |
| 16361 | # ac_d sets the value in "#define NAME VALUE" lines. |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16362 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16363 | ac_dB='[ ].*$,\1#\2' |
| 16364 | ac_dC=' ' |
| 16365 | ac_dD=',;t' |
| 16366 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16367 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16368 | ac_uB='$,\1#\2define\3' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16369 | ac_uC=' ' |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16370 | ac_uD=',;t' |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16371 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16372 | 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] | 16373 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16374 | case $ac_file in |
| 16375 | - | *:- | *:-:* ) # input from stdin |
| 16376 | cat >$tmp/stdin |
| 16377 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16378 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16379 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16380 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16381 | * ) ac_file_in=$ac_file.in ;; |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16382 | esac |
| 16383 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16384 | 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] | 16385 | echo "$as_me: creating $ac_file" >&6;} |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16386 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16387 | # First look for the input files in the build tree, otherwise in the |
| 16388 | # src tree. |
| 16389 | ac_file_inputs=`IFS=: |
| 16390 | for f in $ac_file_in; do |
| 16391 | case $f in |
| 16392 | -) echo $tmp/stdin ;; |
| 16393 | [\\/$]*) |
| 16394 | # Absolute (can't be DOS-style, as IFS=:) |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16395 | 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] | 16396 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16397 | { (exit 1); exit 1; }; } |
| 16398 | echo $f;; |
| 16399 | *) # Relative |
| 16400 | if test -f "$f"; then |
| 16401 | # Build tree |
| 16402 | echo $f |
| 16403 | elif test -f "$srcdir/$f"; then |
| 16404 | # Source tree |
| 16405 | echo $srcdir/$f |
| 16406 | else |
| 16407 | # /dev/null tree |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16408 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16409 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16410 | { (exit 1); exit 1; }; } |
| 16411 | fi;; |
| 16412 | esac |
| 16413 | done` || { (exit 1); exit 1; } |
| 16414 | # Remove the trailing spaces. |
| 16415 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16416 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16417 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16418 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16419 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16420 | # `conftest.undefs', that substitutes the proper values into |
| 16421 | # config.h.in to produce config.h. The first handles `#define' |
| 16422 | # templates, and the second `#undef' templates. |
| 16423 | # And first: Protect against being on the right side of a sed subst in |
| 16424 | # config.status. Protect against being in an unquoted here document |
| 16425 | # in config.status. |
| 16426 | rm -f conftest.defines conftest.undefs |
| 16427 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16428 | # Putting comments in sed scripts is not portable. |
| 16429 | # |
| 16430 | # `end' is used to avoid that the second main sed command (meant for |
| 16431 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16432 | # See the Autoconf documentation for `clear'. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16433 | cat >confdef2sed.sed <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16434 | s/[\\&,]/\\&/g |
| 16435 | s,[\\$`],\\&,g |
| 16436 | t clear |
| 16437 | : clear |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16438 | 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] | 16439 | t end |
| 16440 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16441 | : end |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16442 | _ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16443 | # If some macros were called several times there might be several times |
| 16444 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16445 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16446 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16447 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16448 | rm -f confdef2sed.sed |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16449 | |
| 16450 | # This sed command replaces #undef with comments. This is necessary, for |
| 16451 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16452 | # on some systems where configure will not decide to define it. |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16453 | cat >>conftest.undefs <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16454 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16455 | _ACEOF |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16456 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16457 | # Break up conftest.defines because some shells have a limit on the size |
| 16458 | # of here documents, and old seds have small limits too (100 cmds). |
| 16459 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16460 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16461 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16462 | echo ' :' >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16463 | rm -f conftest.tail |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16464 | while grep . conftest.defines >/dev/null |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16465 | do |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16466 | # Write a limited-size here document to $tmp/defines.sed. |
| 16467 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16468 | # Speed up: don't consider the non `#define' lines. |
| 16469 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16470 | # Work around the forget-to-reset-the-flag bug. |
| 16471 | echo 't clr' >>$CONFIG_STATUS |
| 16472 | echo ': clr' >>$CONFIG_STATUS |
| 16473 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16474 | echo 'CEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16475 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16476 | rm -f $tmp/in |
| 16477 | mv $tmp/out $tmp/in |
| 16478 | ' >>$CONFIG_STATUS |
| 16479 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16480 | rm -f conftest.defines |
| 16481 | mv conftest.tail conftest.defines |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16482 | done |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16483 | rm -f conftest.defines |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16484 | echo ' fi # grep' >>$CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16485 | echo >>$CONFIG_STATUS |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16486 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16487 | # Break up conftest.undefs because some shells have a limit on the size |
| 16488 | # of here documents, and old seds have small limits too (100 cmds). |
| 16489 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16490 | rm -f conftest.tail |
| 16491 | while grep . conftest.undefs >/dev/null |
| 16492 | do |
| 16493 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16494 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16495 | # Speed up: don't consider the non `#undef' |
| 16496 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16497 | # Work around the forget-to-reset-the-flag bug. |
| 16498 | echo 't clr' >>$CONFIG_STATUS |
| 16499 | echo ': clr' >>$CONFIG_STATUS |
| 16500 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16501 | echo 'CEOF |
| 16502 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16503 | rm -f $tmp/in |
| 16504 | mv $tmp/out $tmp/in |
| 16505 | ' >>$CONFIG_STATUS |
| 16506 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16507 | rm -f conftest.undefs |
| 16508 | mv conftest.tail conftest.undefs |
| 16509 | done |
| 16510 | rm -f conftest.undefs |
| 16511 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16512 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16513 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16514 | # use $as_me), people would be surprised to read: |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16515 | # /* config.h. Generated by config.status. */ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16516 | if test x"$ac_file" = x-; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16517 | echo "/* Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16518 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16519 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16520 | fi |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16521 | cat $tmp/in >>$tmp/config.h |
| 16522 | rm -f $tmp/in |
| 16523 | if test x"$ac_file" != x-; then |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16524 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16525 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16526 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16527 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16528 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16529 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16530 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16531 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16532 | X"$ac_file" : 'X\(/\)' \| \ |
| 16533 | . : '\(.\)' 2>/dev/null || |
| 16534 | echo X"$ac_file" | |
| 16535 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16536 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16537 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16538 | /^X\(\/\).*/{ s//\1/; q; } |
| 16539 | s/.*/./; q'` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16540 | { if $as_mkdir_p; then |
| 16541 | mkdir -p "$ac_dir" |
| 16542 | else |
| 16543 | as_dir="$ac_dir" |
| 16544 | as_dirs= |
| 16545 | while test ! -d "$as_dir"; do |
| 16546 | as_dirs="$as_dir $as_dirs" |
| 16547 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16548 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16549 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16550 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16551 | X"$as_dir" : 'X\(/\)' \| \ |
| 16552 | . : '\(.\)' 2>/dev/null || |
| 16553 | echo X"$as_dir" | |
| 16554 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16555 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16556 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16557 | /^X\(\/\).*/{ s//\1/; q; } |
| 16558 | s/.*/./; q'` |
| 16559 | done |
| 16560 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16561 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16562 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16563 | { (exit 1); exit 1; }; }; } |
Alexandre Julliard | 18f92e7 | 1996-07-17 20:02:21 +0000 | [diff] [blame] | 16564 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16565 | rm -f $ac_file |
| 16566 | mv $tmp/config.h $ac_file |
| 16567 | fi |
| 16568 | else |
| 16569 | cat $tmp/config.h |
| 16570 | rm -f $tmp/config.h |
| 16571 | fi |
| 16572 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16573 | _ACEOF |
| 16574 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16575 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16576 | # |
| 16577 | # CONFIG_COMMANDS section. |
| 16578 | # |
| 16579 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 16580 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 16581 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16582 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 16583 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16584 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 16585 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 16586 | X"$ac_dest" : 'X\(/\)' \| \ |
| 16587 | . : '\(.\)' 2>/dev/null || |
| 16588 | echo X"$ac_dest" | |
| 16589 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16590 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16591 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16592 | /^X\(\/\).*/{ s//\1/; q; } |
| 16593 | s/.*/./; q'` |
| 16594 | ac_builddir=. |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 16595 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16596 | if test "$ac_dir" != .; then |
| 16597 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16598 | # A "../" for each directory in $ac_dir_suffix. |
| 16599 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16600 | else |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16601 | ac_dir_suffix= ac_top_builddir= |
| 16602 | fi |
| 16603 | |
| 16604 | case $srcdir in |
| 16605 | .) # No --srcdir option. We are building in place. |
| 16606 | ac_srcdir=. |
| 16607 | if test -z "$ac_top_builddir"; then |
| 16608 | ac_top_srcdir=. |
| 16609 | else |
| 16610 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16611 | fi ;; |
| 16612 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16613 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16614 | ac_top_srcdir=$srcdir ;; |
| 16615 | *) # Relative path. |
| 16616 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16617 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16618 | esac |
| 16619 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 16620 | # absolute. |
| 16621 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Alexandre Julliard | 11af04e | 2002-10-10 03:48:04 +0000 | [diff] [blame] | 16622 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16623 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 16624 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 16625 | |
| 16626 | |
| 16627 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 16628 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 16629 | case $ac_dest in |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16630 | controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5 |
| 16631 | echo "$as_me: creating controls" >&6;} && mkdir "controls") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16632 | dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5 |
| 16633 | echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;; |
| 16634 | dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5 |
| 16635 | echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;; |
| 16636 | dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5 |
| 16637 | echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;; |
| 16638 | dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5 |
| 16639 | echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;; |
| 16640 | dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5 |
| 16641 | echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;; |
| 16642 | dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5 |
| 16643 | echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;; |
| 16644 | dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5 |
| 16645 | echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;; |
| 16646 | dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5 |
| 16647 | echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;; |
| 16648 | dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5 |
| 16649 | echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;; |
| 16650 | dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5 |
| 16651 | echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;; |
| 16652 | dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5 |
| 16653 | echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;; |
| 16654 | dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5 |
| 16655 | echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;; |
| 16656 | dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5 |
| 16657 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16658 | dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5 |
| 16659 | echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;; |
| 16660 | dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
| 16661 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16662 | dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5 |
| 16663 | echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16664 | files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5 |
| 16665 | echo "$as_me: creating files" >&6;} && mkdir "files") ;; |
| 16666 | graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5 |
| 16667 | echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;; |
| 16668 | graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5 |
| 16669 | echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;; |
| 16670 | if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5 |
| 16671 | echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16672 | include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
| 16673 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16674 | loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5 |
| 16675 | echo "$as_me: creating loader" >&6;} && mkdir "loader") ;; |
| 16676 | loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5 |
| 16677 | echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;; |
| 16678 | memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5 |
| 16679 | echo "$as_me: creating memory" >&6;} && mkdir "memory") ;; |
| 16680 | misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5 |
| 16681 | echo "$as_me: creating misc" >&6;} && mkdir "misc") ;; |
| 16682 | msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5 |
| 16683 | echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;; |
| 16684 | objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5 |
| 16685 | echo "$as_me: creating objects" >&6;} && mkdir "objects") ;; |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16686 | programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5 |
| 16687 | echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;; |
Andriy Palamarchuk | f5aad76 | 2002-06-20 23:09:33 +0000 | [diff] [blame] | 16688 | programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5 |
| 16689 | echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;; |
Alexandre Julliard | 9bb05fc | 2002-05-14 18:36:54 +0000 | [diff] [blame] | 16690 | relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5 |
| 16691 | echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;; |
| 16692 | scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5 |
| 16693 | echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;; |
| 16694 | win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5 |
| 16695 | echo "$as_me: creating win32" >&6;} && mkdir "win32") ;; |
| 16696 | windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5 |
| 16697 | echo "$as_me: creating windows" >&6;} && mkdir "windows") ;; |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16698 | esac |
| 16699 | done |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16700 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16701 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16702 | cat >>$CONFIG_STATUS <<\_ACEOF |
Alexandre Julliard | 87a2f8d | 2000-04-09 18:20:25 +0000 | [diff] [blame] | 16703 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16704 | { (exit 0); exit 0; } |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16705 | _ACEOF |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16706 | chmod +x $CONFIG_STATUS |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16707 | ac_clean_files=$ac_clean_files_save |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16708 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16709 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16710 | # configure is writing to config.log, and then calls config.status. |
| 16711 | # config.status does its own redirection, appending to config.log. |
| 16712 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16713 | # by configure, so config.status won't be able to write to it; its |
| 16714 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16715 | # effectively closing config.log, so it can be properly (re)opened and |
| 16716 | # appended to by config.status. When coming back to configure, we |
| 16717 | # need to make the FD available again. |
| 16718 | if test "$no_create" != yes; then |
| 16719 | ac_cs_success=: |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16720 | ac_config_status_args= |
| 16721 | test "$silent" = yes && |
| 16722 | ac_config_status_args="$ac_config_status_args --quiet" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16723 | exec 5>/dev/null |
Alexandre Julliard | e24bcc7 | 2002-12-24 00:35:19 +0000 | [diff] [blame] | 16724 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16725 | exec 5>>config.log |
| 16726 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16727 | # would make configure fail if this is the last instruction. |
| 16728 | $ac_cs_success || { (exit 1); exit 1; } |
| 16729 | fi |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16730 | |
Alexandre Julliard | daa2886 | 2002-04-11 21:54:01 +0000 | [diff] [blame] | 16731 | |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 16732 | if test "$have_x" = "no" |
| 16733 | then |
| 16734 | echo |
| 16735 | echo "*** Warning: X development files not found. Wine will be built without" |
| 16736 | echo "*** X support, which currently does not work, and would probably not be" |
| 16737 | 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] | 16738 | echo "*** Xlib/Xfree86 at the very least." |
Ove Kaaven | 8b4431f | 1999-01-23 13:59:11 +0000 | [diff] [blame] | 16739 | fi |
| 16740 | |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 16741 | if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes" |
| 16742 | then |
| 16743 | echo |
| 16744 | echo "*** Warning: resizeterm not found in ncurses. Wine will be built without" |
| 16745 | echo "*** terminal resize support. Consider upgrading ncurses." |
Alexandre Julliard | 638f169 | 1999-01-17 16:32:32 +0000 | [diff] [blame] | 16746 | fi |
| 16747 | |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16748 | if test "$wine_cv_libc_reentrant" = "no" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 16749 | then |
| 16750 | echo |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16751 | echo "*** Warning: non-reentrant libc detected. Wine will be built without" |
| 16752 | echo "*** threading support. Consider upgrading libc to a more recent" |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 16753 | echo "*** reentrant version of libc." |
Alexandre Julliard | d30dfd2 | 1998-09-27 18:28:36 +0000 | [diff] [blame] | 16754 | fi |
| 16755 | |
Alexandre Julliard | 867fb9d | 2002-04-24 22:24:43 +0000 | [diff] [blame] | 16756 | if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes" |
| 16757 | then |
| 16758 | echo |
| 16759 | echo "*** Warning: non-reentrant X11 library detected. Multi-threaded" |
| 16760 | echo "*** applications won't work properly. You should upgrade your X11 library." |
| 16761 | fi |
| 16762 | |
Lionel Ulmer | bedf40b | 2000-05-12 20:18:14 +0000 | [diff] [blame] | 16763 | if test "$wine_cv_opengl_version_OK" = "no" |
Lionel Ulmer | 5c08570 | 1999-02-28 19:48:53 +0000 | [diff] [blame] | 16764 | then |
| 16765 | echo |
| 16766 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" |
Lionel Ulmer | 5eee0bf | 2000-03-24 21:20:33 +0000 | [diff] [blame] | 16767 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." |
| 16768 | fi |
| 16769 | |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 16770 | if test "$wine_cv_msg_freetype" = "yes" |
| 16771 | then |
| 16772 | echo |
| 16773 | echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" |
Alexandre Julliard | f5818d2 | 2002-02-14 19:47:29 +0000 | [diff] [blame] | 16774 | echo "*** installed, but 'freetype-config' is not in your PATH. Install the" |
| 16775 | echo "*** freetype-devel package (or its equivalent on your distribution) to" |
| 16776 | echo "*** enable Wine to use TrueType fonts." |
Ian Pilcher | 563598d | 2001-05-16 20:56:05 +0000 | [diff] [blame] | 16777 | fi |
| 16778 | |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16779 | echo |
Steffen Moeller | 1511bae | 1999-02-17 15:27:03 +0000 | [diff] [blame] | 16780 | echo "Configure finished. Do 'make depend && make' to compile Wine." |
Alexandre Julliard | e2991ea | 1995-07-29 13:09:43 +0000 | [diff] [blame] | 16781 | echo |
| 16782 | |